Blame SPECS/sgml-common.spec

bb6756
%global xmlxsdver 2009/01
bb6756
bb6756
Name: sgml-common
bb6756
Version: 0.6.3
f41052
Release: 39%{?dist}
bb6756
Group: Applications/Text
bb6756
bb6756
Summary: Common SGML catalog and DTD files
bb6756
bb6756
License: GPL+
bb6756
bb6756
BuildArch: noarch
bb6756
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bb6756
bb6756
#Actually - there is no homepage of this project, on that URL
bb6756
#page you could get complete ISO 8879 listing as was on the
bb6756
#old page - only part of it is included in sgml-common package.
bb6756
URL: http://www.w3.org/2003/entities/
bb6756
bb6756
Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz
bb6756
# Following 4 from openjade/pubtext - same maintainer as in SGML-common, so up2date:
bb6756
Source1: xml.dcl
bb6756
Source2: xml.soc
bb6756
Source3: html.dcl
bb6756
Source4: html.soc
bb6756
Source5: http://www.w3.org/%{xmlxsdver}/xml.xsd
bb6756
bb6756
Patch0: sgml-common-umask.patch
bb6756
Patch1: sgml-common-xmldir.patch
bb6756
Patch2: sgml-common-quotes.patch
bb6756
bb6756
BuildRequires: libxml2
bb6756
BuildRequires: automake
bb6756
Requires: /bin/basename
bb6756
bb6756
%description
bb6756
The sgml-common package contains a collection of entities and DTDs
bb6756
that are useful for processing SGML, but that don't need to be
bb6756
included in multiple packages.  Sgml-common also includes an
bb6756
up-to-date Open Catalog file.
bb6756
bb6756
%package -n xml-common
bb6756
Group: Applications/Text
bb6756
Summary: Common XML catalog and DTD files
bb6756
License: GPL+
bb6756
Requires(pre): %{_bindir}/xmlcatalog
bb6756
bb6756
%description -n xml-common
bb6756
The xml-common is a subpackage of sgml-common which contains
bb6756
a collection XML catalogs that are useful for processing XML,
bb6756
but that don't need to be included in main package.
bb6756
bb6756
%prep
bb6756
%setup -q
bb6756
%patch0 -p1 -b .umask
bb6756
%patch1 -p1 -b .xmldir
bb6756
%patch2 -p1 -b .quotes
bb6756
bb6756
# replace bogus links with files
bb6756
automakedir=`ls -1d /usr/share/automake* | head -n +1`
bb6756
for file in COPYING INSTALL install-sh missing mkinstalldirs; do
bb6756
   rm $file
bb6756
   cp -p $automakedir/$file .
bb6756
done
bb6756
bb6756
%build
bb6756
%configure
bb6756
bb6756
%install
bb6756
rm -rf $RPM_BUILD_ROOT
bb6756
make install DESTDIR="$RPM_BUILD_ROOT" htmldir='%{_datadir}/doc' INSTALL='install -p'
bb6756
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/xml
bb6756
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook
bb6756
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
bb6756
# Touch SGML catalog
bb6756
touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog
bb6756
# Create an empty XML catalog.
bb6756
XMLCATALOG=$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
bb6756
%{_bindir}/xmlcatalog --noout --create $XMLCATALOG
bb6756
# ...and add xml.xsd in it
bb6756
for type in system uri ; do
bb6756
	for path in 2001 %{xmlxsdver} ; do
bb6756
		%{_bindir}/xmlcatalog --noout --add $type \
bb6756
			"http://www.w3.org/$path/xml.xsd" \
bb6756
			"file://%{_datadir}/xml/xml.xsd" $XMLCATALOG
bb6756
	done
bb6756
done
bb6756
# Now put the common DocBook entries in it
bb6756
%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
bb6756
	"-//OASIS//ENTITIES DocBook XML" \
bb6756
	"file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
bb6756
%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
bb6756
	"-//OASIS//DTD DocBook XML" \
