- Prune nondistributable content from source tarball.

This commit is contained in:
Ville Skyttä 2009-02-20 21:13:51 +00:00
parent d9745387ff
commit 6e4feded54
4 changed files with 30 additions and 5 deletions

View File

@ -1 +1 @@
xhtml1.tgz xhtml1-dtds-20020801.tar.bz2

View File

@ -1 +1 @@
1fdad567eecb5deb8e32e3892cfe0074 xhtml1.tgz 9ddff78860e395fd4623a4c42db3d497 xhtml1-dtds-20020801.tar.bz2

20
xhtml1-dtds-prepare-tarball.sh Executable file
View File

@ -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

View File

@ -1,8 +1,8 @@
%define date 20020801 %global date 20020801
Name: xhtml1-dtds Name: xhtml1-dtds
Version: 1.0 Version: 1.0
Release: %{date}.2 Release: %{date}.3
Summary: XHTML 1.0 document type definitions Summary: XHTML 1.0 document type definitions
Group: Applications/Text Group: Applications/Text
@ -10,8 +10,10 @@ Group: Applications/Text
# http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD # http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD
License: W3C License: W3C
URL: http://www.w3.org/TR/2002/REC-xhtml1-%{date}/ 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 Source1: %{name}.catalog.xml
Source99: %{name}-prepare-tarball.sh
Patch0: %{name}-sgml-catalog.patch Patch0: %{name}-sgml-catalog.patch
Patch1: %{name}-sgml-dcl.patch Patch1: %{name}-sgml-dcl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -116,6 +118,9 @@ cd - >/dev/null
%changelog %changelog
* Fri Feb 20 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.0-20020801.3
- Prune nondistributable content from source tarball.
* Fri Dec 12 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.0-20020801.2 * Fri Dec 12 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.0-20020801.2
- Drop no longer needed upgrade quirks. - Drop no longer needed upgrade quirks.