sgml-common-vl.spec 9.5 KB

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