source: projects/specs/trunk/s/sgml-common/sgml-common-vl.spec @ 12371

Revision 12371, 11.4 KB checked in by tomop, 4 years ago (diff)

updated 11 packages

dbus-glib-0.110-1

dstat-0.7.4-1

firefox-68.7.0-1

iso-codes-4.4-1

kbd-2.2.0-1

libdb-5.3.28-12

libsmbios-2.4.3-1

par2cmdline-0.8.1-1

sgml-common-0.6.3-42

smem-1.5-1

thunderbird-68.7.0-1

Line 
1%global xmlxsdver 2009/01
2
3Summary:        Common SGML catalog and DTD files.
4Summary(ja):    共用 SGML カタログ及び DTD ファイル集
5Name:           sgml-common
6Version:        0.6.3
7Release:        42%{?_dist_release}
8Group:          Applications/Text
9Vendor:         Project Vine
10Distribution:   Vine Linux
11BuildArch:      noarch
12BuildRoot:      %{_tmppath}/%{name}-%{version}-root
13
14License:        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.
18URL:            http://www.w3.org/2003/entities/
19Source0:        ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz
20# From openjade:
21Source1:        xml.dcl
22Source2:        xml.soc
23Source3:        html.dcl
24Source4:        html.soc
25Source5:        http://www.w3.org/%{xmlxsdver}/xml.xsd
26Source6:        http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
27Source7:        http://www.w3.org/2001/XMLSchema.dtd
28Source8:        http://www.w3.org/2001/datatypes.dtd
29Source9:        sgmlwhich.1
30Source10:       sgml.conf.5
31Patch0:         sgml-common-umask.patch
32Patch1:         sgml-common-xmldir.patch
33Patch2:         sgml-common-quotes.patch
34
35BuildRequires:  libxml2 >= 2.4.8
36BuildRequires:  automake
37Requires:       /bin/basename
38
39%description
40The sgml-common package contains a collection of entities and DTDs
41that are useful for processing SGML, but that don't need to be
42included in multiple packages.  Sgml-common also includes an
43up-to-date Open Catalog file.
44
45%package -n xml-common
46Summary: Common XML catalog and DTD files.
47Summary(ja): 共用 XML カタログ及び DTD ファイル集
48License: GPL+
49Group: Applications/Text
50Requires(pre): %{_bindir}/xmlcatalog
51
52%description -n xml-common
53The xml-common package contains a collection of entities and DTDs
54that are useful for processing XML, but that don't need to be
55included 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
64automakedir=`ls -1d /usr/share/automake* | head -n +1`
65for file in COPYING INSTALL install-sh missing mkinstalldirs; do
66   rm $file
67   cp -p $automakedir/$file .
68done
69
70%build
71%configure
72
73%install
74[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
75make install DESTDIR=$RPM_BUILD_ROOT htmldir='%{_datadir}/doc' INSTALL='install -p'
76
77mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xml
78mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook
79mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
80# Touch SGML catalog
81touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog
82# Create an empty XML catalog.
83XMLCATALOG=$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
84%{_bindir}/xmlcatalog --noout --create $XMLCATALOG
85# ...and add xml.xsd in it
86for 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
96done
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
114for 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
118done
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
126ln -sf %{_sysconfdir}/sgml/docbook/xmlcatalog\
127        $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xmlcatalog
128
129rm -f $RPM_BUILD_ROOT%{_datadir}/sgml/xml.dcl
130install -p -m0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
131        $RPM_BUILD_ROOT%{_datadir}/sgml
132rm -rf $RPM_BUILD_ROOT%{_datadir}/xml/*
133install -p -m0644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \
134        $RPM_BUILD_ROOT%{_datadir}/xml
135mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
136mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5
137install -p -m0644 %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man1
138install -p -m0644 %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man5
139
140# remove installed doc file and prepare installation with %%doc
141rm -f $RPM_BUILD_ROOT%{_datadir}/doc/*.html
142rm -rf __dist_doc/html/
143mkdir -p __dist_doc/html/
144cp -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
150if [ $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
167fi
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.
Note: See TracBrowser for help on using the repository browser.