docbook-style-dsssl-vl.spec 5.6 KB

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