From 6e4feded5441e736736be28b74f513b9ae4860d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 20 Feb 2009 21:13:51 +0000 Subject: [PATCH] - Prune nondistributable content from source tarball. --- .cvsignore | 2 +- sources | 2 +- xhtml1-dtds-prepare-tarball.sh | 20 ++++++++++++++++++++ xhtml1-dtds.spec | 11 ++++++++--- 4 files changed, 30 insertions(+), 5 deletions(-) create mode 100755 xhtml1-dtds-prepare-tarball.sh diff --git a/.cvsignore b/.cvsignore index d58c68e..1046c77 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -xhtml1.tgz +xhtml1-dtds-20020801.tar.bz2 diff --git a/sources b/sources index 77ecf46..322d74c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1fdad567eecb5deb8e32e3892cfe0074 xhtml1.tgz +9ddff78860e395fd4623a4c42db3d497 xhtml1-dtds-20020801.tar.bz2 diff --git a/xhtml1-dtds-prepare-tarball.sh b/xhtml1-dtds-prepare-tarball.sh new file mode 100755 index 0000000..827d47f --- /dev/null +++ b/xhtml1-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 + +# While at it, prune docs as well; the W3C Documentation License is not an +# acceptable one per Fedora licensing guidelines. + +date="20020801" +url="http://www.w3.org/TR/2002/REC-xhtml1-$date/xhtml1.tgz" + +curl -O $url +tar zxf $(basename $url) +find xhtml1-$date -type f | grep -vF /DTD/ | xargs rm +rm $(basename $url) + +tar jcvf xhtml1-dtds-$date.tar.bz2 xhtml1-$date +rm -r xhtml1-$date diff --git a/xhtml1-dtds.spec b/xhtml1-dtds.spec index 0f9a4aa..3c1b714 100644 --- a/xhtml1-dtds.spec +++ b/xhtml1-dtds.spec @@ -1,8 +1,8 @@ -%define date 20020801 +%global date 20020801 Name: xhtml1-dtds Version: 1.0 -Release: %{date}.2 +Release: %{date}.3 Summary: XHTML 1.0 document type definitions Group: Applications/Text @@ -10,8 +10,10 @@ Group: Applications/Text # http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD License: W3C URL: http://www.w3.org/TR/2002/REC-xhtml1-%{date}/ -Source0: http://www.w3.org/TR/2002/REC-xhtml1-%{date}/xhtml1.tgz +# Source0 generated with Source99, see comments in the script +Source0: %{name}-%{date}.tar.bz2 Source1: %{name}.catalog.xml +Source99: %{name}-prepare-tarball.sh Patch0: %{name}-sgml-catalog.patch Patch1: %{name}-sgml-dcl.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -116,6 +118,9 @@ cd - >/dev/null %changelog +* Fri Feb 20 2009 Ville Skyttä - 1.0-20020801.3 +- Prune nondistributable content from source tarball. + * Fri Dec 12 2008 Ville Skyttä - 1.0-20020801.2 - Drop no longer needed upgrade quirks.