]> git.pld-linux.org Git - packages/gflags.git/blame - gflags.spec
- TODO already fixed
[packages/gflags.git] / gflags.spec
CommitLineData
6c0e1c4c
JB
1Summary: A commandline flags library that allows for distributed flags
2Summary(pl.UTF-8): Biblioteka flag linii poleceń pozwalająca na rozproszone flagi
3Name: gflags
d55de539 4Version: 2.2.2
559bef06 5Release: 2
6c0e1c4c
JB
6License: BSD
7Group: Libraries
0b0ad861 8#Source0Download: https://github.com/gflags/gflags/releases
6998cb4c 9Source0: https://github.com/schuhschuh/gflags/archive/v%{version}/%{name}-%{version}.tar.gz
d55de539 10# Source0-md5: 1a865b93bacfa963201af3f75b7bd64c
61c87c6d 11Patch0: %{name}-pc-nothreads.patch
0b0ad861 12URL: http://gflags.github.io/gflags/
d55de539 13BuildRequires: cmake >= 3.0.2
6c0e1c4c 14BuildRequires: libstdc++-devel
7feff4bc 15BuildRequires: sed >= 4.0
6c0e1c4c
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19gflags is Google's commandline flags library. It differs from other
20libraries, such as getopt(), in that flag definitions can be scattered
21around the source code, and not just listed in one place such as
22main().
23
24%description -l pl.UTF-8
25gflags to biblioteka flag linii poleceń stworzona przez Google. Różni
26się od innych bibliotek, takich jak getopt(), tym, że definicje flag
27mogą być rozproszone po kodzie źródłowym, a nie wypisane tylko w
28jednym miejscu, takim jak main().
29
30%package devel
31Summary: Header files for gflags library
32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gflags
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35Requires: libstdc++-devel
36
37%description devel
38Header files for gflags library.
39
40%description devel -l pl.UTF-8
41Pliki nagłówkowe biblioteki gflags.
42
43%package static
44Summary: Static gflags library
45Summary(pl.UTF-8): Statyczna biblioteka gflags
46Group: Development/Libraries
47Requires: %{name}-devel = %{version}-%{release}
48
49%description static
50Static gflags library.
51
52%description static -l pl.UTF-8
53Statyczna biblioteka gflags.
54
55%prep
56%setup -q
6998cb4c 57%patch0 -p1
6c0e1c4c
JB
58
59%build
6998cb4c
JB
60install -d build
61cd build
62%cmake .. \
63 -DBUILD_STATIC_LIBS=ON
6c0e1c4c
JB
64%{__make}
65
66%install
67rm -rf $RPM_BUILD_ROOT
68
6998cb4c 69%{__make} -C build install \
6c0e1c4c
JB
70 DESTDIR=$RPM_BUILD_ROOT
71
7feff4bc 72# disable completeness check incompatible with split packaging
559bef06
JB
73%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d' \
74 $RPM_BUILD_ROOT%{_libdir}/cmake/gflags/gflags-nonamespace-targets.cmake \
75 $RPM_BUILD_ROOT%{_libdir}/cmake/gflags/gflags-targets.cmake
7feff4bc 76
6c0e1c4c
JB
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post -p /sbin/ldconfig
81%postun -p /sbin/ldconfig
82
83%files
84%defattr(644,root,root,755)
0b0ad861 85%doc AUTHORS.txt COPYING.txt ChangeLog.txt README.md
6c0e1c4c
JB
86%attr(755,root,root) %{_bindir}/gflags_completions.sh
87%attr(755,root,root) %{_libdir}/libgflags.so.*.*.*
61c87c6d 88%attr(755,root,root) %ghost %{_libdir}/libgflags.so.2.2
6c0e1c4c 89%attr(755,root,root) %{_libdir}/libgflags_nothreads.so.*.*.*
61c87c6d 90%attr(755,root,root) %ghost %{_libdir}/libgflags_nothreads.so.2.2
6c0e1c4c
JB
91
92%files devel
93%defattr(644,root,root,755)
61c87c6d
JB
94# not present in 2.2.0
95#%doc doc/{index.html,designstyle.css}
6c0e1c4c
JB
96%attr(755,root,root) %{_libdir}/libgflags.so
97%attr(755,root,root) %{_libdir}/libgflags_nothreads.so
98%{_includedir}/gflags
61c87c6d
JB
99%{_pkgconfigdir}/gflags.pc
100%{_pkgconfigdir}/gflags_nothreads.pc
6998cb4c 101%{_libdir}/cmake/gflags
6c0e1c4c
JB
102
103%files static
104%defattr(644,root,root,755)
105%{_libdir}/libgflags.a
106%{_libdir}/libgflags_nothreads.a
This page took 0.066202 seconds and 5 git commands to generate.