docbook5-style-xsl-vl.spec 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. Name: docbook5-style-xsl
  2. Version: 1.79.2
  3. Release: 9%{?_dist_release}
  4. Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
  5. Vendor: Project Vine
  6. Distribution: Vine Linux
  7. # Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
  8. # some .js files under ./slides/browser/ are licensed MPLv1.1
  9. License: MIT and MPLv1.1
  10. URL: https://github.com/docbook/xslt10-stylesheets
  11. Provides: docbook-xsl-ns = %{version}
  12. # xml-common was using /usr/share/xml until 0.6.3-8.
  13. Requires: xml-common >= 0.6.3-8
  14. # libxml2 required because of usage of /usr/bin/xmlcatalog
  15. Requires(post): libxml2 >= 2.4.8
  16. Requires(postun): libxml2 >= 2.4.8
  17. Conflicts: passivetex < 1.21
  18. BuildArch: noarch
  19. Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-%{version}.tar.bz2
  20. %description
  21. These XSL namespace aware stylesheets allow you to transform any
  22. DocBook 5 document to other formats, such as HTML, manpages, FO,
  23. XHMTL and other formats. They are highly customizable. For more
  24. information see W3C page about XSL.
  25. #Don't ship Java extensions in Fedora as they are not compiled from the source
  26. #Shiping sources instead of binary jars was requested by
  27. #https://lists.oasis-open.org/archives/docbook-apps/201408/msg00008.html
  28. #Sources available in the docbook stylesheets svn repository, but not packaged.
  29. %if 0%{?rhel} >= 7
  30. %package extensions
  31. Summary: Norman Walsh's XSL stylesheets extensions for DocBook 5.X
  32. # Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
  33. # some .js files under ./slides/browser/ are licensed MPLv1.1
  34. License: MIT and ASL 2.0
  35. Requires: docbook-xsl-ns = %{version}
  36. %description extensions
  37. This package contains Java extensions for XSL namespace aware stylesheets.
  38. %endif
  39. %prep
  40. %setup -q -n docbook-xsl-%{version}
  41. #remove .gitignore files
  42. rm -rf $(find -name '.gitignore' -type f)
  43. #make ruby scripts executable
  44. chmod +x epub/bin/dbtoepub
  45. %build
  46. %install
  47. DESTDIR=$RPM_BUILD_ROOT
  48. mkdir -p $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
  49. cp -a [[:lower:]]* $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
  50. cp -a VERSION $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION.xsl
  51. ln -s VERSION.xsl \
  52. $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION
  53. ln -s xsl-ns-stylesheets-%{version} \
  54. $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets
  55. # Don't ship install shell script.
  56. rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
  57. %files
  58. %license COPYING
  59. %doc BUGS
  60. %doc README
  61. %doc TODO NEWS
  62. %doc RELEASE-NOTES.*
  63. %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
  64. %{_datadir}/sgml/docbook/xsl-ns-stylesheets
  65. %exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
  66. %if 0%{?rhel} >= 7
  67. %files extensions
  68. %license extensions/LICENSE.txt
  69. %doc extensions/README.txt
  70. %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
  71. %endif
  72. %post
  73. CATALOG=%{_sysconfdir}/xml/catalog
  74. %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  75. "http://cdn.docbook.org/release/xsl/%{version}" \
  76. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  77. %{_bindir}/xmlcatalog --noout --add "rewriteURI" \
  78. "http://cdn.docbook.org/release/xsl/%{version}" \
  79. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  80. %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  81. "http://cdn.docbook.org/release/xsl/current/" \
  82. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  83. %{_bindir}/xmlcatalog --noout --add "rewriteURI" \
  84. "http://cdn.docbook.org/release/xsl/current/" \
  85. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  86. %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  87. "http://docbook.sourceforge.net/release/xsl-ns/current" \
  88. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  89. %{_bindir}/xmlcatalog --noout --add "rewriteURI" \
  90. "http://docbook.sourceforge.net/release/xsl-ns/current" \
  91. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  92. %postun
  93. # remove entries only on removal of package
  94. if [ "$1" = 0 ]; then
  95. CATALOG=%{_sysconfdir}/xml/catalog
  96. %{_bindir}/xmlcatalog --noout --del \
  97. "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
  98. fi
  99. %changelog
  100. * Tue Oct 29 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.79.2-9
  101. - initial build for Vine Linux.
  102. * Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.79.2-8
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  104. * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.79.2-7
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  106. * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.79.2-6
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  108. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.79.2-5
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  110. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.79.2-4
  111. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  112. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.79.2-3
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  114. * Tue Jan 03 2017 Ondrej Vasik <ovasik@redhat.com> - 1.79.2-2
  115. - keep the old sourceforge URI rewrites at least temporarily
  116. * Mon Jan 02 2017 Ondrej Vasik <ovasik@redhat.com> - 1.79.2-1
  117. - new upstream release 1.79.2
  118. - upstream moved to github, switch online content to docbook CDN
  119. * Fri Jul 08 2016 Ondrej Vasik <ovasik@redhat.com> - 1.79.1-1
  120. - new upstream release 1.79.1
  121. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.78.1-8
  122. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  123. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.78.1-7
  124. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  125. * Fri Sep 05 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-6
  126. - Don't ship Java extensions on Fedora until compiled from
  127. sources
  128. * Wed Jul 16 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-5
  129. - fix the extensions inclusion
  130. * Wed Jul 16 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-4
  131. - include extensions in extensions subpackage (#1084491)
  132. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.78.1-3
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  134. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.78.1-2
  135. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  136. * Mon Mar 18 2013 Ondrej Vasik <ovasik@redhat.com> 1.78.1-1
  137. - new upstream release 1.78.1
  138. * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.78.0-3
  139. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  140. * Thu Jan 03 2013 Ondrej Vasik <ovasik@redhat.com> 1.78.0-2
  141. - resolve missing VERSION.xsl (#891459)
  142. * Thu Dec 20 2012 Ondrej Vasik <ovasik@redhat.com> 1.78.0-1
  143. - new upstream release 1.78.0
  144. * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.77.1-2
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  146. * Tue Jun 05 2012 Ondrej Vasik <ovasik@redhat.com> 1.77.1-1
  147. - new upstream release 1.77.1
  148. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.76.1-2
  149. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  150. * Tue Nov 02 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.1-1
  151. - new upstream release 1.76.1
  152. * Mon Sep 06 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.0-1
  153. - new upstream release 1.76.0
  154. * Tue Feb 23 2010 Ondrej Vasik <ovasik@redhat.com> 1.75.2-4
  155. - fix the licenses, use better URL
  156. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.75.2-3
  157. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  158. * Wed Jul 22 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-2
  159. - upstream changed tarballs after release
  160. * Tue Jul 21 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-1
  161. - new upstream release 1.75.2
  162. * Thu May 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.1-1
  163. - new upstream release 1.75.1
  164. * Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.0-1
  165. - new upstream release 1.75.0
  166. * Wed Mar 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.3-1
  167. - new upstream release 1.74.3
  168. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.74.2-2
  169. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  170. * Fri Feb 20 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.2-1
  171. - new upstream release 1.74.2
  172. * Wed Feb 18 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.1-1
  173. - new upstream release 1.74.1
  174. * Fri Feb 13 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-2
  175. - Ship VERSION file (#485297) , ship RELEASE-NOTES
  176. * Mon Nov 10 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-1
  177. - Initial Fedora release