sgml-common-vl.spec 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. Summary: Common SGML catalog and DTD files.
  2. Name: sgml-common
  3. Version: 0.6.3
  4. Release: 33%{?_dist_release}
  5. Group: Applications/Text
  6. License: GPL+
  7. URL: http://www.iso.ch/cate/3524030.html
  8. BuildArch: noarch
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: libxml2 >= 2.4.8
  11. BuildRequires: automake14
  12. Requires: /bin/basename
  13. Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz
  14. #Source1: sgml-common-CHANGES
  15. #Source2: sgml-common-automake.tar.gz
  16. # From openjade:
  17. Source1: xml.dcl
  18. Source2: xml.soc
  19. Source3: html.dcl
  20. Source4: html.soc
  21. Patch0: sgml-common-umask.patch
  22. Patch1: sgml-common-xmldir.patch
  23. Patch2: sgml-common-quotes.patch
  24. Patch3: sgml-common-automake.patch
  25. Patch4: sgml-common-0.6.3-docdir.patch
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. %description
  29. The sgml-common package contains a collection of entities and DTDs
  30. that are useful for processing SGML, but that don't need to be
  31. included in multiple packages. Sgml-common also includes an
  32. up-to-date Open Catalog file.
  33. %package -n xml-common
  34. Group: Applications/Text
  35. Summary: Common XML catalog and DTD files.
  36. License: GPL+
  37. %description -n xml-common
  38. The xml-common package contains a collection of entities and DTDs
  39. that are useful for processing XML, but that don't need to be
  40. included in multiple packages.
  41. %prep
  42. %setup -q
  43. %patch0 -p1 -b .umask
  44. %patch1 -p1 -b .xmldir
  45. %patch2 -p1 -b .quotes
  46. #rm install-sh missing mkinstalldirs
  47. #tar zxf %{SOURCE2}
  48. #%patch3 -p1 -b .automake
  49. #%patch4 -p1 -b .docdir
  50. #touch configure
  51. #find -name '*.in' | xargs touch
  52. #touch aclocal.m4
  53. # replace bogus links with files
  54. for file in COPYING INSTALL install-sh missing mkinstalldirs; do
  55. rm $file
  56. cp -p /usr/share/automake-1.4/$file .
  57. done
  58. %build
  59. %configure
  60. %install
  61. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT htmldir='%{_datadir}/doc' INSTALL='install -p'
  63. #cp %{SOURCE1} CHANGES
  64. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xml
  65. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook
  66. mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
  67. # Touch SGML catalog
  68. touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog
  69. # Create an empty XML catalog.
  70. XMLCATALOG=$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
  71. %{_bindir}/xmlcatalog --noout --create $XMLCATALOG
  72. # Now put the common DocBook entries in it
  73. %{_bindir}/xmlcatalog --noout --add "delegatePublic" \
  74. "-//OASIS//ENTITIES DocBook XML" \
  75. "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
  76. %{_bindir}/xmlcatalog --noout --add "delegatePublic" \
  77. "-//OASIS//DTD DocBook XML" \
  78. "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
  79. %{_bindir}/xmlcatalog --noout --add "delegatePublic" \
  80. "ISO 8879:1986" \
  81. "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
  82. %{_bindir}/xmlcatalog --noout --add "delegateSystem" \
  83. "http://www.oasis-open.org/docbook/" \
  84. "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
  85. %{_bindir}/xmlcatalog --noout --add "delegateURI" \
  86. "http://www.oasis-open.org/docbook/" \
  87. "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
  88. # Also create the common DocBook catalog
  89. %{_bindir}/xmlcatalog --noout --create \
  90. $RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook/xmlcatalog
  91. ln -sf %{_sysconfdir}/sgml/docbook/xmlcatalog\
  92. $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xmlcatalog
  93. rm -f $RPM_BUILD_ROOT%{_datadir}/sgml/xml.dcl
  94. install -p -m0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
  95. $RPM_BUILD_ROOT%{_datadir}/sgml
  96. rm -rf $RPM_BUILD_ROOT%{_datadir}/xml/*
  97. # remove installed doc file and prepare installation with %%doc
  98. rm -f $RPM_BUILD_ROOT%{_datadir}/doc/*.html
  99. rm -rf __dist_doc/html/
  100. mkdir -p __dist_doc/html/
  101. cp -p doc/HTML/*.html __dist_doc/html/
  102. %clean
  103. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  104. %files
  105. %defattr (-,root,root)
  106. %doc __dist_doc/html/ AUTHORS NEWS ChangeLog README
  107. %dir %{_sysconfdir}/sgml
  108. %config(noreplace) %{_sysconfdir}/sgml/sgml.conf
  109. %ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/sgml/catalog
  110. %dir %{_datadir}/sgml
  111. %dir %{_datadir}/sgml/sgml-iso-entities-8879.1986
  112. %{_datadir}/sgml/sgml-iso-entities-8879.1986/*
  113. %{_datadir}/sgml/xml.dcl
  114. %{_datadir}/sgml/xml.soc
  115. %{_datadir}/sgml/html.dcl
  116. %{_datadir}/sgml/html.soc
  117. %{_bindir}/sgmlwhich
  118. %{_bindir}/install-catalog
  119. %{_mandir}/man8/install-catalog.8*
  120. %files -n xml-common
  121. %defattr (-,root,root)
  122. %dir %{_sysconfdir}/xml
  123. %dir %{_sysconfdir}/sgml/docbook
  124. %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog
  125. %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook/xmlcatalog
  126. %dir %{_datadir}/sgml
  127. %dir %{_datadir}/sgml/docbook
  128. %{_datadir}/sgml/docbook/xmlcatalog
  129. %dir %{_datadir}/xml
  130. #post
  131. #if [ -f %{_libdir}/sgml/CATALOG ]; then
  132. # rm %{_libdir}/sgml/CATALOG
  133. #fi
  134. #
  135. #{_bindir}/install-catalog --add %{_sysconfdir}/sgml/sgml-iso-entities-8879.1986 %{_datadir}/sgml/sgml-iso-entities-8879.1986/catalog >/dev/null
  136. #preun
  137. #if [ "$1" = "0" ]; then
  138. # %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/sgml-iso-entities-8879.1986 %{_datadir}/sgml/sgml-iso-entities-8879.1986/catalog >/dev/null
  139. #fi
  140. %changelog
  141. * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-33
  142. - updated based on FC 0.6.3-32
  143. * Tue Jul 01 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-25
  144. - mark xmlcatalog config(noreplace) to prevent overwriting
  145. of the content, move it to sysconfdir and make symlink for
  146. it to silence rpmlint
  147. * Mon Jun 30 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-24
  148. - mark catalog files as (not md5 size mtime) for verify to
  149. prevent info about changed files
  150. * Thu Nov 15 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-22
  151. - Merge Review(226415)
  152. - changed: License Tag, using RPM macros instead of hardcoded
  153. dirs, summary ended with dot, added URL, removed CHANGES
  154. file as obsolete, preserved timestamps and some other cosmetic
  155. changes
  156. - no longer shipping old automake tarball, fixed issue with man8_DATA,
  157. BuildRequire:Automake,Autoconf again(see MergeReview discussion)
  158. * Sun Jun 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-22
  159. - updated Requires: coreutils instead of sh-utils fileutils textutils
  160. - applied new versioning policy
  161. * Sun Jul 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-21vl1
  162. - s/Copyright/License/
  163. - rebuilt based on Fedora development package 0.6.3-21
  164. * Mon May 28 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-21
  165. - Fixed broken URL (changed to XML entity declarations) (bug #237726)
  166. * Tue May 15 2007 Tim Waugh <twaugh@redhat.com> 0.6.3-20
  167. - Added dist tag.
  168. - Fixed summary.
  169. - Removed build dependency on autoconf/automake.
  170. * Tue Oct 24 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-19
  171. - Removed stale URL (bug #210848).
  172. * Tue Jun 3 2003 Jun Nishii <jun@vinelinux.org> 0.6.3-14vl2
  173. - added install-catalog process in post/preun scripts
  174. * Sat Apr 12 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.6.3-14vl1
  175. - sync Rawhide 0.6.3-14
  176. * Thu Jan 31 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.6.3-8vl1
  177. - sync Rawhide 0.6.3-8
  178. - added BuildRequires: libxml2 >= 2.4.8
  179. - Use (and handle) catalog files with quotes in install-catalog.
  180. (sgml-common-quotes.patch)
  181. - added sgml-common-xmldir.patch
  182. - use rpmmacros
  183. - obsoleted sgml-common-oldsyntax.patch ( upstream merged )
  184. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.5-7vl1
  185. - Rebuild for Vine.
  186. - Added a script to remove old catalog file.
  187. * Wed May 23 2001 Tim Waugh <twaugh@redhat.com> 0.5-7
  188. - Remove execute bit from data files.
  189. * Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.5-6
  190. - install-catalog needs to make sure that it creates world-readable files
  191. (bug #41552).
  192. * Wed Mar 14 2001 Tim Powers <timp@redhat.com> 0.5-5
  193. - fixed license
  194. * Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
  195. - Make install-catalog quieter during normal operation.
  196. * Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
  197. - Require textutils, fileutils, grep (bug #24719).
  198. * Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com>
  199. - Require sh-utils.
  200. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
  201. - Don't play so many macro games.
  202. - Fix typo in install-catalog patch.
  203. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  204. - Change group.
  205. - Install by hand (man/en/...). Use %%{_mandir}.
  206. - Use %%{_tmppath}.
  207. - Make install-catalog fail silently if given the old syntax.
  208. - Add CHANGES file.
  209. - Change Copyright: to License:.
  210. - Remove Packager: line.
  211. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  212. - Based on Eric Bischoff's new-trials packages.