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