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