docbook-style-dsssl-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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: 12%{?_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. * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.79-12
  74. - add Vendor and Distribution tags
  75. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.79-11
  76. - based on FC 1.79-10
  77. * Tue Feb 02 2010 Ondrej Vasik <ovasik@redhat.com> - 1.79-10
  78. - fix merge review issues(#225703)
  79. * Fri Dec 18 2009 Ondrej Vasik <ovasik@redhat.com> - 1.79-9
  80. - License Copyright only
  81. * Fri Aug 28 2009 Ondrej Vasik <ovasik@redhat.com> - 1.79-8
  82. - ship manpage for collateindex.pl
  83. - preserve attributes and timestamps in Makefile
  84. * Thu Nov 10 2005 Tim Waugh <twaugh@redhat.com> 1.79-2
  85. - Ship olink.dsl (bug #172523).
  86. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.79-1vl5
  87. - applied new versioning policy, spec in utf-8
  88. - s/Copyright/License/
  89. * Thu Jun 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.79-1vl1
  90. - new upstream release
  91. - No longer need articleinfo patch
  92. - added Japanese summary
  93. * Wed Jun 4 2003 Jun NISHII <jun@vinelinux.org> 1.78-2vl2
  94. - keep silence in preun
  95. * Sat May 3 2003 IWAI Masaharu <iwai@alib.jp> 1.78-2vl1
  96. - update %%post and %%preun script from rawhide 1.78-2
  97. - source update to 1.78
  98. - drop docbook-dsssl-1.76-seealso.patch (Patch1): upstream merged
  99. - update Makefile (Source1)
  100. - require newest openjade (version 1.3.2)
  101. * Wed Nov 27 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.77-0vl1
  102. - source update to 1.77
  103. - Don't apply patch2
  104. - require newest openjade (version 1.3.1)
  105. * Tue Sep 24 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.76-6vl1
  106. - update to 1.76 based on rawhide 1.76-6
  107. - Change URL
  108. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.64-3vl1
  109. - Rebuild for Vine.
  110. * Wed Jul 25 2001 Bill Nottingham <notting@redhat.com> 1.64-3
  111. - bump release
  112. * Thu May 9 2001 Tim Waugh <twaugh@redhat.com> 1.64-2
  113. - Make an unversioned dsssl-stylesheets symbolic link.
  114. * Wed May 2 2001 Tim Waugh <twaugh@redhat.com> 1.64-1
  115. - 1.64 (fixes #38095).
  116. - Fix up post/preun scripts so that we don't get duplicate entries with
  117. different versions on upgrade.
  118. * Sun Mar 25 2001 Tim Waugh <twaugh@redhat.com> 1.59-10
  119. - Fix up Makefile (patch from SATO Satoru).
  120. - Change postun to preun.
  121. - Make preun conditional on remove rather than upgrade.
  122. * Tue Mar 6 2001 Tim Waugh <twaugh@redhat.com>
  123. - PreReq docbook-dtd-sgml (it was a requirement before), so that the
  124. scripts work right.
  125. * Tue Feb 20 2001 Tim Waugh <twaugh@redhat.com>
  126. - Change Requires(...) to PreReq at Preston's request.
  127. - PreReq at least openjade-1.3-12, so that its catalogs get installed.
  128. * Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
  129. - Make scripts quieter.
  130. * Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
  131. - Last fix was wrong; corrected (require openjade 1.3).
  132. * Fri Jan 19 2001 Tim Waugh <twaugh@redhat.com>
  133. - Require jade not openjade (bug #24306).
  134. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
  135. - Don't play so many macro games.
  136. - Change requirement on /usr/bin/install-catalog to sgml-common.
  137. - Be sure to own dsssl-stylesheets-1.59 directory.
  138. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  139. - Change group.
  140. - openjade not jade.
  141. - %%{_tmppath}.
  142. - rm before install.
  143. - Change Copyright: to License:.
  144. - Remove Packager: line.
  145. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  146. - Based on Eric Bischoff's new-trials packages.