12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- Name: texi2html
- Version: @PACKAGE_VERSION@
- Release: 1
- # GPLv2+ is for the code
- # OFSFDL (Old FSF Documentation License) for the documentation
- # CC-BY-SA or GPLv2 for the images
- License: GPLv2+ and OFSFDL and (CC-BY-SA or GPLv2)
- Group: Applications/Text
- Summary: A highly customizable texinfo to HTML and other formats translator
- Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.bz2
- URL: http://www.nongnu.org/texi2html/
- Requires(post): /sbin/install-info
- Requires(preun): /sbin/install-info
- # perl is picked up automatically in most cases and the package may have
- # a different name so it is better not to require it. Moreover such old perl
- # is unlikely to show up in a rpm based distribution.
- #Requires: perl >= 5.004
- Requires: latex2html
- BuildRequires: perl(Text::Unidecode)
- # not detected automatically because it is required at runtime based on
- # user configuration
- Requires: perl(Text::Unidecode)
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
- BuildArch: noarch
- %description
- The basic purpose of texi2html is to convert Texinfo documents into HTML,
- and other formats. Configuration files written in perl provide fine degree
- of control over the final output, allowing most every aspect of the final
- output not specified in the Texinfo input file to be specified.
- %prep
- %setup -q
- %build
- %configure
- make %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
- ln -s texi2any $RPM_BUILD_ROOT%{_bindir}/texi2html
- rm -rf __dist_examples
- mkdir -p __dist_examples
- cp -a examples __dist_examples
- rm -f __dist_examples/examples/Makefile*
- # directories shared by all the texinfo implementations for common
- # config files, like htmlxref.cnf
- mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/texinfo
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post
- /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
- %preun
- if [ $1 = 0 ]; then
- /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
- fi
- %files
- %defattr(-,root,root,-)
- %doc AUTHORS COPYING ChangeLog NEWS README TODO %{name}.pm
- %doc __dist_examples/examples/
- %{_bindir}/%{name}
- %{_bindir}/texi2any
- %{_mandir}/man*/%{name}*
- %{_infodir}/%{name}.info*
- %dir %{_datadir}/texinfo/
- %dir %{_datadir}/texinfo/init
- %{_datadir}/texinfo/init/*.pm
- %{_datadir}/texinfo/html/%{name}.html
- %dir %{_datadir}/%{name}/i18n/
- %{_datadir}/%{name}/i18n/*
- %dir %{_datadir}/%{name}/images/
- %{_datadir}/%{name}/images/*
- %dir %{_sysconfdir}/texinfo
- %changelog
- * Sun Sep 9 2007 Patrice Dumas <pertusus@free.fr> @PACKAGE_VERSION@-1
- - update to @PACKAGE_VERSION@
- * Mon Nov 14 2005 Patrice Dumas <pertusus@free.fr> 1.77-1
- - cleanups
- * Mon Mar 23 2004 Patrice Dumas <pertusus@free.fr> 0:1.69-0.fdr.1
- - Initial build.
|