bb6756
	"file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
bb6756
%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
bb6756
	"ISO 8879:1986" \
bb6756
	"file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
bb6756
%{_bindir}/xmlcatalog --noout --add "delegateSystem" \
bb6756
	"http://www.oasis-open.org/docbook/" \
bb6756
	"file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
bb6756
%{_bindir}/xmlcatalog --noout --add "delegateURI" \
bb6756
	"http://www.oasis-open.org/docbook/" \
bb6756
	"file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG
bb6756
# Also create the common DocBook catalog
bb6756
%{_bindir}/xmlcatalog --noout --create \
bb6756
	$RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook/xmlcatalog
bb6756
ln -sf %{_sysconfdir}/sgml/docbook/xmlcatalog\
bb6756
	$RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xmlcatalog
bb6756
bb6756
rm -f $RPM_BUILD_ROOT%{_datadir}/sgml/xml.dcl
bb6756
install -p -m0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
bb6756
	$RPM_BUILD_ROOT%{_datadir}/sgml
bb6756
rm -rf $RPM_BUILD_ROOT%{_datadir}/xml/*
bb6756
install -p -m0644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xml
bb6756
bb6756
# remove installed doc file and prepare installation with %%doc
bb6756
rm $RPM_BUILD_ROOT%{_datadir}/doc/*.html
bb6756
rm -rf __dist_doc/html/
bb6756
mkdir -p __dist_doc/html/
bb6756
cp -p doc/HTML/*.html __dist_doc/html/
bb6756
bb6756
bb6756
%clean
bb6756
rm -rf $RPM_BUILD_ROOT
bb6756
bb6756
%pre -n xml-common
bb6756
if [ $1 -gt 1 ] && [ -e %{_sysconfdir}/xml/catalog ]; then
bb6756
	for type in system uri ; do
bb6756
		for path in 2001 %{xmlxsdver} ; do
bb6756
			%{_bindir}/xmlcatalog --noout --add $type \
bb6756
				"http://www.w3.org/$path/xml.xsd" \
bb6756
				"file://%{_datadir}/xml/xml.xsd" \
bb6756
				%{_sysconfdir}/xml/catalog
bb6756
		done
bb6756
	done
bb6756
fi
bb6756
bb6756
%files
bb6756
%defattr (-,root,root, -)
bb6756
%doc __dist_doc/html/ AUTHORS NEWS ChangeLog COPYING README
bb6756
%dir %{_sysconfdir}/sgml
bb6756
%config(noreplace) %{_sysconfdir}/sgml/sgml.conf
bb6756
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/sgml/catalog
bb6756
%dir %{_datadir}/sgml
bb6756
%dir %{_datadir}/sgml/sgml-iso-entities-8879.1986
bb6756
%{_datadir}/sgml/sgml-iso-entities-8879.1986/*
bb6756
%{_datadir}/sgml/xml.dcl
bb6756
%{_datadir}/sgml/xml.soc
bb6756
%{_datadir}/sgml/html.dcl
bb6756
%{_datadir}/sgml/html.soc
bb6756
%{_bindir}/sgmlwhich
bb6756
%{_bindir}/install-catalog
bb6756
%{_mandir}/man8/install-catalog.8*
bb6756
bb6756
%files -n xml-common
bb6756
%defattr (-,root,root,-)
bb6756
%doc AUTHORS NEWS ChangeLog COPYING README
bb6756
%dir %{_sysconfdir}/xml
bb6756
%dir %{_sysconfdir}/sgml/docbook
bb6756
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog
bb6756
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook/xmlcatalog
bb6756
%dir %{_datadir}/sgml
bb6756
%dir %{_datadir}/sgml/docbook
bb6756
%{_datadir}/sgml/docbook/xmlcatalog
bb6756
%dir %{_datadir}/xml
bb6756
%{_datadir}/xml/xml.xsd
bb6756
bb6756
%changelog
f41052
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6.3-39
f41052
- Mass rebuild 2013-12-27
f41052
bb6756
* Thu Oct 11 2012 Ondrej Vasik <ovasik@redhat.com> 0.6.3-38
bb6756
- get rid of the explicit automake14 requirement
bb6756
bb6756
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-37
bb6756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bb6756
bb6756
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-36
bb6756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bb6756
bb6756
* Sun Oct 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.6.3-35
bb6756
- Include xml.xsd in xml-common (#750073).
bb6756
bb6756
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-34
bb6756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bb6756
bb6756
* Mon Jul 12 2010 Ondrej Vasik <ovasik@redhat.com> 0.6.3-33
bb6756
- ship COPYING file with both sgml-common and xml-common
bb6756
- ship documentation with xml-common
bb6756
bb6756
* Fri Jan 14 2010 Ondrej Vasik <ovasik@redhat.com> 0.6.3-32
bb6756
- Merge review #226415: remove unapplied patches, remove
bb6756
  versioned BR
bb6756
bb6756
* Wed Nov 11 2009 Ondrej Vasik <ovasik@redhat.com> 0.6.3-31
bb6756
- apply quotes patch once again (accidently deleted in Nov07-#533058)
bb6756
bb6756
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-30
bb6756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bb6756
bb6756
* Thu May 28 2009 Ondrej Vasik <ovasik@redhat.com> 0.6.3-29
bb6756
- do own /etc/sgml/catalog
bb6756
bb6756
* Tue May 19 2009 Ondrej Vasik <ovasik@redhat.com> 0.6.3-28
bb6756
- do not provide explicit url for xml-common subpackage,
bb6756
  fix trailing spaces
bb6756
- add Requires: /bin/basename (#501360)
bb6756
bb6756
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-27
bb6756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bb6756
bb6756
* Thu Aug 07 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-26
bb6756
- /etc/sgml/docbook dir now owned by package(#458230)
bb6756
- get rid off fuzz in patches
bb6756
bb6756
* Tue Jul 01 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-25
bb6756
- mark xmlcatalog config(noreplace) to prevent overwriting
bb6756
  of the content, move it to sysconfdir and make symlink for
bb6756
  it to silence rpmlint
bb6756
bb6756
* Mon Jun 30 2008 Ondrej Vasik <ovasik@redhat.com> 0.6.3-24
bb6756
- mark catalog files as (not md5 size mtime) for verify to
bb6756
  prevent info about changed files (#453271)
bb6756
bb6756
* Thu Nov 22 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-23
bb6756
- Another MergeReview improvements(provided by Patrice Dumas)
bb6756
- copy Automake-1.4 files instead of rerunning autotools,
bb6756
- better preserving timestamps, better handling of documentation
bb6756
- improved XML-common description
bb6756
bb6756
* Thu Nov 15 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-22
bb6756
- Merge Review(226415)
bb6756
- changed: License Tag, using RPM macros instead of hardcoded
bb6756
  dirs, summary ended with dot, added URL, removed CHANGES
bb6756
  file as obsolete, preserved timestamps and some other cosmetic
bb6756
  changes
bb6756
- no longer shipping old automake tarball, fixed issue with man8_DATA,
bb6756
  BuildRequire:Automake,Autoconf again(see MergeReview discussion)
bb6756
bb6756
* Mon May 28 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.3-21
bb6756
- Fixed broken URL (changed to XML entity declarations) (bug #237726)
bb6756
- Rebuilt
bb6756
bb6756
* Tue May 15 2007 Tim Waugh <twaugh@redhat.com> 0.6.3-20
bb6756
- Added dist tag.
bb6756
- Fixed summary.
bb6756
- Removed build dependency on autoconf/automake.
bb6756
bb6756
* Tue Oct 24 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-19
bb6756
- Removed stale URL (bug #210848).
bb6756
bb6756
* Mon Jun 12 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-18
bb6756
- Build requires automake and autoconf (bug #194709).
bb6756
bb6756
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
bb6756
- rebuilt
bb6756
bb6756
* Wed Sep 22 2004 Than Ngo <than@redhat.com> 0.6.3-17
bb6756
- rebuilt
bb6756
bb6756
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
bb6756
- rebuilt
bb6756
bb6756
* Mon Dec  8 2003 Tim Waugh <twaugh@redhat.com> 0.6.3-15
bb6756
- Patch from Ville Skyttä <ville.skytta@iki.fi> (bug #111625):
bb6756
  - Include /usr/share/xml in xml-common.
bb6756
  - Own /usr/share/sgml and /usr/share/xml.
bb6756
bb6756
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
bb6756
- rebuilt
bb6756
bb6756
* Wed Oct 23 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-13
bb6756
- Ship the installed documentation.
bb6756
- Don't install files not packaged.
bb6756
bb6756
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
bb6756
- automated rebuild
bb6756
bb6756
* Thu May 23 2002 Tim Powers <timp@redhat.com>
bb6756
- automated rebuild
bb6756
bb6756
* Wed Apr 24 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-10
bb6756
- Ship {xml,html}.{dcl,soc} (bug #63500, bug #62980).
bb6756
- Work around broken tarball packaging.
bb6756
bb6756
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-9
bb6756
- Rebuild in new environment.
bb6756
bb6756
* Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-8
bb6756
- Back to /usr/share/sgml.  Now install docbook-dtds.
bb6756
- Use a real install-sh, not the symlink shipped in the tarball.
bb6756
bb6756
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 0.6.3-7
bb6756
- automated rebuild
bb6756
bb6756
* Mon Nov  5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-6
bb6756
- Don't create a useless empty catalog.
bb6756
- Don't try to put install things outside the build root.
bb6756
- Build requires a libxml2 that actually works.
bb6756
bb6756
* Mon Nov  5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-4
bb6756
- Use (and handle) catalog files with quotes in install-catalog.
bb6756
bb6756
* Thu Nov  1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-3
bb6756
- Create default XML Catalog at build time, not install time.
bb6756
bb6756
* Fri Oct  5 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-2
bb6756
- Move XML things into /usr/share/xml, and split them out into separate
bb6756
  xml-common package.
bb6756
bb6756
* Mon Oct  1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-1
bb6756
- 0.6.3.  Incorporates oldsyntax and quiet patches.
bb6756
- Make /etc/sgml/sgml.conf noreplace.
bb6756
- Own /etc/sgml, various other directories (bug #47485, bug #54180).
bb6756
bb6756
* Wed May 23 2001 Tim Waugh <twaugh@redhat.com> 0.5-7
bb6756
- Remove execute bit from data files.
bb6756
bb6756
* Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.5-6
bb6756
- install-catalog needs to make sure that it creates world-readable files
bb6756
  (bug #41552).
bb6756
bb6756
* Wed Mar 14 2001 Tim Powers <timp@redhat.com> 0.5-5
bb6756
- fixed license
bb6756
bb6756
* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
bb6756
- Make install-catalog quieter during normal operation.
bb6756
bb6756
* Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com>
bb6756
- Require textutils, fileutils, grep (bug #24719).
bb6756
bb6756
* Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com>
bb6756
- Require sh-utils.
bb6756
bb6756
* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
bb6756
- Don't play so many macro games.
bb6756
- Fix typo in install-catalog patch.
bb6756
bb6756
* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
bb6756
- Change group.
bb6756
- Install by hand (man/en/...).  Use %%{_mandir}.
bb6756
- Use %%{_tmppath}.
bb6756
- Make install-catalog fail silently if given the old syntax.
bb6756
- Add CHANGES file.
bb6756
- Change Copyright: to License:.
bb6756
- Remove Packager: line.
bb6756
bb6756
* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
bb6756
- Based on Eric Bischoff's new-trials packages.