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