Search
SailfishOS Open Build Service
>
Projects
>
home:blacksailer
:
tools
>
gflags
> gflags.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File gflags.spec of Package gflags
Name: gflags Version: 2.2.2 Release: 1%{?dist} Summary: Library for commandline flag processing Group: Development/Libraries License: BSD URL: https://gflags.github.io/gflags/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake %description The gflags package contains a library that implements commandline flags processing. As such it's a replacement for getopt(). It has increased flexibility, including built-in support for C++ types like string, and the ability to define flags in the source file in which they're used. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup -q %build mkdir build && cd build %cmake -DBUILD_TESTING:BOOL=ON \ -DINSTALL_HEADERS:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_STATIC_LIBS:BOOL=ON \ -DBUILD_TESTING:BOOL=ON \ -DREGISTER_BUILD_DIR:BOOL=OFF \ -DREGISTER_INSTALL_PREFIX:BOOL=OFF \ .. %make_build %install cd build make DESTDIR=%{?buildroot} install #%check #cd build #make test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING.txt %doc AUTHORS.txt ChangeLog.txt README.md %{_bindir}/gflags_completions.sh %{_libdir}/*.so.* %files devel %dir %{_includedir}/%{name} %{_includedir}/%{name}/*.h %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/pkgconfig/gflags.pc %{_libdir}/cmake/%{name}