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
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
27 Suggests: perl-Text-Unidecode
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 texi2html is a Perl script that converts Texinfo files to HTML.
33 %description -l hu.UTF-8
34 texi2html egy Perl szkript, amely Texinfo fájlokat konvertál HTML-be.
36 %description -l pl.UTF-8
37 texi2html to skrypt Perla konwertujący pliki Texinfo do HTML-a.
46 cp -f po/Makefile.in.in po_document/
47 cp -f po/Makefile.in.in po_messages/
52 --with-external-Unicode-EastAsianWidth \
53 --with-external-libintl-perl
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
61 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
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
67 %{__mv} $d/LC_MESSAGES/texi2html_document.mo $outd
69 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb}/LC_MESSAGES/texi2html_document.mo
70 %find_lang %{name} --all-name
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/postshell
76 -/usr/sbin/fix-info-dir -c %{_infodir}
78 %postun -p /sbin/postshell
79 -/usr/sbin/fix-info-dir -c %{_infodir}
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog NEWS README
84 %attr(755,root,root) %{_bindir}/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*