3cd2f0
%global date    20020801
3cd2f0
3cd2f0
Name:           xhtml1-dtds
3cd2f0
Version:        1.0
3cd2f0
Release:        %{date}.13%{?dist}.4
3cd2f0
Summary:        XHTML 1.0 document type definitions
3cd2f0
3cd2f0
Group:          Applications/Text
3cd2f0
# W3C Software License for DTDs etc:
3cd2f0
# http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD
3cd2f0
License:        W3C
3cd2f0
URL:            http://www.w3.org/TR/2002/REC-xhtml1-%{date}/
3cd2f0
# Source0 generated with Source99, see comments in the script
3cd2f0
Source0:        %{name}-%{date}.tar.xz
3cd2f0
Source1:        %{name}.catalog.xml
3cd2f0
Source99:       %{name}-prepare-tarball.sh
3cd2f0
Patch0:         %{name}-sgml-catalog.patch
3cd2f0
Patch1:         %{name}-sgml-dcl.patch
3cd2f0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3cd2f0
3cd2f0
BuildArch:      noarch
3cd2f0
BuildRequires:  libxml2 >= 2.4.8
3cd2f0
Requires:       libxml2 >= 2.4.8
3cd2f0
Requires:       xml-common
3cd2f0
Requires:       sgml-common
3cd2f0
Requires(post): /usr/bin/xmlcatalog
3cd2f0
Requires(preun): /usr/bin/xmlcatalog
3cd2f0
3cd2f0
%description
3cd2f0
This provides the DTDs of the Second Edition of XHTML 1.0, a reformulation
3cd2f0
of HTML 4 as an XML 1.0 application, and three DTDs corresponding to the
3cd2f0
ones defined by HTML 4. The semantics of the elements and their attributes
3cd2f0
are defined in the W3C Recommendation for HTML 4. These semantics provide
3cd2f0
the foundation for future extensibility of XHTML.
3cd2f0
3cd2f0
3cd2f0
%prep
3cd2f0
%setup -q -n xhtml1-20020801
3cd2f0
%patch0 -p0
3cd2f0
%patch1 -p1
3cd2f0
cp -p %{SOURCE1} DTD/catalog.xml
3cd2f0
3cd2f0
3cd2f0
%build
3cd2f0
3cd2f0
3cd2f0
%install
3cd2f0
rm -rf $RPM_BUILD_ROOT
3cd2f0
3cd2f0
# Note: documentation is not shipped; the W3C Documentation License is not an
3cd2f0
# acceptable one per Fedora licensing guidelines.
3cd2f0
3cd2f0
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xml/xhtml/1.0
3cd2f0
cp -p DTD/* $RPM_BUILD_ROOT%{_datadir}/xml/xhtml/1.0
3cd2f0
3cd2f0
# XML catalog:
3cd2f0
3cd2f0
xpkg() {
3cd2f0
  xmlcatalog --noout --add "$1" "$2" \
3cd2f0
    file://%{_datadir}/xml/xhtml/1.0/catalog.xml \
3cd2f0
    $RPM_BUILD_ROOT%{_sysconfdir}/xml/%{name}-%{version}-%{release}.xml
3cd2f0
}
3cd2f0
3cd2f0
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xml
3cd2f0
xmlcatalog --noout --create \
3cd2f0
  $RPM_BUILD_ROOT%{_sysconfdir}/xml/%{name}-%{version}-%{release}.xml
3cd2f0
xpkg delegatePublic "-//W3C//DTD XHTML 1.0 "
3cd2f0
xpkg delegatePublic "-//W3C//ENTITIES Latin 1 for XHTML"
3cd2f0
xpkg delegatePublic "-//W3C//ENTITIES Special for XHTML"
3cd2f0
xpkg delegatePublic "-//W3C//ENTITIES Symbols for XHTML"
3cd2f0
for i in xhtml1 2002/REC-xhtml1-%{date} ; do
3cd2f0
  xpkg delegateSystem http://www.w3.org/TR/$i/DTD/
3cd2f0
  xpkg delegateURI http://www.w3.org/TR/$i/DTD/
3cd2f0
done
3cd2f0
ln -s %{name}-%{version}-%{release}.xml \
3cd2f0
  $RPM_BUILD_ROOT%{_sysconfdir}/xml/%{name}.xml
3cd2f0
3cd2f0
# SGML catalog:
3cd2f0
3cd2f0
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sgml
3cd2f0
cd $RPM_BUILD_ROOT%{_sysconfdir}/sgml
3cd2f0
touch %{name}-%{version}-%{release}.soc
3cd2f0
ln -s %{name}-%{version}-%{release}.soc %{name}.soc
3cd2f0
cd -
3cd2f0
3cd2f0
3cd2f0
%clean
3cd2f0
rm -rf $RPM_BUILD_ROOT
3cd2f0
3cd2f0
3cd2f0
%post
3cd2f0
cd %{_sysconfdir}/xml
3cd2f0
[ -e catalog ] || /usr/bin/xmlcatalog --noout --create catalog
3cd2f0
/usr/bin/xmlcatalog --noout --add \
3cd2f0
    nextCatalog %{name}-%{version}-%{release}.xml "" catalog >/dev/null
3cd2f0
cd - >/dev/null
3cd2f0
/usr/bin/xmlcatalog --sgml --noout --add \
3cd2f0
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \
3cd2f0
    %{_datadir}/xml/xhtml/1.0/xhtml.soc >/dev/null
3cd2f0
:
3cd2f0
3cd2f0
%preun
3cd2f0
/usr/bin/xmlcatalog --noout --del \
3cd2f0
    %{name}-%{version}-%{release}.xml \
3cd2f0
    %{_sysconfdir}/xml/catalog >/dev/null
3cd2f0
/usr/bin/xmlcatalog --sgml --noout --del \
3cd2f0
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \
3cd2f0
    %{_datadir}/xml/xhtml/1.0/xhtml.soc >/dev/null
3cd2f0
:
3cd2f0
3cd2f0
3cd2f0
%files
3cd2f0
%defattr(644,root,root,755)
3cd2f0
%ghost %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc
3cd2f0
%{_sysconfdir}/sgml/%{name}.soc
3cd2f0
%{_sysconfdir}/xml/%{name}*.xml
3cd2f0
%{_datadir}/xml/xhtml/
3cd2f0
3cd2f0
3cd2f0
%changelog
3cd2f0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20020801.13.4
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3cd2f0
3cd2f0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20020801.13.3
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3cd2f0
3cd2f0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20020801.13.2
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3cd2f0
3cd2f0
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20020801.13.1
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3cd2f0
3cd2f0
* Thu Jul  2 2015 Ville Skytt채 <ville.skytta@iki.fi> - 1.0-20020801.13
3cd2f0
- Add %%{?dist} to release (#1237194)
3cd2f0
- Compress tarball with xz
3cd2f0
3cd2f0
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.12
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3cd2f0
3cd2f0
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.11
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3cd2f0
3cd2f0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.10
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3cd2f0
3cd2f0
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.9
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3cd2f0
3cd2f0
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.8
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3cd2f0
3cd2f0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.7
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3cd2f0
3cd2f0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.6
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3cd2f0
3cd2f0
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.5
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3cd2f0
3cd2f0
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-20020801.4
3cd2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3cd2f0
3cd2f0
* Fri Feb 20 2009 Ville Skytt채 <ville.skytta at="" iki.fi=""> - 1.0-20020801.3
3cd2f0
- Prune nondistributable content from source tarball.
3cd2f0
3cd2f0
* Fri Dec 12 2008 Ville Skytt채 <ville.skytta at="" iki.fi=""> - 1.0-20020801.2
3cd2f0
- Drop no longer needed upgrade quirks.
3cd2f0
3cd2f0
* Thu Feb 28 2008 Ville Skytt채 <ville.skytta at="" iki.fi=""> - 1.0-20020801.1
3cd2f0
- Major spec file rewrite (#226559), most visible changes:
3cd2f0
- Various XML cataloguing improvements.
3cd2f0
- Register to SGML catalogs in addition to XML.
3cd2f0
- Install to %%{_datadir}/xml per the FHS.
3cd2f0
- Sync with Fedora packaging guidelines.
3cd2f0
- Silence post-install scriptlet.
3cd2f0
3cd2f0
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-7.1.1
3cd2f0
- rebuild
3cd2f0
3cd2f0
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3cd2f0
- rebuilt
3cd2f0
3cd2f0
* Wed Jun  2 2004 Daniel Veillard <veillard@redhat.com> 1.0-7
3cd2f0
- add BuildRequires: libxml2, fixes 125030
3cd2f0
3cd2f0
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
3cd2f0
- Use ':' instead of '.' as separator for chown.
3cd2f0
3cd2f0
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
3cd2f0
- rebuilt
3cd2f0
3cd2f0
* Tue Oct 21 2003 Florian La Roche <florian.laroche@redhat.de>
3cd2f0
- add %%clean specfile target
3cd2f0
3cd2f0
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
3cd2f0
- rebuilt
3cd2f0
3cd2f0
* Fri Dec 13 2002 Daniel Veillard <veillard@redhat.com> 1.0-4
3cd2f0
- Prepare for inclusion, Prereq xml-common, fix the uninstall
3cd2f0
  for upgrades of the package
3cd2f0
3cd2f0
* Thu Dec 12 2002 Daniel Veillard <veillard@redhat.com> 1.0-1
3cd2f0
- Creation, based on Tim Waugh docbook-dtd package