From 829ff9b7fc9a7150befcabe5c1d6dc82e287ac9c Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 5 Nov 2020 11:16:26 -0500 Subject: [PATCH] Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: David Cantrell --- .cvsignore | 0 .gitignore | 1 + Makefile | 21 ---- html401-dtds-catalog.patch | 49 +++++++++ html401-dtds-prepare-tarball.sh | 20 ++++ html401-dtds.spec | 182 ++++++++++++++++++++++++++++++++ sources | 1 + 7 files changed, 253 insertions(+), 21 deletions(-) delete mode 100644 .cvsignore create mode 100644 .gitignore delete mode 100644 Makefile create mode 100644 html401-dtds-catalog.patch create mode 100755 html401-dtds-prepare-tarball.sh create mode 100644 html401-dtds.spec diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6166027 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/html401-dtds-19991224.tar.bz2 diff --git a/Makefile b/Makefile deleted file mode 100644 index e377e9f..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: html401-dtds -# $Id$ -NAME := html401-dtds -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/html401-dtds-catalog.patch b/html401-dtds-catalog.patch new file mode 100644 index 0000000..cf2447b --- /dev/null +++ b/html401-dtds-catalog.patch @@ -0,0 +1,49 @@ +diff -up html401-dtds/HTML4.cat.orig html401-dtds/HTML4.cat +--- html401-dtds/HTML4.cat.orig 1999-12-25 01:26:00.000000000 +0200 ++++ html401-dtds/HTML4.cat 2011-12-02 00:34:21.235252388 +0200 +@@ -6,3 +6,45 @@ PUBLIC "-//W3C//DTD HTML 4.01 Frameset// + PUBLIC "-//W3C//ENTITIES Latin1//EN//HTML" HTMLlat1.ent + PUBLIC "-//W3C//ENTITIES Special//EN//HTML" HTMLspecial.ent + PUBLIC "-//W3C//ENTITIES Symbols//EN//HTML" HTMLsymbol.ent ++ ++-- Fedora modification: added SYSTEMs -- ++ ++SYSTEM "http://www.w3.org/TR/html4/strict.dtd" "strict.dtd" ++SYSTEM "http://www.w3.org/TR/html4/loose.dtd" "loose.dtd" ++SYSTEM "http://www.w3.org/TR/html4/frameset.dtd" "frameset.dtd" ++SYSTEM "http://www.w3.org/TR/html4/HTMLlat1.ent" "HTMLlat1.ent" ++SYSTEM "http://www.w3.org/TR/html4/HTMLsymbol.ent" "HTMLsymbol.ent" ++SYSTEM "http://www.w3.org/TR/html4/HTMLspecial.ent" "HTMLspecial.ent" ++SYSTEM "http://www.w3.org/TR/html401/strict.dtd" "strict.dtd" ++SYSTEM "http://www.w3.org/TR/html401/loose.dtd" "loose.dtd" ++SYSTEM "http://www.w3.org/TR/html401/frameset.dtd" "frameset.dtd" ++SYSTEM "http://www.w3.org/TR/html401/HTMLlat1.ent" "HTMLlat1.ent" ++SYSTEM "http://www.w3.org/TR/html401/HTMLsymbol.ent" "HTMLsymbol.ent" ++SYSTEM "http://www.w3.org/TR/html401/HTMLspecial.ent" "HTMLspecial.ent" ++SYSTEM "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd" "strict.dtd" ++SYSTEM "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd" "loose.dtd" ++SYSTEM "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd" "frameset.dtd" ++SYSTEM "http://www.w3.org/TR/1999/REC-html401-19991224/HTMLlat1.ent" "HTMLlat1.ent" ++SYSTEM "http://www.w3.org/TR/1999/REC-html401-19991224/HTMLsymbol.ent" "HTMLsymbol.ent" ++SYSTEM "http://www.w3.org/TR/1999/REC-html401-19991224/HTMLspecial.ent" "HTMLspecial.ent" ++ ++-- Fedora modification: added DTDDECLs -- ++ ++DTDDECL "-//W3C//DTD HTML 4.01//EN" "HTML4.decl" ++DTDDECL "-//W3C//DTD HTML 4.01 Transitional//EN" "HTML4.decl" ++DTDDECL "-//W3C//DTD HTML 4.01 Frameset//EN" "HTML4.decl" ++DTDDECL "-//W3C//ENTITIES Latin1//EN//HTML" "HTML4.decl" ++DTDDECL "-//W3C//ENTITIES Special//EN//HTML" "HTML4.decl" ++DTDDECL "-//W3C//ENTITIES Symbols//EN//HTML" "HTML4.decl" ++ ++-- Fedora modification: added additional public id "aliases" defined in ++ ISO-HTML Annex B, http://purl.org/NET/ISO+IEC.15445/Users-Guide.html#DTD -- ++ ++PUBLIC "-//W3C//ENTITIES Latin alphabet No. 1//EN//HTML" "HTMLlat1.ent" ++PUBLIC "-//W3C//ENTITIES Full Latin 1//EN//HTML" "HTMLlat1.ent" ++PUBLIC "-//W3C//ENTITIES Latin 1//EN//HTML" "HTMLlat1.ent" ++PUBLIC "-//W3C//ENTITIES Symbolic//EN//HTML" "HTMLsymbol.ent" ++DTDDECL "-//W3C//ENTITIES Latin alphabet No. 1//EN//HTML" "HTML4.decl" ++DTDDECL "-//W3C//ENTITIES Full Latin 1//EN//HTML" "HTML4.decl" ++DTDDECL "-//W3C//ENTITIES Latin 1//EN//HTML" "HTML4.decl" ++DTDDECL "-//W3C//ENTITIES Symbolic//EN//HTML" "HTML4.decl" diff --git a/html401-dtds-prepare-tarball.sh b/html401-dtds-prepare-tarball.sh new file mode 100755 index 0000000..36948c5 --- /dev/null +++ b/html401-dtds-prepare-tarball.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +# Prune content from upstream tarball: +# https://www.redhat.com/archives/fedora-legal-list/2009-February/msg00015.html + +date="19991224" +url="http://www.w3.org/TR/1999/REC-html401-$date/html40.tgz" + +mkdir html401-dtds +cd html401-dtds + +curl -O $url +tar zxf $(basename $url) +rm -r $(find . -maxdepth 1 -mindepth 1 -type d) $(basename $url) + +cd .. +tar jcvf html401-dtds-$date.tar.bz2 html401-dtds +rm -r html401-dtds diff --git a/html401-dtds.spec b/html401-dtds.spec new file mode 100644 index 0000000..1295c32 --- /dev/null +++ b/html401-dtds.spec @@ -0,0 +1,182 @@ +# Note to self: like is with the HTML 2.0 and 3.2 DTDs, HTML 4.0 and 4.01 +# have the same public id to their ENTITIES files. They are not exactly the +# same in 4.0 and 4.01, but the changes are in comments only, so no need +# use a hardcoded system id. Well, until something installs another, and +# incompatible set of entities using the same public id anyway... + +%define date 19991224 + +Name: html401-dtds +Version: 4.01 +Release: %{date}.12%{?dist}.15 +Summary: HTML 4.01 document type definitions + +# W3C Software License for DTDs etc: +# http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD +License: W3C +URL: http://www.w3.org/TR/1999/REC-html401-%{date}/ +# Source0 generated with Source99, see comments in the script +Source0: %{name}-%{date}.tar.bz2 +Source99: %{name}-prepare-tarball.sh +Patch0: %{name}-catalog.patch + +BuildArch: noarch +Requires: sgml-common +Requires(post): /usr/bin/install-catalog +Requires(preun): /usr/bin/install-catalog + +%description +This package provides the three HTML 4.01 DTDs (strict, frameset, and +transitional). The DTDs are required for processing HTML 4.01 +document instances using SGML tools such as OpenSP, OpenJade, or +SGMLSpm. + + +%prep +%setup -q -n %{name} +%patch0 -p1 + + +%build + + +%install + +install -dm 755 $RPM_BUILD_ROOT%{_datadir}/sgml/html/4.01 +install -pm 644 *.dtd *.cat *.ent *.decl \ + $RPM_BUILD_ROOT%{_datadir}/sgml/html/4.01 + +install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/sgml +cd $RPM_BUILD_ROOT%{_sysconfdir}/sgml +touch %{name}-%{version}-%{release}.soc +ln -s %{name}-%{version}-%{release}.soc %{name}.soc +cd - + + +%post +/usr/bin/install-catalog --add \ + %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \ + %{_datadir}/sgml/html/4.01/HTML4.cat >/dev/null + +%preun +/usr/bin/install-catalog --remove \ + %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \ + %{_datadir}/sgml/html/4.01/HTML4.cat >/dev/null || : + + +%files +%ghost %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc +%{_sysconfdir}/sgml/%{name}.soc +%{_datadir}/sgml/html/ + + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 4.01-19991224.12.15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 4.01-19991224.12.14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 4.01-19991224.12.13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 4.01-19991224.12.12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 4.01-19991224.12.11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 4.01-19991224.12.10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 4.01-19991224.12.9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 4.01-19991224.12.8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 4.01-19991224.12.7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 4.01-19991224.12.6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 4.01-19991224.12.5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 4.01-19991224.12.4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 4.01-19991224.12.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 4.01-19991224.12.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 4.01-19991224.12.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Dec 1 2011 Ville Skyttä - 4.01-19991224.12 +- Add system entries to catalog. +- Drop specfile constructs no longer needed with Fedora or EL6+. + +* Wed Feb 09 2011 Fedora Release Engineering - 4.01-19991224.11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 4.01-19991224.10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 4.01-19991224.9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Ville Skyttä - 4.01-19991224.8 +- Prune nondistributable content from source tarball. + +* Mon Aug 13 2007 Ville Skyttä - 4.01-19991224.5 +- Don't use %%{dist}. + +* Mon Aug 13 2007 Ville Skyttä - 4.01-19991224.4 +- Don't ship the docs, the W3C Documentation License is not an acceptable + one per Fedora licensing guidelines. +- License: W3C + +* Fri Sep 15 2006 Ville Skyttä - 4.01-19991224.3 +- Rebuild. + +* Tue Jun 20 2006 Ville Skyttä - 4.01-19991224.2 +- Require install-catalog at post-install and pre-uninstall time (#181068). + +* Sun Jun 18 2006 Ville Skyttä - 4.01-19991224.1 +- Include specification date in release field (#181068). +- Make doc symlinks relative. + +* Sat Feb 25 2006 Ville Skyttä - 4.01-0.3 +- Improve description (#181068). +- Fold specification into main package as %%doc (#181068). + +* Wed Jun 15 2005 Ville Skyttä - 4.01-0.2 +- Rebuild for FC4. + +* Sat Apr 16 2005 Ville Skyttä - 4.01-0.1 +- Use -maxdepth before other options to find(1). + +* Tue Jun 22 2004 Ville Skyttä - 0:4.01-0.fdr.6 +- Move files below %%{_datadir}/sgml/html/4.01, remove alternatives. +- Add non-versioned %%{_sysconfdir}/sgml/%%{name}.soc symlink. + +* Sun Jun 20 2004 Ville Skyttä - 0:4.01-0.fdr.5 +- Add additional public id "aliases" for entities to SGML catalog as defined + in ISO-HTML Annex B, http://purl.org/NET/ISO+IEC.15445/Users-Guide.html#DTD + +* Sat Jun 19 2004 Ville Skyttä - 0:4.01-0.fdr.4 +- Add DTDDECLs to SGML catalog. + +* Sun Dec 7 2003 Ville Skyttä - 0:4.01-0.fdr.3 +- Use alternatives to install preferred HTML DTD location. + +* Sat Dec 6 2003 Ville Skyttä - 0:4.01-0.fdr.2 +- Install dir directly under %%{_datadir}/sgml. +- Spec cleanups. + +* Tue Dec 2 2003 Ville Skyttä - 0:4.01-0.fdr.1 +- First build. diff --git a/sources b/sources index e69de29..01eb1b6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (html401-dtds-19991224.tar.bz2) = 091f1a02b2dcd7300f309cf848abf4283a98f513f1c5a267fce1c8fe723f5bb047108782e49edb47508a460e3022af71fb428fe2e6109e6f3c596f1b94cfb4c2