docbook-style-xsl-vl.spec 12 KB

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