]>
Commit | Line | Data |
---|---|---|
ff6ec720 AM |
1 | %define snap 20130521 |
2 | %define commit 9ceceed274f83094127f9ff0bf061293c9fe1e7f | |
528354db AG |
3 | Summary: GNU Portability Library |
4 | Summary(pl.UTF-8): biblioteka przenośności GNU | |
5 | Name: gnulib | |
6 | Version: 0 | |
7 | Release: 0.%{snap}.1 | |
8 | License: GPL | |
9 | Group: Development | |
ff6ec720 AM |
10 | Source0: http://git.savannah.gnu.org/cgit/gnulib.git/snapshot/%{name}-%{commit}.tar.gz |
11 | # Source0-md5: 5d3548c827b7d67c96ac7810cf4e6662 | |
528354db AG |
12 | Source1: %{name}-tool.1 |
13 | Source2: %{name}-check-module.1 | |
14 | URL: http://www.gnu.org/software/gnulib/ | |
ecb6b0c0 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
528354db AG |
16 | |
17 | %description | |
18 | The GNU portability library is a macro system and C declarations and | |
19 | definitions for commonly-used API elements and abstracted system | |
20 | behaviors. It can be used to improve portability and other | |
21 | functionality in your programs. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Biblioteka przenośności GNU to system makr i deklaracji oraz definicji | |
25 | C dla często używanych elementów API. Biblioteka ta może być | |
26 | wykorzystana w celu ulepszenia przeności oraz funkcjonalności | |
27 | programów. | |
28 | ||
29 | %prep | |
ff6ec720 | 30 | %setup -q -n %{name}-%{commit} |
528354db AG |
31 | sed -ie 's@\(^\| \)gnulib_dir=.*@\1gnulib_dir=%{_datadir}/gnulib@' gnulib-tool |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/gnulib,%{_mandir}/man1} | |
36 | cp -a check-module gnulib-tool $RPM_BUILD_ROOT%{_bindir} | |
37 | cp -a build-aux config doc lib m4 modules tests $RPM_BUILD_ROOT%{_datadir}/gnulib | |
38 | install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1 | |
39 | install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/check-module.1 | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc ChangeLog COPYING DEPENDENCIES NEWS | |
47 | %attr(755,root,root) %{_bindir}/check-module | |
48 | %attr(755,root,root) %{_bindir}/gnulib-tool | |
49 | %{_datadir}/gnulib | |
50 | %{_mandir}/man1/*.1* |