[egoboo-data] Switch to using a cleaned tarball

Bruno Wolff III bruno at fedoraproject.org
Tue Mar 13 03:13:04 UTC 2012


commit 3922a6213463956959f329beae8580ad50afb724
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Mon Mar 12 20:58:28 2012 -0500

    Switch to using a cleaned tarball
    
    The upstream tarball had at least one non-free font in it and some PDFs
    under GPL that we might be obligated to provide source for (that we
    don't have).

 .gitignore          |    1 +
 egoboo-data.spec    |   12 +++++++++++-
 generate-tarball.sh |   12 ++++++++++++
 sources             |    2 +-
 4 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e89103e..93c2ca8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 egoboo-data-clean-2.7.5.tar.gz
+/egoboo-clean-2.8.1.tar.gz
diff --git a/egoboo-data.spec b/egoboo-data.spec
index a0128a7..374d421 100644
--- a/egoboo-data.spec
+++ b/egoboo-data.spec
@@ -5,7 +5,16 @@ Summary:        Data files for the Egoboo RPG
 Group:          Amusements/Games
 License:        GPL+
 URL:            http://egoboo.sourceforge.net/
-Source0:        http://downloads.sourceforge.net/egoboo/egoboo-%{version}.tar.gz
+# The upstream tarball contains at least one non-free font and pdf files
+# that we might be obligated to provide source to, so we need to use
+# a tarball with these items removed.
+# The original source is at:
+# http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source0:        %{name}-clean-%{version}.tar.gz
+# The following script is used to make a clean tarball
+# Set the version in the script and then run it
+Source1:        generate-tarball.sh
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  ImageMagick
 BuildArch:      noarch
@@ -81,6 +90,7 @@ fi
 %changelog
 * Sun Mar 11 2012 Bruno Wolff III <bruno at wolff.to> 2.8.1-1
 - Update to upstream 2.8.1
+- Use a cleaned tarball
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.7.5-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/generate-tarball.sh b/generate-tarball.sh
new file mode 100755
index 0000000..a164e6d
--- /dev/null
+++ b/generate-tarball.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Egoboo's standard tar file includes at least one font file that is
+# non-free.
+# It also includes some pdf files that were most likely generated from
+# other sources, not in the tar file and are covered by the GPL.
+
+VERSION=2.8.1
+
+tar xf egoboo-${VERSION}.tar.gz
+find egoboo-${VERSION} \( -name \*.ttf -o -name \*.pdf \) -delete -print
+tar cfz egoboo-clean-${VERSION}.tar.gz egoboo-${VERSION}
diff --git a/sources b/sources
index 1c1c746..3c7e0a5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e6f3130695d297dcd9fe74e50bd59b68  egoboo-2.8.1.tar.gz
+51f5d8d664ac41e6995df03e4f049b2f  egoboo-clean-2.8.1.tar.gz


More information about the scm-commits mailing list