docbook-style-dsssl-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Summary: Norman Walsh's modular stylesheets for DocBook.
  2. Summary(ja): Norman Walsh 作の DocBook 用スタイルシート
  3. Name: docbook-style-dsssl
  4. Version: 1.79
  5. Release: 13%{?_dist_release}
  6. Group: Applications/Text
  7. License: Copyright only
  8. URL: http://docbook.sourceforge.net/
  9. Source0: http://prdownloads.sourceforge.net/docbook/docbook-dsssl-%{version}.tar.gz
  10. Source1: %{name}.Makefile
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. %define openjadever 1.3.2
  14. Requires: openjade = %{openjadever}
  15. Requires: docbook-dtds
  16. Requires: sgml-common
  17. Requires(post): sgml-common
  18. Requires(preun): sgml-common
  19. Conflicts: docbook-utils < 0.6.9
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. These DSSSL stylesheets allow to convert any DocBook document to another
  24. printed (for example, RTF or PostScript) or online (for example, HTML) format.
  25. They are highly customizable.
  26. %prep
  27. %setup -q -n docbook-dsssl-%{version}
  28. cp %{SOURCE1} Makefile
  29. %build
  30. %install
  31. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  32. DESTDIR=$RPM_BUILD_ROOT
  33. make install BINDIR=$DESTDIR%{_bindir} DESTDIR=$DESTDIR%{_datadir}/sgml/docbook/dsssl-stylesheets-%{version} MANDIR=$DESTDIR%{_mandir}
  34. cd ..
  35. ln -s dsssl-stylesheets-%{version} $DESTDIR%{_datadir}/sgml/docbook/dsssl-stylesheets
  36. %clean
  37. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  38. %post
  39. rel=$(echo /etc/sgml/sgml-docbook-3.0-*.cat)
  40. rel=${rel##*-}
  41. rel=${rel%.cat}
  42. for centralized in /etc/sgml/*-docbook-*.cat
  43. do
  44. /usr/bin/install-catalog --remove $centralized \
  45. /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog \
  46. >/dev/null 2>/dev/null
  47. done
  48. for centralized in /etc/sgml/*-docbook-*$rel.cat
  49. do
  50. /usr/bin/install-catalog --add $centralized \
  51. /usr/share/sgml/openjade-%{openjadever}/catalog \
  52. > /dev/null 2>/dev/null
  53. /usr/bin/install-catalog --add $centralized \
  54. /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog \
  55. > /dev/null 2>/dev/null
  56. done
  57. %preun
  58. if [ "$1" = "0" ]; then
  59. for centralized in /etc/sgml/*-docbook-*.cat
  60. do /usr/bin/install-catalog --remove $centralized /usr/share/sgml/openjade-%{openjadever}/catalog > /dev/null 2>/dev/null
  61. /usr/bin/install-catalog --remove $centralized /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
  62. done
  63. fi
  64. exit 0
  65. %files
  66. %defattr (-,root,root)
  67. %doc BUGS README RELEASE-NOTES.txt ChangeLog WhatsNew
  68. %{_bindir}/collateindex.pl
  69. %{_datadir}/sgml/docbook/dsssl-stylesheets-%{version}
  70. %{_datadir}/sgml/docbook/dsssl-stylesheets
  71. %{_mandir}/man1/collateindex.pl.1*
  72. %changelog
  73. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.79-13
  74. - rebuild with VineSeed environment
  75. * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.79-12
  76. - add Vendor and Distribution tags
  77. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.79-11
  78. - based on FC 1.79-10
  79. * Tue Feb 02 2010 Ondrej Vasik <ovasik@redhat.com> - 1.79-10
  80. - fix merge review issues(#225703)
  81. * Fri Dec 18 2009 Ondrej Vasik <ovasik@redhat.com> - 1.79-9
  82. - License Copyright only
  83. * Fri Aug 28 2009 Ondrej Vasik <ovasik@redhat.com> - 1.79-8
  84. - ship manpage for collateindex.pl
  85. - preserve attributes and timestamps in Makefile
  86. * Thu Nov 10 2005 Tim Waugh <twaugh@redhat.com> 1.79-2
  87. - Ship olink.dsl (bug #172523).
  88. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.79-1vl5
  89. - applied new versioning policy, spec in utf-8
  90. - s/Copyright/License/
  91. * Thu Jun 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.79-1vl1
  92. - new upstream release
  93. - No longer need articleinfo patch
  94. - added Japanese summary
  95. * Wed Jun 4 2003 Jun NISHII <jun@vinelinux.org> 1.78-2vl2
  96. - keep silence in preun
  97. * Sat May 3 2003 IWAI Masaharu <iwai@alib.jp> 1.78-2vl1
  98. - update %%post and %%preun script from rawhide 1.78-2
  99. - source update to 1.78
  100. - drop docbook-dsssl-1.76-seealso.patch (Patch1): upstream merged
  101. - update Makefile (Source1)
  102. - require newest openjade (version 1.3.2)
  103. * Wed Nov 27 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.77-0vl1
  104. - source update to 1.77
  105. - Don't apply patch2
  106. - require newest openjade (version 1.3.1)
  107. * Tue Sep 24 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.76-6vl1
  108. - update to 1.76 based on rawhide 1.76-6
  109. - Change URL
  110. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.64-3vl1
  111. - Rebuild for Vine.
  112. * Wed Jul 25 2001 Bill Nottingham <notting@redhat.com> 1.64-3
  113. - bump release
  114. * Wed May 9 2001 Tim Waugh <twaugh@redhat.com> 1.64-2
  115. - Make an unversioned dsssl-stylesheets symbolic link.
  116. * Wed May 2 2001 Tim Waugh <twaugh@redhat.com> 1.64-1
  117. - 1.64 (fixes #38095).
  118. - Fix up post/preun scripts so that we don't get duplicate entries with
  119. different versions on upgrade.
  120. * Sun Mar 25 2001 Tim Waugh <twaugh@redhat.com> 1.59-10
  121. - Fix up Makefile (patch from SATO Satoru).
  122. - Change postun to preun.
  123. - Make preun conditional on remove rather than upgrade.
  124. * Tue Mar 6 2001 Tim Waugh <twaugh@redhat.com>
  125. - PreReq docbook-dtd-sgml (it was a requirement before), so that the
  126. scripts work right.
  127. * Tue Feb 20 2001 Tim Waugh <twaugh@redhat.com>
  128. - Change Requires(...) to PreReq at Preston's request.
  129. - PreReq at least openjade-1.3-12, so that its catalogs get installed.
  130. * Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
  131. - Make scripts quieter.
  132. * Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
  133. - Last fix was wrong; corrected (require openjade 1.3).
  134. * Fri Jan 19 2001 Tim Waugh <twaugh@redhat.com>
  135. - Require jade not openjade (bug #24306).
  136. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
  137. - Don't play so many macro games.
  138. - Change requirement on /usr/bin/install-catalog to sgml-common.
  139. - Be sure to own dsssl-stylesheets-1.59 directory.
  140. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  141. - Change group.
  142. - openjade not jade.
  143. - %%{_tmppath}.
  144. - rm before install.
  145. - Change Copyright: to License:.
  146. - Remove Packager: line.
  147. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  148. - Based on Eric Bischoff's new-trials packages.