]>
Commit | Line | Data |
---|---|---|
6c0e1c4c JB |
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 | |
3 | Name: gflags | |
4 | Version: 1.5 | |
5 | Release: 1 | |
6 | License: BSD | |
7 | Group: Libraries | |
8 | #Source0Download: http://code.google.com/p/google-gflags/downloads/list | |
9 | Source0: http://google-gflags.googlecode.com/files/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 0e66a83014efcd395d936c7fb7e71fd8 | |
11 | URL: http://code.google.com/p/google-gflags/ | |
12 | BuildRequires: libstdc++-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | gflags is Google's commandline flags library. It differs from other | |
17 | libraries, such as getopt(), in that flag definitions can be scattered | |
18 | around the source code, and not just listed in one place such as | |
19 | main(). | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | gflags to biblioteka flag linii poleceń stworzona przez Google. Różni | |
23 | się od innych bibliotek, takich jak getopt(), tym, że definicje flag | |
24 | mogą być rozproszone po kodzie źródłowym, a nie wypisane tylko w | |
25 | jednym miejscu, takim jak main(). | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for gflags library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gflags | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: libstdc++-devel | |
33 | ||
34 | %description devel | |
35 | Header files for gflags library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki gflags. | |
39 | ||
40 | %package static | |
41 | Summary: Static gflags library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka gflags | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static gflags library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka gflags. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | ||
55 | %build | |
56 | %configure | |
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | # obsoleted by pkg-config | |
66 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
67 | # <google/gflags*.h> inclusion is obsolete, directory belongs to other package | |
68 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/google | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc AUTHORS COPYING ChangeLog NEWS README | |
79 | %attr(755,root,root) %{_bindir}/gflags_completions.sh | |
80 | %attr(755,root,root) %{_libdir}/libgflags.so.*.*.* | |
81 | %attr(755,root,root) %ghost %{_libdir}/libgflags.so.0 | |
82 | %attr(755,root,root) %{_libdir}/libgflags_nothreads.so.*.*.* | |
83 | %attr(755,root,root) %ghost %{_libdir}/libgflags_nothreads.so.0 | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %doc doc/{gflags.html,designstyle.css} | |
88 | %attr(755,root,root) %{_libdir}/libgflags.so | |
89 | %attr(755,root,root) %{_libdir}/libgflags_nothreads.so | |
90 | %{_includedir}/gflags | |
91 | %{_pkgconfigdir}/libgflags.pc | |
92 | %{_pkgconfigdir}/libgflags_nothreads.pc | |
93 | ||
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libgflags.a | |
97 | %{_libdir}/libgflags_nothreads.a |