Compare commits
10 Commits
5b58ac2503
...
a36972de24
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a36972de24 | ||
|
|
ed1c070ec8 | ||
|
|
82aab242af | ||
|
|
7648fca8f9 | ||
|
|
53ce722ae3 | ||
|
|
1c518b8109 | ||
|
|
924c374bc2 | ||
|
|
0dd0adbbde | ||
|
|
211b822598 | ||
|
|
4ab8776f83 |
29
xhtml1-dtds-sgml-catalog.patch
Normal file
29
xhtml1-dtds-sgml-catalog.patch
Normal file
@ -0,0 +1,29 @@
|
||||
--- xhtml1-20020801/DTD/xhtml.soc~ 2002-08-01 21:23:08.000000000 +0300
|
||||
+++ xhtml1-20020801/DTD/xhtml.soc 2004-06-20 01:13:52.351585517 +0300
|
||||
@@ -1,14 +1,24 @@
|
||||
-OVERRIDE YES
|
||||
-- Oasis entity catalog for Extensible HTML 1.0 --
|
||||
|
||||
+-- Fedora change: use DTDDECLs instead of SGMLDECL to avoid affecting --
|
||||
+-- other things included in the central system catalog --
|
||||
+
|
||||
+OVERRIDE YES
|
||||
+
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd"
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd"
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "xhtml1-frameset.dtd"
|
||||
+DTDDECL "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1.dcl"
|
||||
+DTDDECL "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1.dcl"
|
||||
+DTDDECL "-//W3C//DTD XHTML 1.0 Frameset//EN" "xhtml1.dcl"
|
||||
|
||||
-- ISO latin 1 entity set for Extensible HTML (XML 1.0 format) --
|
||||
|
||||
PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent"
|
||||
PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent"
|
||||
PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent"
|
||||
+DTDDECL "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml1.dcl"
|
||||
+DTDDECL "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml1.dcl"
|
||||
+DTDDECL "-//W3C//ENTITIES Special for XHTML//EN" "xhtml1.dcl"
|
||||
|
||||
-SGMLDECL "xhtml1.dcl"
|
||||
+-- SGMLDECL "xhtml1.dcl" --
|
||||
22
xhtml1-dtds-sgml-dcl.patch
Normal file
22
xhtml1-dtds-sgml-dcl.patch
Normal file
@ -0,0 +1,22 @@
|
||||
Changes from validator.w3.org's xml.dcl.
|
||||
|
||||
diff -up xhtml1-20020801/DTD/xhtml1.dcl.orig xhtml1-20020801/DTD/xhtml1.dcl
|
||||
--- xhtml1-20020801/DTD/xhtml1.dcl.orig 2002-08-01 21:23:08.000000000 +0300
|
||||
+++ xhtml1-20020801/DTD/xhtml1.dcl 2008-02-28 22:43:22.000000000 +0200
|
||||
@@ -22,13 +22,13 @@
|
||||
13 1 13
|
||||
14 18 UNUSED
|
||||
32 95 32
|
||||
- 127 1 UNUSED
|
||||
- 128 32 UNUSED
|
||||
+ 127 1 127 -- DEL, legal in XML 1.0 --
|
||||
+ 128 32 128 -- C1 controls, legal in XML 1.0 --
|
||||
160 55136 160
|
||||
55296 2048 UNUSED -- surrogates --
|
||||
57344 8190 57344
|
||||
65534 2 UNUSED -- FFFE and FFFF --
|
||||
- 65536 1048576 65536
|
||||
+ 65536 1048576 65536 -- 16 planes outside BMP --
|
||||
|
||||
CAPACITY NONE -- Capacities are not restricted in XML --
|
||||
|
||||
14
xhtml1-dtds.catalog.xml
Normal file
14
xhtml1-dtds.catalog.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
|
||||
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
|
||||
<public publicId="-//W3C//DTD XHTML 1.0 Strict//EN" uri="xhtml1-strict.dtd"/>
|
||||
<public publicId="-//W3C//DTD XHTML 1.0 Transitional//EN" uri="xhtml1-transitional.dtd"/>
|
||||
<public publicId="-//W3C//DTD XHTML 1.0 Frameset//EN" uri="xhtml1-frameset.dtd"/>
|
||||
<public publicId="-//W3C//ENTITIES Latin 1 for XHTML//EN" uri="xhtml-lat1.ent"/>
|
||||
<public publicId="-//W3C//ENTITIES Special for XHTML//EN" uri="xhtml-special.ent"/>
|
||||
<public publicId="-//W3C//ENTITIES Symbols for XHTML//EN" uri="xhtml-symbol.ent"/>
|
||||
<rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="./" />
|
||||
<rewriteSystem systemIdStartString="http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" rewritePrefix="./" />
|
||||
<rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="./" />
|
||||
<rewriteURI uriStartString="http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" rewritePrefix="./" />
|
||||
</catalog>
|
||||
94
xhtml1-dtds.spec
Normal file
94
xhtml1-dtds.spec
Normal file
@ -0,0 +1,94 @@
|
||||
#Basic Information
|
||||
Name: xhtml1-dtds
|
||||
Version: 1.0
|
||||
Release: 20020801.17
|
||||
Summary: Definitions for XHTML 1.0 document type
|
||||
License: W3C
|
||||
URL: http://www.w3.org/TR/2002/REC-xhtml1-20020801/
|
||||
Source0: http://www.w3.org/TR/2002/REC-xhtml1-20020801/xhtml1.tgz
|
||||
Source1: xhtml1-dtds.catalog.xml
|
||||
Patch0000: xhtml1-dtds-sgml-catalog.patch
|
||||
Patch0001: xhtml1-dtds-sgml-dcl.patch
|
||||
BuildArch: noarch
|
||||
|
||||
#Dependency
|
||||
BuildRequires: libxml2 >= 2.4.8
|
||||
Requires: libxml2 >= 2.4.8 xml-common sgml-common
|
||||
Requires(post): libxml2
|
||||
Requires(preun): libxml2
|
||||
|
||||
%description
|
||||
These DTDs and entity sets form a normative part of this specification.
|
||||
The complete set of DTD files together with an XML declaration and SGML
|
||||
Open Catalog is included in the zip file and the gzip'd tar file for this
|
||||
specification. Users looking for local copies of the DTDs to work with
|
||||
should download and use those archives rather than using the specific
|
||||
DTDs referenced below.
|
||||
|
||||
#Build sections
|
||||
%prep
|
||||
%autosetup -n xhtml1-20020801 -p1
|
||||
cp -p %{SOURCE1} DTD/catalog.xml
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d $RPM_BUILD_ROOT%{_datadir}/xml/xhtml/1.0
|
||||
cp -p DTD/* $RPM_BUILD_ROOT%{_datadir}/xml/xhtml/1.0
|
||||
|
||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/xml
|
||||
xmlcatalog --noout --create $RPM_BUILD_ROOT%{_sysconfdir}/xml/xhtml1-dtds-%{version}-%{release}.xml
|
||||
|
||||
for i in "-//W3C//DTD XHTML 1.0 " "-//W3C//ENTITIES Latin 1 for XHTML" "-//W3C//ENTITIES Special for XHTML" \
|
||||
"-//W3C//ENTITIES Symbols for XHTML" ; do
|
||||
xmlcatalog --noout --add "delegatePublic" "$i" file://%{_datadir}/xml/xhtml/1.0/catalog.xml \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/xml/xhtml1-dtds-%{version}-%{release}.xml
|
||||
done
|
||||
|
||||
for i in xhtml1 2002/REC-xhtml1-20020801 ; do
|
||||
xmlcatalog --noout --add "delegateSystem" "http://www.w3.org/TR/$i/DTD/" file://%{_datadir}/xml/xhtml/1.0/catalog.xml \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/xml/xhtml1-dtds-%{version}-%{release}.xml
|
||||
xmlcatalog --noout --add "delegateURI" "http://www.w3.org/TR/$i/DTD/" file://%{_datadir}/xml/xhtml/1.0/catalog.xml \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/xml/xhtml1-dtds-%{version}-%{release}.xml
|
||||
done
|
||||
|
||||
ln -s xhtml1-dtds-%{version}-%{release}.xml $RPM_BUILD_ROOT%{_sysconfdir}/xml/xhtml1-dtds.xml
|
||||
|
||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sgml
|
||||
pushd $RPM_BUILD_ROOT%{_sysconfdir}/sgml
|
||||
touch xhtml1-dtds-%{version}-%{release}.soc
|
||||
ln -s xhtml1-dtds-%{version}-%{release}.soc xhtml1-dtds.soc
|
||||
popd
|
||||
|
||||
#Install and uninstall scripts
|
||||
%post
|
||||
pushd %{_sysconfdir}/xml > /dev/null
|
||||
[ -e catalog ] || xmlcatalog --noout --create catalog
|
||||
xmlcatalog --noout --add nextCatalog xhtml1-dtds-%{version}-%{release}.xml "" catalog >/dev/null
|
||||
popd > /dev/null
|
||||
xmlcatalog --sgml --noout --add %{_sysconfdir}/sgml/xhtml1-dtds-%{version}-%{release}.soc \
|
||||
%{_datadir}/xml/xhtml/1.0/xhtml.soc >/dev/null
|
||||
|
||||
%preun
|
||||
xmlcatalog --noout --del xhtml1-dtds-%{version}-%{release}.xml \
|
||||
%{_sysconfdir}/xml/catalog >/dev/null
|
||||
xmlcatalog --sgml --noout --del %{_sysconfdir}/sgml/xhtml1-dtds-%{version}-%{release}.soc \
|
||||
%{_datadir}/xml/xhtml/1.0/xhtml.soc >/dev/null
|
||||
|
||||
#Files list
|
||||
%files
|
||||
%ghost %{_sysconfdir}/sgml/xhtml1-dtds-%{version}-%{release}.soc
|
||||
%{_sysconfdir}/sgml/xhtml1-dtds.soc
|
||||
%{_sysconfdir}/xml/xhtml1-dtds*.xml
|
||||
%{_datadir}/xml/xhtml/
|
||||
|
||||
%changelog
|
||||
* Wed Nov 25 2020 lingsheng <lingsheng@huawei.com> - 1.0-20020801.17
|
||||
- Disable pushd and popd outputs in post scripts
|
||||
|
||||
* Thu Sep 10 2020 Ge Wang <wangge20@huawei.com> - 1.0-20020801.16
|
||||
- Modify Source0 Url
|
||||
|
||||
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-20020801.15
|
||||
- Package init
|
||||
|
||||
4
xhtml1-dtds.yaml
Normal file
4
xhtml1-dtds.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: http://www.w3.org/TR/2002/REC-xhtml1-20020801/
|
||||
tag_prefix: xhtml1
|
||||
seperator: NA
|
||||
BIN
xhtml1.tgz
Normal file
BIN
xhtml1.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user