sgml-common.spec revision 10392
20778N/A#
20778N/A# spec file for package sgml-common
10139N/A#
20903N/A# copied from fedora core 6
10139N/A#
10139N/A# Owner: laca
10139N/A#
17185N/AName: sgml-common
10139N/AVersion: 0.6.3
10139N/ARelease: 18
17176N/AGroup: Applications/Text
17176N/A
17176N/ASummary: Common SGML catalog and DTD files.
10139N/A
19112N/ALicense: GPL
10139N/A
20903N/ABuildArch: noarch
11991N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ASource0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz
18615N/A# From openjade:
10139N/ASource3: xml.dcl
20903N/ASource4: xml.soc
10139N/ASource5: html.dcl
20778N/ASource6: html.soc
20903N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
20903N/APatch0: sgml-common-01-umask.diff
20903N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
20903N/APatch1: sgml-common-02-xmldir.diff
20903N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10139N/APatch2: sgml-common-03-quotes.diff
10139N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10139N/APatch3: sgml-common-04-automake.diff
10139N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10139N/APatch4: sgml-common-05-docdir.diff
10139N/A
10139N/ARequires: sh-utils fileutils textutils grep
10139N/ABuildRequires: libxml2 >= 2.4.8-2
10139N/ABuildRequires: automake
15377N/ABuildRequires: autoconf
10139N/A
17065N/A%description
10139N/AThe sgml-common package contains a collection of entities and DTDs
10139N/Athat are useful for processing SGML, but that don't need to be
10139N/Aincluded in multiple packages. Sgml-common also includes an
10139N/Aup-to-date Open Catalog file.
10139N/A
10139N/A%package -n xml-common
10139N/AGroup: Applications/Text
10139N/ASummary: Common XML catalog and DTD files.
10139N/ALicense: GPL
10139N/AURL: http://www.iso.ch/cate/3524030.html
10139N/ARequires: sh-utils fileutils textutils grep
10139N/A
10139N/A%description -n xml-common
10139N/AThe xml-common package contains a collection of entities and DTDs
10139N/Athat are useful for processing XML, but that don't need to be
10139N/Aincluded in multiple packages.
10139N/A
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A%patch0 -p1 -b .umask
10139N/A%patch1 -p1 -b .xmldir
10139N/A%patch2 -p1 -b .quotes
10139N/A%patch3 -p1 -b .automake
10139N/A%patch4 -p1 -b .docdir
10139N/A
10139N/A%build
10139N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautoconf
10139N/Aautomake --add-missing --copy
10139N/A
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --with-docdir=%{_docdir}
20903N/A
10139N/A
10139N/A%install
10139N/ADESTDIR=$RPM_BUILD_ROOT
10139N/Arm -rf $DESTDIR
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/Amkdir -p $RPM_BUILD_ROOT/etc/xml
10139N/Amkdir -p $RPM_BUILD_ROOT/usr/share/sgml/docbook
10139N/A# Create an empty XML catalog.
10139N/AXMLCATALOG=$RPM_BUILD_ROOT/etc/xml/catalog
10139N/A/usr/bin/xmlcatalog --noout --create $XMLCATALOG
10139N/A# Now put the common DocBook entries in it
10139N/A/usr/bin/xmlcatalog --noout --add "delegatePublic" \
10139N/A "-//OASIS//ENTITIES DocBook XML" \
10307N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
10139N/A/usr/bin/xmlcatalog --noout --add "delegatePublic" \
20903N/A "-//OASIS//DTD DocBook XML" \
10139N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
10139N/A/usr/bin/xmlcatalog --noout --add "delegatePublic" \
20903N/A "ISO 8879:1986" \
10139N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
15513N/A/usr/bin/xmlcatalog --noout --add "delegateSystem" \
15513N/A "http://www.oasis-open.org/docbook/" \
15513N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
15513N/A/usr/bin/xmlcatalog --noout --add "delegateURI" \
15513N/A "http://www.oasis-open.org/docbook/" \
15513N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
10318N/A# Also create the common DocBook catalog
10318N/A/usr/bin/xmlcatalog --noout --create \
10139N/A $RPM_BUILD_ROOT/usr/share/sgml/docbook/xmlcatalog
10139N/A
10318N/Arm -f $RPM_BUILD_ROOT/usr/share/sgml/xml.dcl
10139N/Ainstall -m0644 %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
10139N/A $RPM_BUILD_ROOT/usr/share/sgml
10139N/Arm -rf $RPM_BUILD_ROOT/usr/share/xml/*
10139N/A
10139N/A
20778N/A%clean
20778N/ADESTDIR=$RPM_BUILD_ROOT
20778N/Arm -rf $DESTDIR
10139N/A
20778N/A
20778N/A%files
20778N/A%defattr (-,root,root)
10139N/A%dir /etc/sgml
10139N/A%config(noreplace) /etc/sgml/sgml.conf
10139N/A%dir /usr/share/sgml
10139N/A%dir /usr/share/sgml/sgml-iso-entities-8879.1986
10139N/A/usr/share/sgml/sgml-iso-entities-8879.1986/*
10139N/A/usr/share/sgml/xml.dcl
10139N/A/usr/share/sgml/xml.soc
10139N/A/usr/share/sgml/html.dcl
10139N/A/usr/share/sgml/html.soc
10139N/A/usr/bin/sgmlwhich
10139N/A/usr/bin/install-catalog
10139N/A%{_mandir}/*/*
10139N/A%{_docdir}/*
10139N/A
10139N/A%files -n xml-common
10139N/A%defattr (-,root,root)
10139N/A%dir /etc/xml
10139N/A%config(noreplace) /etc/xml/catalog
10139N/A%dir /usr/share/sgml
10139N/A%dir /usr/share/sgml/docbook
10139N/A%config(noreplace) /usr/share/sgml/docbook/xmlcatalog
10139N/A%dir /usr/share/xml
10139N/A
20903N/A%changelog
20903N/A* Sun Apr 1 2007 - laca@sun.com
20778N/A- add missing autoconf call
20778N/A* Wed Mar 21 2007 - laca@sun.com
19040N/A- add --sysconfdir configure option and use $RPM_BUILD_ROOT instead
19040N/A of %buildroot.
18383N/A* Mon Feb 12 2007 - laca@sun.com
18383N/A- rename patch to match JDS naming convention
17097N/A* Mon Jun 12 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-18
17097N/A- Build requires automake and autoconf (bug #194709).
16871N/A* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
16871N/A- rebuilt
15970N/A* Wed Sep 22 2004 Than Ngo <than@redhat.com> 0.6.3-17
15970N/A- rebuilt
15970N/A* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
15821N/A- rebuilt
15513N/A* Mon Dec 8 2003 Tim Waugh <twaugh@redhat.com> 0.6.3-15
20778N/A- Patch from Ville Skyttä <ville.skytta at iki.fi> (bug #111625):
15494N/A - Include /usr/share/xml in xml-common.
15494N/A - Own /usr/share/sgml and /usr/share/xml.
15477N/A* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
15477N/A- rebuilt
15377N/A* Wed Oct 23 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-13
15377N/A- Ship the installed documentation.
15377N/A- Don't install files not packaged.
15377N/A* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
13857N/A- automated rebuild
13857N/A* Thu May 23 2002 Tim Powers <timp@redhat.com>
13857N/A- automated rebuild
13847N/A* Wed Apr 24 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-10
13847N/A- Ship {xml,html}.{dcl,soc} (bug #63500, bug #62980).
13547N/A- Work around broken tarball packaging.
13547N/A* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-9
13547N/A- Rebuild in new environment.
13531N/A* Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-8
13531N/A- Back to /usr/share/sgml. Now install docbook-dtds.
13394N/A- Use a real install-sh, not the symlink shipped in the tarball.
13394N/A* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 0.6.3-7
12911N/A- automated rebuild
12911N/A* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-6
12905N/A- Don't create a useless empty catalog.
12905N/A- Don't try to put install things outside the build root.
12905N/A- Build requires a libxml2 that actually works.
12246N/A* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-4
12246N/A- Use (and handle) catalog files with quotes in install-catalog.
12246N/A* Thu Nov 1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-3
12246N/A- Create default XML Catalog at build time, not install time.
12223N/A* Fri Oct 5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-2
12223N/A- Move XML things into /usr/share/xml, and split them out into separate
20778N/A xml-common package.
12199N/A* Mon Oct 1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-1
12199N/A- 0.6.3. Incorporates oldsyntax and quiet patches.
11991N/A- Make /etc/sgml/sgml.conf noreplace.
20778N/A- Own /etc/sgml, various other directories (bug #47485, bug #54180).
11006N/A* Wed May 23 2001 Tim Waugh <twaugh@redhat.com> 0.5-7
11006N/A- Remove execute bit from data files.
11006N/A* Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.5-6
11006N/A- install-catalog needs to make sure that it creates world-readable files
11006N/A (bug #41552).
10948N/A* Wed Mar 14 2001 Tim Powers <timp@redhat.com> 0.5-5
10948N/A- fixed license
20778N/A* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
10896N/A- Make install-catalog quieter during normal operation.
10896N/A* Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
10588N/A- Require textutils, fileutils, grep (bug #24719).
10588N/A* Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com>
10562N/A- Require sh-utils.
10562N/A* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
10392N/A- Don't play so many macro games.
20778N/A- Fix typo in install-catalog patch.
10318N/A* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
10318N/A- Change group.
10307N/A- Install by hand (man/en/...). Use %%{_mandir}.
10308N/A- Use %%{_tmppath}.
10308N/A- Make install-catalog fail silently if given the old syntax.
10307N/A- Add CHANGES file.
10293N/A- Change Copyright: to License:.
10293N/A- Remove Packager: line.
10139N/A* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
10139N/A- Based on Eric Bischoff's new-trials packages.
10139N/A