]> git.pld-linux.org Git - packages/gflags.git/blame - gflags.spec
- updated to 2.2.2
[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
JB
4Version: 2.2.2
5Release: 1
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
JB
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
74
6c0e1c4c
JB
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%post -p /sbin/ldconfig
79%postun -p /sbin/ldconfig
80
81%files
82%defattr(644,root,root,755)
0b0ad861 83%doc AUTHORS.txt COPYING.txt ChangeLog.txt README.md
6c0e1c4c
JB
84%attr(755,root,root) %{_bindir}/gflags_completions.sh
85%attr(755,root,root) %{_libdir}/libgflags.so.*.*.*
61c87c6d 86%attr(755,root,root) %ghost %{_libdir}/libgflags.so.2.2
6c0e1c4c 87%attr(755,root,root) %{_libdir}/libgflags_nothreads.so.*.*.*
61c87c6d 88%attr(755,root,root) %ghost %{_libdir}/libgflags_nothreads.so.2.2
6c0e1c4c
JB
89
90%files devel
91%defattr(644,root,root,755)
61c87c6d
JB
92# not present in 2.2.0
93#%doc doc/{index.html,designstyle.css}
6c0e1c4c
JB
94%attr(755,root,root) %{_libdir}/libgflags.so
95%attr(755,root,root) %{_libdir}/libgflags_nothreads.so
96%{_includedir}/gflags
61c87c6d
JB
97%{_pkgconfigdir}/gflags.pc
98%{_pkgconfigdir}/gflags_nothreads.pc
6998cb4c 99%{_libdir}/cmake/gflags
6c0e1c4c
JB
100
101%files static
102%defattr(644,root,root,755)
103%{_libdir}/libgflags.a
104%{_libdir}/libgflags_nothreads.a
This page took 0.079646 seconds and 4 git commands to generate.