1 Summary: A commandline flags library that allows for distributed flags
2 Summary(pl.UTF-8): Biblioteka flag linii poleceń pozwalająca na rozproszone flagi
8 #Source0Download: https://github.com/gflags/gflags/releases
9 Source0: https://github.com/schuhschuh/gflags/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 1a865b93bacfa963201af3f75b7bd64c
11 Patch0: %{name}-pc-nothreads.patch
12 URL: http://gflags.github.io/gflags/
13 BuildRequires: cmake >= 3.0.2
14 BuildRequires: libstdc++-devel
15 BuildRequires: sed >= 4.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 gflags is Google's commandline flags library. It differs from other
20 libraries, such as getopt(), in that flag definitions can be scattered
21 around the source code, and not just listed in one place such as
24 %description -l pl.UTF-8
25 gflags to biblioteka flag linii poleceń stworzona przez Google. Różni
26 się od innych bibliotek, takich jak getopt(), tym, że definicje flag
27 mogą być rozproszone po kodzie źródłowym, a nie wypisane tylko w
28 jednym miejscu, takim jak main().
31 Summary: Header files for gflags library
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gflags
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
35 Requires: libstdc++-devel
38 Header files for gflags library.
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki gflags.
44 Summary: Static gflags library
45 Summary(pl.UTF-8): Statyczna biblioteka gflags
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
50 Static gflags library.
52 %description static -l pl.UTF-8
53 Statyczna biblioteka gflags.
63 -DBUILD_STATIC_LIBS=ON
67 rm -rf $RPM_BUILD_ROOT
69 %{__make} -C build install \
70 DESTDIR=$RPM_BUILD_ROOT
72 # disable completeness check incompatible with split packaging
73 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d' $RPM_BUILD_ROOT%{_libdir}/cmake/gflags/gflags-targets.cmake
76 rm -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
83 %doc AUTHORS.txt COPYING.txt ChangeLog.txt README.md
84 %attr(755,root,root) %{_bindir}/gflags_completions.sh
85 %attr(755,root,root) %{_libdir}/libgflags.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libgflags.so.2.2
87 %attr(755,root,root) %{_libdir}/libgflags_nothreads.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libgflags_nothreads.so.2.2
91 %defattr(644,root,root,755)
92 # not present in 2.2.0
93 #%doc doc/{index.html,designstyle.css}
94 %attr(755,root,root) %{_libdir}/libgflags.so
95 %attr(755,root,root) %{_libdir}/libgflags_nothreads.so
97 %{_pkgconfigdir}/gflags.pc
98 %{_pkgconfigdir}/gflags_nothreads.pc
99 %{_libdir}/cmake/gflags
102 %defattr(644,root,root,755)
103 %{_libdir}/libgflags.a
104 %{_libdir}/libgflags_nothreads.a