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