2004-09-09 14:46:04 +00:00
|
|
|
Name: xhtml1-dtds
|
|
|
|
Version: 1.0
|
2004-09-09 14:48:53 +00:00
|
|
|
Release: 7
|
2004-09-09 14:46:04 +00:00
|
|
|
Group: Applications/Text
|
|
|
|
|
|
|
|
Summary: XML document type definition for XHTML 1.0
|
|
|
|
|
|
|
|
License: W3C IPR
|
|
|
|
URL: http://www.w3.org/TR/xhtml1/
|
|
|
|
|
|
|
|
PreReq: fileutils
|
|
|
|
PreReq: libxml2 >= 2.4.8
|
|
|
|
# xml-common for /etc/xml
|
|
|
|
PreReq: xml-common
|
2004-09-09 14:48:53 +00:00
|
|
|
BuildRequires: libxml2 >= 2.4.8
|
2004-09-09 14:46:04 +00:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
Source0: http://www.w3.org/TR/xhtml1/xhtml1.tgz
|
|
|
|
BuildRequires: tar
|
|
|
|
|
|
|
|
%description
|
|
|
|
This provides the DTDs of the Second Edition of XHTML 1.0, a reformulation
|
|
|
|
of HTML 4 as an XML 1.0 application, and three DTDs corresponding to the
|
|
|
|
ones defined by HTML 4. The semantics of the elements and their attributes
|
|
|
|
are defined in the W3C Recommendation for HTML 4. These semantics provide
|
|
|
|
the foundation for future extensibility of XHTML.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -T
|
|
|
|
tar xvzf %{SOURCE0}
|
|
|
|
if [ `id -u` -eq 0 ]; then
|
2004-09-09 14:48:53 +00:00
|
|
|
chown -R root:root .
|
2004-09-09 14:46:04 +00:00
|
|
|
chmod -R a+rX,g-w,o-w .
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# XHTML 1.0 2nd edition
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/xhtml1/xhtml1-20020801/DTD
|
|
|
|
mkdir -p $DESTDIR
|
|
|
|
install xhtml1-20020801/DTD/*.dtd $DESTDIR
|
|
|
|
install xhtml1-20020801/DTD/*.ent $DESTDIR
|
|
|
|
|
|
|
|
##
|
|
|
|
## Create the XHTML1 XML catalog
|
|
|
|
##
|
|
|
|
|
|
|
|
CATALOG=$RPM_BUILD_ROOT/usr/share/sgml/xhtml1/xmlcatalog
|
|
|
|
|
|
|
|
/usr/bin/xmlcatalog --noout --create $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "public" \
|
|
|
|
"-//W3C//DTD XHTML 1.0 Strict//EN" \
|
|
|
|
"xhtml1-20020801/DTD/xhtml1-strict.dtd" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "public" \
|
|
|
|
"-//W3C//DTD XHTML 1.0 Transitional//EN" \
|
|
|
|
"xhtml1-20020801/DTD/xhtml1-transitional.dtd" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "public" \
|
|
|
|
"-//W3C//DTD XHTML 1.0 Frameset//EN" \
|
|
|
|
"xhtml1-20020801/DTD/xhtml1-frameset.dtd" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD" \
|
|
|
|
"xhtml1-20020801/DTD" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD" \
|
|
|
|
"xhtml1-20020801/DTD" $CATALOG
|
|
|
|
|
2004-09-09 14:48:47 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2004-09-09 14:46:04 +00:00
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
|
|
|
/usr/share/sgml/xhtml1
|
|
|
|
|
|
|
|
%post
|
|
|
|
CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
|
|
|
|
#
|
|
|
|
# Register it in the super catalog with the appropriate delegates
|
|
|
|
#
|
|
|
|
ROOTCATALOG=/etc/xml/catalog
|
|
|
|
|
|
|
|
if [ ! -r $ROOTCATALOG ]
|
|
|
|
then
|
|
|
|
/usr/bin/xmlcatalog --noout --create $ROOTCATALOG
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -w $ROOTCATALOG ]
|
|
|
|
then
|
|
|
|
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
|
|
|
|
"-//W3C//DTD XHTML 1.0" \
|
|
|
|
"file://$CATALOG" $ROOTCATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "delegateSystem" \
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD" \
|
|
|
|
"file://$CATALOG" $ROOTCATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "delegateURI" \
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD" \
|
|
|
|
"file://$CATALOG" $ROOTCATALOG
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
#
|
|
|
|
# On removal, unregister the xmlcatalog from the supercatalog
|
|
|
|
#
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
|
|
|
|
ROOTCATALOG=/etc/xml/catalog
|
|
|
|
|
|
|
|
if [ -w $ROOTCATALOG ]
|
|
|
|
then
|
|
|
|
/usr/bin/xmlcatalog --noout --del \
|
|
|
|
"-//W3C//DTD XHTML 1.0" $ROOTCATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --del \
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD" $ROOTCATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --del \
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD" $ROOTCATALOG
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 14:48:53 +00:00
|
|
|
* Wed Jun 2 2004 Daniel Veillard <veillard@redhat.com> 1.0-7
|
|
|
|
- add BuildRequires: libxml2, fixes 125030
|
|
|
|
|
|
|
|
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Use ':' instead of '.' as separator for chown.
|
|
|
|
|
2004-09-09 14:48:47 +00:00
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Oct 21 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- add %%clean specfile target
|
|
|
|
|
2004-09-09 14:46:04 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Dec 13 2002 Daniel Veillard <veillard@redhat.com> 1.0-4
|
|
|
|
Prepare for inclusion, Prereq xml-common, fix the uninstall
|
|
|
|
for upgrades of the package
|
|
|
|
|
|
|
|
* Thu Dec 12 2002 Daniel Veillard <veillard@redhat.com> 1.0-1
|
|
|
|
Creation, based on Tim Waugh docbook-dtd package
|