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