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