]>
Commit | Line | Data |
---|---|---|
fba8bc42 ER |
1 | # TODO |
2 | # - build with (static) trurlib | |
3 | # - fix-info-dir.c: In function `usage': | |
4 | # fix-info-dir.c:391: warning: string length `1007' is greater than the length `509' ISO C89 compilers are required to support | |
789c209a | 5 | Summary: Creates a top-level info `dir' file |
c3449378 | 6 | Summary(pl.UTF-8): Tworzy główny plik 'dir' dla systemu Info |
789c209a | 7 | Name: fix-info-dir |
239a36d2 | 8 | Version: 0.13 |
f087051e | 9 | Release: 10 |
80f78cb6 | 10 | License: GPL |
8f20e58a | 11 | Group: Applications/System |
b15e9860 | 12 | Source0: ftp://ftp.pld.org.pl/software/fix-info-dir/%{name}-%{version}.tar.gz |
304851d3 | 13 | # Source0-md5: 27e91d3e5c91a2fdad85bf93c9e4cfcf |
3f6637f1 | 14 | Patch0: %{name}-Makefile.patch |
789c209a | 15 | BuildRequires: zlib-devel |
80f78cb6 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
789c209a | 17 | |
18 | %description | |
80f78cb6 | 19 | Utility which creates a top-level `dir' file in the Info system. |
789c209a | 20 | |
8db367e2 JR |
21 | %description -l pl.UTF-8 |
22 | Narzędzie tworzące główny plik 'dir' dla systemu Info | |
39d14415 | 23 | |
46ae1565 | 24 | %prep |
25 | %setup -q | |
3f6637f1 | 26 | %patch0 -p1 |
789c209a | 27 | |
28 | %build | |
ddc1e97b | 29 | %{__make} \ |
30 | CC="%{__cc}" \ | |
3f6637f1 | 31 | CFLAGS="%{rpmcflags} -fomit-frame-pointer -DNDEBUG" \ |
32 | LDFLAGS="%{rpmldflags}" | |
46ae1565 | 33 | |
789c209a | 34 | %install |
80f78cb6 | 35 | rm -rf $RPM_BUILD_ROOT |
36 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_infodir}} | |
37 | ||
2f017037 | 38 | install %{name} $RPM_BUILD_ROOT%{_sbindir} |
3c50dff2 | 39 | |
2f017037 | 40 | touch $RPM_BUILD_ROOT%{_infodir}/{dir,dir.old} |
789c209a | 41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
f7ce3a00 | 45 | %post |
46ae1565 | 46 | %{_sbindir}/fix-info-dir %{_infodir} |
f7ce3a00 | 47 | |
789c209a | 48 | %files |
49 | %defattr(644,root,root,755) | |
50 | %attr(755,root,root) %{_sbindir}/%{name} | |
46ae1565 | 51 | %ghost %{_infodir}/dir |
95204914 | 52 | %ghost %{_infodir}/dir.old |