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