]> git.pld-linux.org Git - packages/fix-info-dir.git/blob - fix-info-dir.spec
- tabs in preamble
[packages/fix-info-dir.git] / fix-info-dir.spec
1 %define no_install_post_compress_docs 1
2
3 Summary:        Creates a top-level info `dir' file
4 Summary(pl.UTF-8):      Tworzy główny plik 'dir' dla systemu Info
5 Name:           fix-info-dir
6 Version:        0.13
7 Release:        8
8 License:        GPL
9 Group:          Applications/System
10 Source0:        ftp://ftp.pld.org.pl/software/fix-info-dir/%{name}-%{version}.tar.gz
11 # Source0-md5:  27e91d3e5c91a2fdad85bf93c9e4cfcf
12 Patch0:         %{name}-Makefile.patch
13 BuildRequires:  zlib-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Utility which creates a top-level `dir' file in the Info system.
18
19 %description -l pl.UTF-8
20 Narzędzie tworzące główny plik 'dir' dla systemu Info
21
22 %prep
23 %setup -q
24 %patch0 -p1
25
26 %build
27 %{__make} \
28         CC="%{__cc}" \
29         CFLAGS="%{rpmcflags} -fomit-frame-pointer -DNDEBUG" \
30         LDFLAGS="%{rpmldflags}"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_infodir}}
35
36 install %{name} $RPM_BUILD_ROOT%{_sbindir}
37
38 touch $RPM_BUILD_ROOT%{_infodir}/{dir,dir.old}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 %{_sbindir}/fix-info-dir %{_infodir}
45
46 %files
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{_sbindir}/%{name}
49 %ghost %{_infodir}/dir
50 %ghost %{_infodir}/dir.old
This page took 0.053792 seconds and 3 git commands to generate.