]> git.pld-linux.org Git - packages/texi2html.git/blob - texi2html.spec
missing fix-info-dir
[packages/texi2html.git] / texi2html.spec
1 # NOTE: 5.0 is likely to be the last separate texi2html release (as merged into texinfo)
2 %include        /usr/lib/rpm/macros.perl
3 Summary:        texi2html is a Perl script that converts Texinfo files to HTML
4 Summary(hu.UTF-8):      texi2html egy Perl szkript, amely Texinfo fájlokat konvertál HTML-be
5 Summary(pl.UTF-8):      texi2html - skrypt Perla konwertujący pliki Texinfo do HTML-a
6 Name:           texi2html
7 Version:        5.0
8 Release:        3
9 License:        GPL v2+
10 Group:          Development/Tools
11 Source0:        http://download.savannah.gnu.org/releases/texi2html/%{name}-%{version}.tar.bz2
12 # Source0-md5:  f15ac876fcdc8be865b16535f480aa54
13 Patch0:         %{name}-info.patch
14 Patch1:         %{name}-perl.patch
15 URL:            http://www.nongnu.org/texi2html/
16 BuildRequires:  autoconf >= 2.53
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  gettext-tools >= 0.14
19 BuildRequires:  perl-Encode
20 BuildRequires:  perl-base
21 BuildRequires:  rpm-perlprov
22 BuildRequires:  texinfo
23 Requires:       perl-Unicode-EastAsianWidth
24 Requires:       perl-libintl
25 Requires:       texinfo >= 5.0
26 Suggests:       perl-Encode
27 Suggests:       perl-Text-Unidecode
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 texi2html is a Perl script that converts Texinfo files to HTML.
32
33 %description -l hu.UTF-8
34 texi2html egy Perl szkript, amely Texinfo fájlokat konvertál HTML-be.
35
36 %description -l pl.UTF-8
37 texi2html to skrypt Perla konwertujący pliki Texinfo do HTML-a.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42 %patch1 -p1
43
44 %build
45 %{__gettextize}
46 cp -f po/Makefile.in.in po_document/
47 cp -f po/Makefile.in.in po_messages/
48 %{__aclocal}
49 %{__autoconf}
50 %{__automake}
51 %configure \
52         --with-external-Unicode-EastAsianWidth \
53         --with-external-libintl-perl
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
62
63 # only .us-ascii or base exists - merge them(?)
64 for d in $RPM_BUILD_ROOT%{_localedir}/*.us-ascii ; do
65         outd=$RPM_BUILD_ROOT%{_localedir}/$(basename $d .us-ascii)/LC_MESSAGES
66         install -d $outd
67         %{__mv} $d/LC_MESSAGES/texi2html_document.mo $outd
68 done
69 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb}/LC_MESSAGES/texi2html_document.mo
70 %find_lang %{name} --all-name
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/postshell
76 -/usr/sbin/fix-info-dir -c %{_infodir}
77
78 %postun -p /sbin/postshell
79 -/usr/sbin/fix-info-dir -c %{_infodir}
80
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog NEWS README
84 %attr(755,root,root) %{_bindir}/texi2html
85 %{_datadir}/texi2html
86 %{_datadir}/texinfo/init/*.init
87 %dir %{_datadir}/texinfo/html
88 %doc %{_datadir}/texinfo/html/texi2html.html
89 %{_mandir}/man1/texi2html*
90 %{_infodir}/texi2html.info*
This page took 0.0632 seconds and 3 git commands to generate.