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

Revision 8084, 8.9 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

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