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