docbook-style-xsl-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. Name: docbook-style-xsl
  2. Version: 1.79.2
  3. Release: 1%{?_dist_release}
  4. Group: Applications/Text
  5. Summary: Norman Walsh's XSL stylesheets for DocBook XML.
  6. Summary(ja): DocBook XML用 XSLスタイルシート
  7. License: DMIT
  8. URL: https://github.com/docbook/xslt10-stylesheets
  9. Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2
  10. Source1: %{name}.Makefile
  11. Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-doc-%{version}.tar.bz2
  12. # Avoid proportional-column-width for passivetex (bug #176766).
  13. Patch1: docbook-xsl-pagesetup.patch
  14. # Hard-code the margin-left work around to expect passivetex (bug #113456).
  15. Patch2: docbook-xsl-marginleft.patch
  16. # fix of #161619 - adjustColumnWidths now available
  17. Patch3: docbook-xsl-newmethods.patch
  18. # change a few non-constant expressions to constant - needed for passivetex(#366441)
  19. Patch4: docbook-xsl-non-constant-expressions.patch
  20. # added fixes for passivetex extension and list-item-body(#161371)
  21. Patch5: docbook-xsl-list-item-body.patch
  22. #workaround missing mandir section problem (#727251)
  23. Patch6: docbook-xsl-mandir.patch
  24. #Non-recursive string.subst that doesn't kill smb.conf.5 generation
  25. Patch7: docbook-style-xsl-non-recursive-string-subst.patch
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. BuildArch: noarch
  28. Provides: docbook-xsl = %{version}
  29. Requires: docbook-dtd-xml
  30. # xml-common was using /usr/share/xml until 0.6.3-8.
  31. Requires: xml-common >= 0.6.3-8
  32. # required because of usage of /usr/bin/xmlcatalog
  33. Requires(post): libxml2 >= 2.4.8
  34. Requires(postun): libxml2 >= 2.4.8
  35. # PassiveTeX before 1.21 can't handle the newer stylesheets.
  36. Conflicts: passivetex < 1.21
  37. Vendor: Project Vine
  38. Distribution: Vine Linux
  39. %description
  40. These XSL stylesheets allow you to transform any DocBook XML document to
  41. other formats, such as HTML, FO, and XHMTL. They are highly customizable.
  42. %description -l ja
  43. この XSL スタイルシートを使って, さまざまな DocBook XML 形式のドキュメント
  44. を HTML や FO や XHTML などの他のフォーマットに変換することができます.
  45. %prep
  46. %setup -c -T -n docbook-xsl-%{version}
  47. tar jxf %{SOURCE0}
  48. mv docbook-xsl-nons-%{version}/* .
  49. pushd ..
  50. tar jxf %{SOURCE2}
  51. popd
  52. %patch1 -p1 -b .pagesetup
  53. %patch2 -p1 -b .marginleft
  54. %patch3 -p1 -b .newmethods
  55. %patch4 -p1 -b .nonconstant
  56. %patch5 -p1 -b .listitembody
  57. %patch6 -p1 -b .mandir
  58. %patch7 -p2 -b .non-recursive-subst
  59. cp %{SOURCE1} Makefile
  60. # fix of non UTF-8 files rpmlint warnings
  61. for fhtml in $(find ./doc -name '*.html' -type f)
  62. do
  63. iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp
  64. mv -f "$fhtml".tmp "$fhtml"
  65. sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml"
  66. done
  67. for f in $(find -name "*'*")
  68. do
  69. mv -v "$f" $(echo "$f" | tr -d "'")
  70. done
  71. %build
  72. %install
  73. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  74. DESTDIR=$RPM_BUILD_ROOT
  75. make install BINDIR=$DESTDIR%{_bindir} DESTDIR=$DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
  76. cp -a VERSION.xsl $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
  77. ln -s xsl-stylesheets-%{version} \
  78. $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets
  79. # Don't ship the extensions (bug #177256).
  80. rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/*
  81. %clean
  82. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  83. %post
  84. CATALOG=%{_sysconfdir}/xml/catalog
  85. %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  86. "http://cdn.docbook.org/release/xsl-nons/%{version}" \
  87. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  88. %{_bindir}/xmlcatalog --noout --add "rewriteURI" \
  89. "http://cdn.docbook.org/release/xsl-nons/%{version}" \
  90. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  91. %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  92. "http://cdn.docbook.org/release/xsl-nons/current/" \
  93. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  94. %{_bindir}/xmlcatalog --noout --add "rewriteURI" \
  95. "http://cdn.docbook.org/release/xsl-nons/current/" \
  96. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  97. #keep the old one sourceforge URIs at least temporarily
  98. %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  99. "http://docbook.sourceforge.net/release/xsl/current" \
  100. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  101. %{_bindir}/xmlcatalog --noout --add "rewriteURI" \
  102. "http://docbook.sourceforge.net/release/xsl/current" \
  103. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  104. %postun
  105. # remove entries only on removal of package
  106. if [ "$1" = 0 ]; then
  107. CATALOG=%{_sysconfdir}/xml/catalog
  108. %{_bindir}/xmlcatalog --noout --del \
  109. "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
  110. fi
  111. %files
  112. %defattr (-,root,root)
  113. %doc BUGS README TODO doc
  114. %{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
  115. %{_datadir}/sgml/docbook/xsl-stylesheets
  116. %changelog
  117. * Thu Mar 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.79.2-1
  118. - new upstream release.
  119. - updated Patch1 and 6.
  120. - imported Patch7 from rawhide.
  121. * Sun Nov 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.78.1-1
  122. - new upstream release
  123. - update Patch2 from fedora
  124. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.77.1-2
  125. - new upstream release
  126. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.77.1-1
  127. - new upstream release
  128. - add Patch6 (docbook-xsl-mandir.patch) from fedora
  129. - update Source1 (%{name}.Makefile)
  130. - update following patches from fedora
  131. - Patch1 (docbook-xsl-pagesetup.patch)
  132. - Patch2 (docbook-xsl-marginleft.patch)
  133. - Patch3 (docbook-xsl-newmethods.patch)
  134. - update spec file based on fedora package
  135. * Tue Jun 5 2012 Ondrej Vasik <ovasik@redhat.com> 1.77.1-2
  136. - ship VERSION.xsl file (#829014)
  137. * Tue Jun 5 2012 Ondrej Vasik <ovasik@redhat.com> 1.77.1-1
  138. - new stable upstream release 1.77.1
  139. - defuzz patches
  140. * Tue Sep 6 2011 Ondrej Vasik <ovasik@redhat.com> 1.76.1-4
  141. - revert previous change, workaround the mandir links issue
  142. in buildroot (#727251)
  143. * Mon Aug 29 2011 Ondrej Vasik <ovasik@redhat.com> 1.76.1-3
  144. - make man.output.in.separate.dir "on" by default (#727251)
  145. * Tue Nov 02 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.1-1
  146. - new upstream release 1.76.1
  147. * Mon Sep 06 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.0-1
  148. - new upstream release 1.76.0
  149. * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.76.1-1
  150. - new upstream release
  151. - add Vendor and Distribution tags
  152. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.75.3-6
  153. - updated based on FC 1.75.3-5
  154. * Fri Dec 18 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.3-5
  155. - comment patches purpose
  156. - License Copyright only
  157. * Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.0-1
  158. - New upstream release 1.75.0
  159. - update marginleft patch
  160. * Mon Feb 23 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.2-2
  161. - updated Makefile: do ship .svg images(#486849), xsl
  162. stylesheets for website, xhtml-1_1, docbook -> epub
  163. convertor
  164. * Wed Feb 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-7
  165. - fix broken varlistentry (#479683)
  166. * Mon Feb 02 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-6
  167. - fix improper localization for rtl languages, thanks
  168. Muayyad Alsadi(#475077)
  169. * Wed Jan 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-5
  170. - fix xsl stylesheets for rtl languages(#475077)
  171. * Fri Dec 12 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-4
  172. - Author_Group "<orgname>" merged between "<surname>"
  173. and "<surname>" (#473019)
  174. * Wed Aug 06 2008 Kamil Dudka <kdudka@redhat.com> 1.74.0-3
  175. - Rediffed all patches to work with patch --fuzz=0
  176. * Wed Aug 06 2008 Kamil Dudka <kdudka@redhat.com> 1.74.0-2
  177. - Tiny changes in docbook-xsl-newmethods.patch to work with xalan
  178. (#452867)
  179. * Fri Dec 14 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-9
  180. - added fixes for passivetex extension and list-item-body
  181. (#161371)
  182. * Mon Dec 03 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-6
  183. - fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's
  184. documentation for nonpassivetex processing(#307001)
  185. * Tue Nov 27 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-5
  186. - convert all html files in doc to UTF-8 in prep
  187. (latest rpmlint gives warnings)
  188. - no longer using release in style-xsl dir(#389231)
  189. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.73.2-5vl5
  190. - applied new versioning policy, spec in utf-8
  191. * Fri Jan 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.73.2-5vl1
  192. - updated to 1.73.2 based on Fedora development
  193. * Tue Dec 11 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-4
  194. - remove entries from xmlcatalog only on removal of package
  195. (required because of the last change with droping release
  196. -caused drop of catalog entries during update)
  197. * Wed Dec 05 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-3
  198. - change a few non-constant expressions to constant that
  199. could now be handled by passivetex(#366441)
  200. - fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's
  201. documentation for nonpassivetex processing(#307001)
  202. (use passivetex.extensions = 1 option in param.xsl for
  203. processing with passivetex)
  204. * Fri Sep 7 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-2
  205. - Added PreReq of libxml2(#253962)
  206. * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.72.0-3vl1
  207. - updated to 1.72.0 based on Fedora development
  208. * Mon Jun 18 2007 Ondrej Vasik <ovasik@redhat.com> 1.72.0-3
  209. - patch fixing #161619 taken from upstream
  210. * Tue Jan 23 2007 Tim Waugh <twaugh@redhat.com> 1.72.0-1
  211. - 1.72.0.
  212. * Fri Jan 19 2007 Tomas Mraz <tmraz@redhat.com> 1.71.1-2
  213. - Add new wordml and especially highlighting (which is referenced
  214. from html) subdirs to Makefile.
  215. * Tue Jan 24 2006 Tim Waugh <twaugh@redhat.com> 1.69.1-5
  216. - Don't ship docsrc/* (bug #177256).
  217. - Don't ship the extensions (bug #177256).
  218. * Sat Oct 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.69.1-1vl1
  219. - updated to 1.69.1 based on Fedora development
  220. * Sun Dec 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.67.2-2vl1
  221. - updated to 1.67.2 based on Fedora development
  222. * Wed Dec 8 2004 Tim Waugh <twaugh@redhat.com> 1.67.2-2
  223. - Prevent expressions in passivetex output from index.xsl (bug #142229).
  224. * Thu Dec 2 2004 Tim Waugh <twaugh@redhat.com> 1.67.2-1
  225. - No longer need nbsp or listblock patches.
  226. * Tue Jan 27 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.64.1-2vl2
  227. - patch from Fedora 1.64.1-6
  228. * Tue Jan 20 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-6
  229. - Fix last margin-left fix (bug #113456).
  230. - Reduce instances of itemized/ordered lists having misalignments.
  231. * Sun Jan 18 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-5
  232. - And another (bug #113456).
  233. * Thu Jan 15 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-4
  234. - Fixed another instance of bug #113456 in lists layout.
  235. * Wed Jan 14 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-3
  236. - Hard-code the margin-left work around to expect passivetex (bug #113456).
  237. * Mon Jan 5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.64.1-2vl1
  238. - based on Fedora 1.64.1-2
  239. - fixed Japanese summary
  240. * Sat May 24 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.61.1-1vl1
  241. - based on Redhat Rawhide 1.61.1-1
  242. - add Japanese summary and description
  243. * Tue Feb 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.60.1-0vl1
  244. - upstream release
  245. * Tue Nov 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.57.0-2vl1
  246. - based on Redhat Rawhide 1.57.0-2
  247. * Sat Oct 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.57.0-0vl1
  248. - 1.57.0
  249. * Tue Sep 24 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.55.0-0vl3
  250. - Rebuilded for Vine Linux (add PreReq: docbook-dtd412-xml)
  251. - based on rawhide 1.50.0 and source updated 1.55.0
  252. - use better macros
  253. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  254. - automated rebuild
  255. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  256. - automated rebuild
  257. * Wed May 1 2002 Tim Waugh <twaugh@redhat.com> 1.50.0-1
  258. - 1.50.0.
  259. * Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.49-1
  260. - 1.49.
  261. - Rebuild in new environment.
  262. * Fri Feb 1 2002 Tim Waugh <twaugh@redhat.com> 1.48-4
  263. - Put URIs instead of pathnames in the XML catalog.
  264. * Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 1.48-3
  265. - Back to /usr/share/sgml.
  266. * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.48-2
  267. - automated rebuild
  268. * Mon Jan 7 2002 Tim Waugh <twaugh@redhat.com> 1.48-1
  269. - 1.48.
  270. * Sat Dec 8 2001 Tim Waugh <twaugh@redhat.com> 1.47-2
  271. - Conflict with PassiveTeX before 1.11.
  272. * Tue Oct 16 2001 Tim Waugh <twaugh@redhat.com> 1.47-1
  273. - 1.47-experimental.
  274. * Tue Oct 9 2001 Tim Waugh <twaugh@redhat.com> 1.45-2
  275. - Fix unversioned symlink.
  276. * Mon Oct 8 2001 Tim Waugh <twaugh@redhat.com> 1.45-1
  277. - XML Catalog entries.
  278. - Move files to /usr/share/xml.
  279. * Mon Oct 1 2001 Tim Waugh <twaugh@redhat.com> 1.45-0.1
  280. - 1.45.
  281. - Built for Red Hat Linux.
  282. * Tue Jun 26 2001 Chris Runge <crunge@pobox.com>
  283. - 1.40
  284. * Sat Jun 09 2001 Chris Runge <crunge@pobox.com>
  285. - added extensions and additional doc
  286. - bin added to doc; the Perl files are for Win32 Perl and so need some
  287. conversion first
  288. * Fri Jun 08 2001 Chris Runge <crunge@pobox.com>
  289. - Initial RPM (based on docbook-style-dsssl RPM)
  290. - note: no catalog right now (I don't know how to do it; and not sure why
  291. it is necessary)