sgml-common.spec revision 10347
10139N/A#
10139N/A# spec file for package sgml-common
10139N/A#
12147N/A# copied from fedora core 6
10139N/A#
10139N/A# Owner: laca
10139N/A#
10139N/AName: sgml-common
10139N/AVersion: 0.6.3
10139N/ARelease: 18
10139N/AGroup: Applications/Text
10139N/A
12812N/ASummary: Common SGML catalog and DTD files.
10139N/A
10139N/ALicense: GPL
10139N/A
10139N/ABuildArch: noarch
12584N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ASource0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz
10139N/A# From openjade:
10139N/ASource3: xml.dcl
10139N/ASource4: xml.soc
10139N/ASource5: html.dcl
10139N/ASource6: html.soc
10139N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10139N/APatch0: sgml-common-01-umask.diff
10491N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10491N/APatch1: sgml-common-02-xmldir.diff
10491N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10491N/APatch2: sgml-common-03-quotes.diff
12088N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10139N/APatch3: sgml-common-04-automake.diff
12088N/A# owner:laca type:bug date:2007-02-12 state:upstream from Fedora Core 6
10139N/APatch4: sgml-common-05-docdir.diff
12088N/A
12176N/ARequires: sh-utils fileutils textutils grep
12196N/ABuildRequires: libxml2 >= 2.4.8-2
12306N/ABuildRequires: automake
12368N/ABuildRequires: autoconf
12619N/A
12619N/A%description
12765N/AThe sgml-common package contains a collection of entities and DTDs
12765N/Athat are useful for processing SGML, but that don't need to be
12811N/Aincluded in multiple packages. Sgml-common also includes an
12811N/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
10139N/Aautomake --add-missing --copy
10139N/A
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --with-docdir=%{_docdir}
10139N/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
12819N/Amkdir -p $RPM_BUILD_ROOT/usr/share/sgml/docbook
12288N/A# Create an empty XML catalog.
12619N/AXMLCATALOG=$RPM_BUILD_ROOT/etc/xml/catalog
12765N/A/usr/bin/xmlcatalog --noout --create $XMLCATALOG
12811N/A# Now put the common DocBook entries in it
10139N/A/usr/bin/xmlcatalog --noout --add "delegatePublic" \
11330N/A "-//OASIS//ENTITIES DocBook XML" \
11330N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
11330N/A/usr/bin/xmlcatalog --noout --add "delegatePublic" \
11330N/A "-//OASIS//DTD DocBook XML" \
11330N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
11330N/A/usr/bin/xmlcatalog --noout --add "delegatePublic" \
11330N/A "ISO 8879:1986" \
11330N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
11330N/A/usr/bin/xmlcatalog --noout --add "delegateSystem" \
10139N/A "http://www.oasis-open.org/docbook/" \
10139N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
10139N/A/usr/bin/xmlcatalog --noout --add "delegateURI" \
10139N/A "http://www.oasis-open.org/docbook/" \
10139N/A "file:///usr/share/sgml/docbook/xmlcatalog" $XMLCATALOG
10139N/A# Also create the common DocBook catalog
10139N/A/usr/bin/xmlcatalog --noout --create \
10139N/A $RPM_BUILD_ROOT/usr/share/sgml/docbook/xmlcatalog
10139N/A
10139N/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
11314N/Arm -rf $RPM_BUILD_ROOT/usr/share/xml/*
11314N/A
11314N/A
11320N/A%clean
11314N/ADESTDIR=$RPM_BUILD_ROOT
11314N/Arm -rf $DESTDIR
10139N/A
10139N/A
10139N/A%files
10139N/A%defattr (-,root,root)
10139N/A%dir /etc/sgml
10139N/A%config(noreplace) /etc/sgml/sgml.conf
10318N/A%dir /usr/share/sgml
10318N/A%dir /usr/share/sgml/sgml-iso-entities-8879.1986
10318N/A/usr/share/sgml/sgml-iso-entities-8879.1986/*
10318N/A/usr/share/sgml/xml.dcl
10318N/A/usr/share/sgml/xml.soc
10318N/A/usr/share/sgml/html.dcl
10318N/A/usr/share/sgml/html.soc
10139N/A/usr/bin/sgmlwhich
12140N/A/usr/bin/install-catalog
11314N/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
10139N/A%changelog
10139N/A* Wed Mar 21 2007 - laca@sun.com
10139N/A- add --sysconfdir configure option and use $RPM_BUILD_ROOT instead
10139N/A of %buildroot.
10139N/A* Mon Feb 12 2007 - laca@sun.com
10139N/A- rename patch to match JDS naming convention
10139N/A* Mon Jun 12 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-18
10139N/A- Build requires automake and autoconf (bug #194709).
10139N/A* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
10139N/A- rebuilt
10139N/A* Wed Sep 22 2004 Than Ngo <than@redhat.com> 0.6.3-17
10139N/A- rebuilt
10139N/A* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
10139N/A- rebuilt
10139N/A* Mon Dec 8 2003 Tim Waugh <twaugh@redhat.com> 0.6.3-15
10139N/A- Patch from Ville Skyttä <ville.skytta at iki.fi> (bug #111625):
10139N/A - Include /usr/share/xml in xml-common.
10139N/A - Own /usr/share/sgml and /usr/share/xml.
10139N/A* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
10139N/A- rebuilt
10139N/A* Wed Oct 23 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-13
10139N/A- Ship the installed documentation.
10139N/A- Don't install files not packaged.
10139N/A* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
10139N/A- automated rebuild
10139N/A* Thu May 23 2002 Tim Powers <timp@redhat.com>
10139N/A- automated rebuild
10139N/A* Wed Apr 24 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-10
10139N/A- Ship {xml,html}.{dcl,soc} (bug #63500, bug #62980).
12819N/A- Work around broken tarball packaging.
12819N/A* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-9
12812N/A- Rebuild in new environment.
12812N/A* Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-8
12811N/A- Back to /usr/share/sgml. Now install docbook-dtds.
12811N/A- Use a real install-sh, not the symlink shipped in the tarball.
12765N/A* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 0.6.3-7
12765N/A- automated rebuild
12746N/A* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-6
12746N/A- Don't create a useless empty catalog.
12619N/A- Don't try to put install things outside the build root.
12619N/A- Build requires a libxml2 that actually works.
12619N/A* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-4
12584N/A- Use (and handle) catalog files with quotes in install-catalog.
12584N/A* Thu Nov 1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-3
12468N/A- Create default XML Catalog at build time, not install time.
12468N/A* Fri Oct 5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-2
12368N/A- Move XML things into /usr/share/xml, and split them out into separate
12368N/A xml-common package.
12368N/A* Mon Oct 1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-1
12287N/A- 0.6.3. Incorporates oldsyntax and quiet patches.
12287N/A- Make /etc/sgml/sgml.conf noreplace.
12246N/A- Own /etc/sgml, various other directories (bug #47485, bug #54180).
12246N/A* Wed May 23 2001 Tim Waugh <twaugh@redhat.com> 0.5-7
12196N/A- Remove execute bit from data files.
12196N/A* Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.5-6
12765N/A- install-catalog needs to make sure that it creates world-readable files
12176N/A (bug #41552).
12176N/A* Wed Mar 14 2001 Tim Powers <timp@redhat.com> 0.5-5
12147N/A- fixed license
12152N/A* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
12140N/A- Make install-catalog quieter during normal operation.
12140N/A* Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
12095N/A- Require textutils, fileutils, grep (bug #24719).
12096N/A* Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com>
12096N/A- Require sh-utils.
12093N/A* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
12093N/A- Don't play so many macro games.
12092N/A- Fix typo in install-catalog patch.
12092N/A* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
12088N/A- Change group.
12088N/A- Install by hand (man/en/...). Use %%{_mandir}.
11989N/A- Use %%{_tmppath}.
11989N/A- Make install-catalog fail silently if given the old syntax.
11884N/A- Add CHANGES file.
11884N/A- Change Copyright: to License:.
11416N/A- Remove Packager: line.
11416N/A* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
11330N/A- Based on Eric Bischoff's new-trials packages.
11330N/A