[python-glue] Initial import (#869020).

Lorenzo Gil Sánchez lgs at fedoraproject.org
Wed Oct 24 18:54:49 UTC 2012


commit a18fb00784a17b176c56210bc326ccaa2bb5c92d
Author: Lorenzo Gil Sanchez <lorenzo.gil.sanchez at gmail.com>
Date:   Wed Oct 24 20:58:54 2012 +0200

    Initial import (#869020).

 .gitignore                                       |    1 +
 python-glue-0.2.7-remove-pillow-dependency.patch |   12 +++++
 python-glue.spec                                 |   54 ++++++++++++++++++++++
 sources                                          |    1 +
 4 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4598f1b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glue-0.2.7.tar.gz
diff --git a/python-glue-0.2.7-remove-pillow-dependency.patch b/python-glue-0.2.7-remove-pillow-dependency.patch
new file mode 100644
index 0000000..1933e49
--- /dev/null
+++ b/python-glue-0.2.7-remove-pillow-dependency.patch
@@ -0,0 +1,12 @@
+--- setup.py.orig	2012-10-22 20:24:13.207639103 +0200
++++ setup.py	2012-10-22 20:24:23.990512955 +0200
+@@ -23,9 +23,6 @@
+                       'sprite.'),
+     py_modules=['glue'],
+     platforms='any',
+-    install_requires=[
+-        'Pillow==1.7.7'
+-    ],
+     classifiers=[
+         'Development Status :: 4 - Beta',
+         'Environment :: Web Environment',
diff --git a/python-glue.spec b/python-glue.spec
new file mode 100644
index 0000000..76e66d9
--- /dev/null
+++ b/python-glue.spec
@@ -0,0 +1,54 @@
+Name:           python-glue
+Version:        0.2.7
+Release:        2%{?dist}
+Summary:        A simple command line tool to generate CSS sprites
+
+License:        BSD
+URL:            http://github.com/jorgebastida/glue
+Source0:        http://pypi.python.org/packages/source/g/glue/glue-0.2.7.tar.gz
+# This patch removes the Pillow dependency since in Fedora we have
+# the python-imaging package which does the same exact thing.
+Patch0:         python-glue-0.2.7-remove-pillow-dependency.patch
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+Requires:       python-imaging
+
+%description
+Glue is a simple command line tool to generate CSS sprites using any kind
+of source images like PNG, JPEG or GIF. Glue will generate a unique PNG file
+containing every source image and a CSS file including the necessary CSS
+classes to use the sprite.
+
+%prep
+%setup -q -n glue-%{version}
+%patch0
+rm -rf glue.egg-info
+# Remove the shebang that set the python executable since that's
+# generated later
+sed -i -e "1d" glue.py
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+ 
+%files
+%doc AUTHORS COPYING docs
+%{_bindir}/glue
+%{python_sitelib}/glue.py
+%{python_sitelib}/glue.pyc
+%{python_sitelib}/glue.pyo
+%{python_sitelib}/glue-%{version}-py?.?.egg-info
+
+
+%changelog
+* Tue Oct 23 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez at gmail.com> - 0.2.7-2
+- Remove the shebang part of the glue.py script
+- Remove the glue.egg-info directory in the prep section
+- Remove the 'rm -rf $RPM_BUILD_ROOT' in the install section
+* Mon Oct 22 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez at gmail.com> - 0.2.7-1
+- New package.
diff --git a/sources b/sources
index e69de29..ebbf9e4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b1fce26f963671bc69402d8d144c9482  glue-0.2.7.tar.gz


More information about the scm-commits mailing list