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