[python-webassets] update to 0.7.1, drop jsmin.py (non-free)

Tom Callaway spot at fedoraproject.org
Wed Aug 8 14:50:39 UTC 2012


commit 7cf6e4b327ed7999093111e66fc02c5c35b176d2
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Wed Aug 8 10:50:59 2012 -0400

    update to 0.7.1, drop jsmin.py (non-free)

 .gitignore            |    1 +
 python-webassets.spec |   20 ++++++++++++++------
 sources               |    2 +-
 3 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index de3bd5d..8ab4f58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /webassets-0.5.tar.gz
 /webassets-0.7.tar.gz
+/webassets-0.7.1-clean.tar.gz
diff --git a/python-webassets.spec b/python-webassets.spec
index 2cc58b6..5803592 100644
--- a/python-webassets.spec
+++ b/python-webassets.spec
@@ -1,15 +1,20 @@
 %global mod_name webassets
 
 Name:           python-webassets
-Version:        0.7
-Release:        2%{?dist}
+Version:        0.7.1
+Release:        1%{?dist}
 Summary:        Media asset management for python
-
 Group:          Development/Libraries
 License:        BSD
 URL:            http://github.com/miracle2k/%{mod_name}
-Source0:        http://pypi.python.org/packages/source/w/%{mod_name}/%{mod_name}-%{version}.tar.gz
-
+# Because jsmin.py is non-free, we have to make a "clean" source tarball.
+# First, get the original source:
+# Source0:      http://pypi.python.org/packages/source/w/%{mod_name}/%{mod_name}-%{version}.tar.gz
+# Then, unpack it, and delete src/webassets/filter/jsmin/jsmin.py
+# tar xf %{mod_name}-%{version}.tar.gz
+# rm -rf %{mod_name}-%{version}/src/webassets/filter/jsmin/jsmin.py
+# tar cfz %{mod_name}-%{version}-clean.tar.gz %{mod_name}-%{version}
+Source0:        %{mod_name}-%{version}-clean.tar.gz
 BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -29,7 +34,7 @@ sed -i "s|\r||g" docs/Makefile
 sed -i "s|\r||g" docs/make.bat
 sed -i "s|\r||g" docs/django/jinja2.rst
 sed -i "s|\r||g" docs/faq.rst
-sed -i -e '/^#!\//, 1d' src/webassets/filter/jsmin/jsmin.py
+# sed -i -e '/^#!\//, 1d' src/webassets/filter/jsmin/jsmin.py
 
 rm -f src/django_assets/models.py
 
@@ -48,6 +53,9 @@ sed -i -e '/^#!\//, 1d' $RPM_BUILD_ROOT%{python_sitelib}/%{mod_name}/filter/rjsm
 %{python_sitelib}/%{mod_name}/
 
 %changelog
+* Wed Aug  8 2012 Tom Callaway <spot at fedoraproject.org> - 0.7.1-1
+- 0.7.1 (cleaned out jsmin.py)
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index eab860d..3c59d76 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-782d787fb5afa5d6dcda242bfa2e3d5f  webassets-0.7.tar.gz
+548e2a4125a11c0bf30398357059a725  webassets-0.7.1-clean.tar.gz


More information about the scm-commits mailing list