sgml-common-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. Summary: Common SGML catalog and DTD files.
  2. Name: sgml-common
  3. Version: 0.6.3
  4. Release: 34%{?_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 COPYING 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. %doc AUTHORS NEWS ChangeLog COPYING README
  123. %dir %{_sysconfdir}/xml
  124. %dir %{_sysconfdir}/sgml/docbook
  125. %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog
  126. %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook/xmlcatalog
  127. %dir %{_datadir}/sgml
  128. %dir %{_datadir}/sgml/docbook
  129. %{_datadir}/sgml/docbook/xmlcatalog
  130. %dir %{_datadir}/xml
  131. #post
  132. #if [ -f %{_libdir}/sgml/CATALOG ]; then
  133. # rm %{_libdir}/sgml/CATALOG
  134. #fi
  135. #
  136. #{_bindir}/install-catalog --add %{_sysconfdir}/sgml/sgml-iso-entities-8879.1986 %{_datadir}/sgml/sgml-iso-entities-8879.1986/catalog >/dev/null
  137. #preun
  138. #if [ "$1" = "0" ]; then
  139. # %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/sgml-iso-entities-8879.1986 %{_datadir}/sgml/sgml-iso-entities-8879.1986/catalog >/dev/null
  140. #fi
  141. %changelog
  142. * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 0.6.3-34
  143. - sync Fedora 0.6.3-34
  144. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-34
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  146. * Mon Jul 12 2010 Ondrej Vasik <ovasik@redhat.com> 0.6.3-33
  147. - ship COPYING file with both sgml-common and xml-common
  148. - ship documentation with xml-common
  149. * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-33
  150. - updated based on FC 0.6.3-32
  151. * Tue Jul 01 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-25
  152. - mark xmlcatalog config(noreplace) to prevent overwriting
  153. of the content, move it to sysconfdir and make symlink for
  154. it to silence rpmlint
  155. * Mon Jun 30 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-24
  156. - mark catalog files as (not md5 size mtime) for verify to
  157. prevent info about changed files
  158. * Thu Nov 15 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-22
  159. - Merge Review(226415)
  160. - changed: License Tag, using RPM macros instead of hardcoded
  161. dirs, summary ended with dot, added URL, removed CHANGES
  162. file as obsolete, preserved timestamps and some other cosmetic
  163. changes
  164. - no longer shipping old automake tarball, fixed issue with man8_DATA,
  165. BuildRequire:Automake,Autoconf again(see MergeReview discussion)
  166. * Sun Jun 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-22
  167. - updated Requires: coreutils instead of sh-utils fileutils textutils
  168. - applied new versioning policy
  169. * Sun Jul 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-21vl1
  170. - s/Copyright/License/
  171. - rebuilt based on Fedora development package 0.6.3-21
  172. * Mon May 28 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-21
  173. - Fixed broken URL (changed to XML entity declarations) (bug #237726)
  174. * Tue May 15 2007 Tim Waugh <twaugh@redhat.com> 0.6.3-20
  175. - Added dist tag.
  176. - Fixed summary.
  177. - Removed build dependency on autoconf/automake.
  178. * Tue Oct 24 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-19
  179. - Removed stale URL (bug #210848).
  180. * Tue Jun 3 2003 Jun Nishii <jun@vinelinux.org> 0.6.3-14vl2
  181. - added install-catalog process in post/preun scripts
  182. * Sat Apr 12 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.6.3-14vl1
  183. - sync Rawhide 0.6.3-14
  184. * Thu Jan 31 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.6.3-8vl1
  185. - sync Rawhide 0.6.3-8
  186. - added BuildRequires: libxml2 >= 2.4.8
  187. - Use (and handle) catalog files with quotes in install-catalog.
  188. (sgml-common-quotes.patch)
  189. - added sgml-common-xmldir.patch
  190. - use rpmmacros
  191. - obsoleted sgml-common-oldsyntax.patch ( upstream merged )
  192. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.5-7vl1
  193. - Rebuild for Vine.
  194. - Added a script to remove old catalog file.
  195. * Wed May 23 2001 Tim Waugh <twaugh@redhat.com> 0.5-7
  196. - Remove execute bit from data files.
  197. * Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.5-6
  198. - install-catalog needs to make sure that it creates world-readable files
  199. (bug #41552).
  200. * Wed Mar 14 2001 Tim Powers <timp@redhat.com> 0.5-5
  201. - fixed license
  202. * Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
  203. - Make install-catalog quieter during normal operation.
  204. * Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
  205. - Require textutils, fileutils, grep (bug #24719).
  206. * Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com>
  207. - Require sh-utils.
  208. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
  209. - Don't play so many macro games.
  210. - Fix typo in install-catalog patch.
  211. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  212. - Change group.
  213. - Install by hand (man/en/...). Use %%{_mandir}.
  214. - Use %%{_tmppath}.
  215. - Make install-catalog fail silently if given the old syntax.
  216. - Add CHANGES file.
  217. - Change Copyright: to License:.
  218. - Remove Packager: line.
  219. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  220. - Based on Eric Bischoff's new-trials packages.