9397
|
1 |
#
|
|
2 |
# spec file for package sgml-common
|
|
3 |
#
|
|
4 |
# copied from fedora core 6
|
|
5 |
#
|
16434
|
6 |
%define owner laca
|
9397
|
7 |
#
|
16429
|
8 |
|
|
9 |
%define OSR 6138:0.6.3
|
|
10 |
|
9397
|
11 |
Name: sgml-common
|
|
12 |
Version: 0.6.3
|
|
13 |
Release: 18
|
|
14 |
Group: Applications/Text
|
|
15 |
|
|
16 |
Summary: Common SGML catalog and DTD files.
|
|
17 |
|
|
18 |
License: GPL
|
|
19 |
|
|
20 |
BuildArch: noarch
|
9605
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
9397
|
22 |
Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz
|
|
23 |
# From openjade:
|
|
24 |
Source3: xml.dcl
|
|
25 |
Source4: xml.soc
|
|
26 |
Source5: html.dcl
|
|
27 |
Source6: html.soc
|
|
28 |
# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
|
|
29 |
Patch0: sgml-common-01-umask.diff
|
|
30 |
# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
|
|
31 |
Patch1: sgml-common-02-xmldir.diff
|
|
32 |
# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
|
|
33 |
Patch2: sgml-common-03-quotes.diff
|
|
34 |
# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
|
|
35 |
Patch3: sgml-common-04-automake.diff
|
|
36 |
# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
|
|
37 |
Patch4: sgml-common-05-docdir.diff
|
15260
|
38 |
# owner:mattman type:branding date:2009-02-27
|
|
39 |
Patch5: sgml-common-06-manpage.diff
|
9397
|
40 |
|
|
41 |
Requires: sh-utils fileutils textutils grep
|
|
42 |
BuildRequires: libxml2 >= 2.4.8-2
|
|
43 |
BuildRequires: automake
|
|
44 |
BuildRequires: autoconf
|
|
45 |
|
|
46 |
%description
|
|
47 |
The sgml-common package contains a collection of entities and DTDs
|
|
48 |
that are useful for processing SGML, but that don't need to be
|
|
49 |
included in multiple packages. Sgml-common also includes an
|
|
50 |
up-to-date Open Catalog file.
|
|
51 |
|
|
52 |
%package -n xml-common
|
|
53 |
Group: Applications/Text
|
|
54 |
Summary: Common XML catalog and DTD files.
|
|
55 |
License: GPL
|
|
56 |
URL: http://www.iso.ch/cate/3524030.html
|
|
57 |
Requires: sh-utils fileutils textutils grep
|
|
58 |
|
|
59 |
%description -n xml-common
|
|
60 |
The xml-common package contains a collection of entities and DTDs
|
|
61 |
that are useful for processing XML, but that don't need to be
|
|
62 |
included in multiple packages.
|
|
63 |
|
|
64 |
|
|
65 |
%prep
|
|
66 |
%setup -q
|
|
67 |
%patch0 -p1 -b .umask
|
|
68 |
%patch1 -p1 -b .xmldir
|
|
69 |
%patch2 -p1 -b .quotes
|
|
70 |
%patch3 -p1 -b .automake
|
|
71 |
%patch4 -p1 -b .docdir
|
15260
|
72 |
%patch5 -p1 -b .docdir
|
9397
|
73 |
|
|
74 |
%build
|
9650
|
75 |
aclocal $ACLOCAL_FLAGS
|
|
76 |
autoconf
|
9397
|
77 |
automake --add-missing --copy
|
|
78 |
|
|
79 |
./configure \
|
|
80 |
--prefix=%{_prefix} \
|
9605
|
81 |
--sysconfdir=%{_sysconfdir} \
|
9397
|
82 |
--with-docdir=%{_docdir}
|
|
83 |
|
|
84 |
|
|
85 |
%install
|
|
86 |
DESTDIR=$RPM_BUILD_ROOT
|
|
87 |
rm -rf $DESTDIR
|
9605
|
88 |
make install DESTDIR=$RPM_BUILD_ROOT
|
9397
|
89 |
mkdir -p $RPM_BUILD_ROOT/etc/xml
|
|
90 |
mkdir -p $RPM_BUILD_ROOT/usr/share/sgml/docbook
|
|
91 |
# Create an empty XML catalog.
|
|
92 |
XMLCATALOG=$RPM_BUILD_ROOT/etc/xml/catalog
|
|
93 |
/usr/bin/xmlcatalog --noout --create $XMLCATALOG
|
|
94 |
# Now put the common DocBook entries in it
|
|
95 |
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
|
|
96 |
"-//OASIS//ENTITIES DocBook XML" \
|
|
97 |
"file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
|
|
98 |
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
|
|
99 |
"-//OASIS//DTD DocBook XML" \
|
|
100 |
"file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
|
|
101 |
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
|
|
102 |
"ISO 8879:1986" \
|
|
103 |
"file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
|
|
104 |
/usr/bin/xmlcatalog --noout --add "delegateSystem" \
|
|
105 |
"http://www.oasis-open.org/docbook/" \
|
|
106 |
"file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
|
|
107 |
/usr/bin/xmlcatalog --noout --add "delegateURI" \
|
|
108 |
"http://www.oasis-open.org/docbook/" \
|
|
109 |
"file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
|
|
110 |
# Also create the common DocBook catalog
|
|
111 |
/usr/bin/xmlcatalog --noout --create \
|
|
112 |
$RPM_BUILD_ROOT/usr/share/sgml/docbook/xmlcatalog
|
|
113 |
|
9605
|
114 |
rm -f $RPM_BUILD_ROOT/usr/share/sgml/xml.dcl
|
9397
|
115 |
install -m0644 %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
|
9605
|
116 |
$RPM_BUILD_ROOT/usr/share/sgml
|
|
117 |
rm -rf $RPM_BUILD_ROOT/usr/share/xml/*
|
9397
|
118 |
|
|
119 |
|
|
120 |
%clean
|
|
121 |
DESTDIR=$RPM_BUILD_ROOT
|
|
122 |
rm -rf $DESTDIR
|
|
123 |
|
|
124 |
|
|
125 |
%files
|
|
126 |
%defattr (-,root,root)
|
|
127 |
%dir /etc/sgml
|
|
128 |
%config(noreplace) /etc/sgml/sgml.conf
|
|
129 |
%dir /usr/share/sgml
|
|
130 |
%dir /usr/share/sgml/sgml-iso-entities-8879.1986
|
|
131 |
/usr/share/sgml/sgml-iso-entities-8879.1986/*
|
|
132 |
/usr/share/sgml/xml.dcl
|
|
133 |
/usr/share/sgml/xml.soc
|
|
134 |
/usr/share/sgml/html.dcl
|
|
135 |
/usr/share/sgml/html.soc
|
|
136 |
/usr/bin/sgmlwhich
|
|
137 |
/usr/bin/install-catalog
|
|
138 |
%{_mandir}/*/*
|
|
139 |
%{_docdir}/*
|
|
140 |
|
|
141 |
%files -n xml-common
|
|
142 |
%defattr (-,root,root)
|
|
143 |
%dir /etc/xml
|
|
144 |
%config(noreplace) /etc/xml/catalog
|
|
145 |
%dir /usr/share/sgml
|
|
146 |
%dir /usr/share/sgml/docbook
|
|
147 |
%config(noreplace) /usr/share/sgml/docbook/xmlcatalog
|
|
148 |
%dir /usr/share/xml
|
|
149 |
|
|
150 |
%changelog
|
15260
|
151 |
* Fri Feb 27 2009 - [email protected]
|
|
152 |
- Add manpage patch for Attributes and ARC Comment
|
9650
|
153 |
* Sun Apr 1 2007 - [email protected]
|
|
154 |
- add missing autoconf call
|
9605
|
155 |
* Wed Mar 21 2007 - [email protected]
|
|
156 |
- add --sysconfdir configure option and use $RPM_BUILD_ROOT instead
|
|
157 |
of %buildroot.
|
9397
|
158 |
* Mon Feb 12 2007 - [email protected]
|
|
159 |
- rename patch to match JDS naming convention
|
|
160 |
* Mon Jun 12 2006 Tim Waugh <[email protected]> 0.6.3-18
|
|
161 |
- Build requires automake and autoconf (bug #194709).
|
|
162 |
* Fri Dec 09 2005 Jesse Keating <[email protected]>
|
|
163 |
- rebuilt
|
|
164 |
* Wed Sep 22 2004 Than Ngo <[email protected]> 0.6.3-17
|
|
165 |
- rebuilt
|
|
166 |
* Fri Feb 13 2004 Elliot Lee <[email protected]>
|
|
167 |
- rebuilt
|
|
168 |
* Mon Dec 8 2003 Tim Waugh <[email protected]> 0.6.3-15
|
|
169 |
- Patch from Ville Skyttä <ville.skytta at iki.fi> (bug #111625):
|
|
170 |
- Include /usr/share/xml in xml-common.
|
|
171 |
- Own /usr/share/sgml and /usr/share/xml.
|
|
172 |
* Wed Jan 22 2003 Tim Powers <[email protected]>
|
|
173 |
- rebuilt
|
|
174 |
* Wed Oct 23 2002 Tim Waugh <[email protected]> 0.6.3-13
|
|
175 |
- Ship the installed documentation.
|
|
176 |
- Don't install files not packaged.
|
|
177 |
* Fri Jun 21 2002 Tim Powers <[email protected]>
|
|
178 |
- automated rebuild
|
|
179 |
* Thu May 23 2002 Tim Powers <[email protected]>
|
|
180 |
- automated rebuild
|
|
181 |
* Wed Apr 24 2002 Tim Waugh <[email protected]> 0.6.3-10
|
|
182 |
- Ship {xml,html}.{dcl,soc} (bug #63500, bug #62980).
|
|
183 |
- Work around broken tarball packaging.
|
|
184 |
* Thu Feb 21 2002 Tim Waugh <[email protected]> 0.6.3-9
|
|
185 |
- Rebuild in new environment.
|
|
186 |
* Thu Jan 17 2002 Tim Waugh <[email protected]> 0.6.3-8
|
|
187 |
- Back to /usr/share/sgml. Now install docbook-dtds.
|
|
188 |
- Use a real install-sh, not the symlink shipped in the tarball.
|
|
189 |
* Wed Jan 09 2002 Tim Powers <[email protected]> 0.6.3-7
|
|
190 |
- automated rebuild
|
|
191 |
* Mon Nov 5 2001 Tim Waugh <[email protected]> 0.6.3-6
|
|
192 |
- Don't create a useless empty catalog.
|
|
193 |
- Don't try to put install things outside the build root.
|
|
194 |
- Build requires a libxml2 that actually works.
|
|
195 |
* Mon Nov 5 2001 Tim Waugh <[email protected]> 0.6.3-4
|
|
196 |
- Use (and handle) catalog files with quotes in install-catalog.
|
|
197 |
* Thu Nov 1 2001 Tim Waugh <[email protected]> 0.6.3-3
|
|
198 |
- Create default XML Catalog at build time, not install time.
|
|
199 |
* Fri Oct 5 2001 Tim Waugh <[email protected]> 0.6.3-2
|
|
200 |
- Move XML things into /usr/share/xml, and split them out into separate
|
|
201 |
xml-common package.
|
|
202 |
* Mon Oct 1 2001 Tim Waugh <[email protected]> 0.6.3-1
|
|
203 |
- 0.6.3. Incorporates oldsyntax and quiet patches.
|
|
204 |
- Make /etc/sgml/sgml.conf noreplace.
|
|
205 |
- Own /etc/sgml, various other directories (bug #47485, bug #54180).
|
|
206 |
* Wed May 23 2001 Tim Waugh <[email protected]> 0.5-7
|
|
207 |
- Remove execute bit from data files.
|
|
208 |
* Mon May 21 2001 Tim Waugh <[email protected]> 0.5-6
|
|
209 |
- install-catalog needs to make sure that it creates world-readable files
|
|
210 |
(bug #41552).
|
|
211 |
* Wed Mar 14 2001 Tim Powers <[email protected]> 0.5-5
|
|
212 |
- fixed license
|
|
213 |
* Wed Jan 24 2001 Tim Waugh <[email protected]>
|
|
214 |
- Make install-catalog quieter during normal operation.
|
|
215 |
* Tue Jan 23 2001 Tim Waugh <[email protected]>
|
|
216 |
- Require textutils, fileutils, grep (bug #24719).
|
|
217 |
* Wed Jan 17 2001 Tim Waugh <[email protected]>
|
|
218 |
- Require sh-utils.
|
|
219 |
* Mon Jan 15 2001 Tim Waugh <[email protected]>
|
|
220 |
- Don't play so many macro games.
|
|
221 |
- Fix typo in install-catalog patch.
|
|
222 |
* Mon Jan 08 2001 Tim Waugh <[email protected]>
|
|
223 |
- Change group.
|
|
224 |
- Install by hand (man/en/...). Use %%{_mandir}.
|
|
225 |
- Use %%{_tmppath}.
|
|
226 |
- Make install-catalog fail silently if given the old syntax.
|
|
227 |
- Add CHANGES file.
|
|
228 |
- Change Copyright: to License:.
|
|
229 |
- Remove Packager: line.
|
|
230 |
* Mon Jan 08 2001 Tim Waugh <[email protected]>
|
|
231 |
- Based on Eric Bischoff's new-trials packages.
|