texi2html.spec.in 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Name: texi2html
  2. Version: @PACKAGE_VERSION@
  3. Release: 1
  4. # GPLv2+ is for the code
  5. # OFSFDL (Old FSF Documentation License) for the documentation
  6. # CC-BY-SA or GPLv2 for the images
  7. License: GPLv2+ and OFSFDL and (CC-BY-SA or GPLv2)
  8. Group: Applications/Text
  9. Summary: A highly customizable texinfo to HTML and other formats translator
  10. Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.bz2
  11. URL: http://www.nongnu.org/texi2html/
  12. Requires(post): /sbin/install-info
  13. Requires(preun): /sbin/install-info
  14. # perl is picked up automatically in most cases and the package may have
  15. # a different name so it is better not to require it. Moreover such old perl
  16. # is unlikely to show up in a rpm based distribution.
  17. #Requires: perl >= 5.004
  18. Requires: latex2html
  19. BuildRequires: perl(Text::Unidecode)
  20. # not detected automatically because it is required at runtime based on
  21. # user configuration
  22. Requires: perl(Text::Unidecode)
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  24. BuildArch: noarch
  25. %description
  26. The basic purpose of texi2html is to convert Texinfo documents into HTML,
  27. and other formats. Configuration files written in perl provide fine degree
  28. of control over the final output, allowing most every aspect of the final
  29. output not specified in the Texinfo input file to be specified.
  30. %prep
  31. %setup -q
  32. %build
  33. %configure
  34. make %{?_smp_mflags}
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install DESTDIR=$RPM_BUILD_ROOT
  38. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  39. ln -s texi2any $RPM_BUILD_ROOT%{_bindir}/texi2html
  40. rm -rf __dist_examples
  41. mkdir -p __dist_examples
  42. cp -a examples __dist_examples
  43. rm -f __dist_examples/examples/Makefile*
  44. # directories shared by all the texinfo implementations for common
  45. # config files, like htmlxref.cnf
  46. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/texinfo
  47. %clean
  48. rm -rf $RPM_BUILD_ROOT
  49. %post
  50. /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
  51. %preun
  52. if [ $1 = 0 ]; then
  53. /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
  54. fi
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc AUTHORS COPYING ChangeLog NEWS README TODO %{name}.pm
  58. %doc __dist_examples/examples/
  59. %{_bindir}/%{name}
  60. %{_bindir}/texi2any
  61. %{_mandir}/man*/%{name}*
  62. %{_infodir}/%{name}.info*
  63. %dir %{_datadir}/texinfo/
  64. %dir %{_datadir}/texinfo/init
  65. %{_datadir}/texinfo/init/*.pm
  66. %{_datadir}/texinfo/html/%{name}.html
  67. %dir %{_datadir}/%{name}/i18n/
  68. %{_datadir}/%{name}/i18n/*
  69. %dir %{_datadir}/%{name}/images/
  70. %{_datadir}/%{name}/images/*
  71. %dir %{_sysconfdir}/texinfo
  72. %changelog
  73. * Sun Sep 9 2007 Patrice Dumas <pertusus@free.fr> @PACKAGE_VERSION@-1
  74. - update to @PACKAGE_VERSION@
  75. * Mon Nov 14 2005 Patrice Dumas <pertusus@free.fr> 1.77-1
  76. - cleanups
  77. * Mon Mar 23 2004 Patrice Dumas <pertusus@free.fr> 0:1.69-0.fdr.1
  78. - Initial build.