docbook2X-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Name: docbook2X
  2. Version: 0.8.8
  3. Release: 2%{?_dist_release}
  4. Summary: Convert DocBook documents into man and Texinfo
  5. Summary(ja): DocBook ドキュメントを man と Texinfo へ変換
  6. Group: Applications/Text
  7. License: BSD
  8. URL: http://docbook2x.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/docbook2x/docbook2X-%{version}.tar.gz
  10. Patch0: 01_fix_static_datadir_evaluation.patch
  11. Patch1: 02_fix_418703_dont_use_abbreviated_sfnet_address.patch
  12. Patch2: 03_fix_420153_filename_whitespace_handling.patch
  13. Patch3: 04_fix_442782_preprocessor_declaration_syntax.patch
  14. Patch4: 05_fix_439214_error_on_missing_refentry.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: perl libxslt openjade texinfo %{_bindir}/sgml2xml
  17. # required by the perl -c calls during build
  18. BuildRequires: perl-XML-SAX
  19. # rpmlint isn't happy with libxslt, but we need xsltproc
  20. Requires: libxslt openjade texinfo %{_bindir}/sgml2xml
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. Requires(post): /sbin/install-info
  23. Requires(preun): /sbin/install-info
  24. %description
  25. docbook2X converts DocBook documents into man pages and Texinfo
  26. documents.
  27. %description -l ja
  28. docbook2X は DocBook ドキュメントを man ページと Texinfo ドキュメントへ
  29. 変換します。
  30. %prep
  31. %setup -q
  32. %patch0 -p1
  33. %patch1 -p1
  34. %patch2 -p1
  35. %patch3 -p1
  36. %patch4 -p1
  37. %build
  38. # to avoid clashing with docbook2* from docbook-utils
  39. %configure --program-transform-name='s/docbook2/db2x_docbook2/'
  40. make %{?_smp_mflags}
  41. rm -rf __dist_html
  42. mkdir -p __dist_html/html
  43. cp -p doc/*.html __dist_html/html
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -c -p'
  47. rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
  48. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT
  51. %post
  52. /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
  53. %preun
  54. if [ $1 = 0 ]; then
  55. /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
  56. fi
  57. %files
  58. %defattr(-,root,root,-)
  59. %doc COPYING README THANKS AUTHORS __dist_html/html/
  60. %{_bindir}/db2x_manxml
  61. %{_bindir}/db2x_texixml
  62. %{_bindir}/db2x_xsltproc
  63. %{_bindir}/db2x_docbook2man
  64. %{_bindir}/db2x_docbook2texi
  65. %{_bindir}/sgml2xml-isoent
  66. %{_bindir}/utf8trans
  67. %dir %{_datadir}/docbook2X
  68. %{_datadir}/docbook2X/VERSION
  69. %dir %{_datadir}/docbook2X/charmaps
  70. %dir %{_datadir}/docbook2X/dtd
  71. %dir %{_datadir}/docbook2X/xslt
  72. %{_datadir}/docbook2X/charmaps/*
  73. %{_datadir}/docbook2X/dtd/*
  74. %{_datadir}/docbook2X/xslt/*
  75. %{_mandir}/man1/*.1*
  76. %{_infodir}/docbook2*
  77. %changelog
  78. * Thu Sep 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-2
  79. - added Patch0,1,2,3,4 from Debian
  80. * Sun Mar 16 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-1vl5
  81. - initial build for VineSeed
  82. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-4
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  84. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.8-3
  85. Rebuild for new perl
  86. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.8-2
  87. - Autorebuild for GCC 4.3
  88. * Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.8.8-1
  89. - update to 0.8.8
  90. * Mon Sep 11 2006 Patrice Dumas <pertusus@free.fr> 0.8.7-2
  91. - correct the perl-XML-SAX to be perl(XML::SAX::ParserFactory)
  92. * Thu May 18 2006 Patrice Dumas <pertusus@free.fr> - 0.8.7-1
  93. - update to 0.8.7
  94. * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.6-1
  95. - update to 0.8.6
  96. - drop patch as SGMLSpl.pm is included in the scripts, not distributed
  97. - BR perl-XML-SAX (close 188481)
  98. * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-2
  99. - rebuild for fc5
  100. * Fri Feb 3 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-1
  101. - FE submission