docbook2X-vl.spec 4.1 KB

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