[fontdump/el6] Update to new upstream 1.3.0 release

Parag Nemade pnemade at fedoraproject.org
Tue Nov 25 09:57:55 UTC 2014


commit 9dd25101c5ac278d82cbf446411bbe71f515681c
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Nov 25 15:27:49 2014 +0530

    Update to new upstream 1.3.0 release

 .gitignore    |    1 +
 fontdump.spec |   20 ++++++++++++++------
 sources       |    2 +-
 3 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3a89c2f..5e2af5f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /fontdump-1.2.1.tar.gz
+/fontdump-1.3.0.tar.gz
diff --git a/fontdump.spec b/fontdump.spec
index bbed6b4..d7895dc 100644
--- a/fontdump.spec
+++ b/fontdump.spec
@@ -1,5 +1,10 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
 Name:           fontdump
-Version:        1.2.1
+Version:        1.3.0
 Release:        1%{?dist}
 Summary:        Dump the CSS and different formats of fonts for Google Fonts
 
@@ -22,21 +27,24 @@ rm -rf *.egg-info
 
 sed -i -e '/^#!\//, 1d' fontdump/cli.py fontdump/core.py
 
-find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
 
 %build
-%{__python} setup.py build
+%{__python2} setup.py build
 
 %install
-%{__python} setup.py install --skip-build --root=%{buildroot}
+%{__python2} setup.py install --skip-build --root=%{buildroot}
 
 %files
 %doc PKG-INFO LICENSE
 %{_bindir}/%{name}
-%{python_sitelib}/%{name}/
-%{python_sitelib}/%{name}-%{version}-py2.*.egg-info
+%{python2_sitelib}/%{name}/
+%{python2_sitelib}/%{name}-%{version}-py2.*.egg-info
 
 %changelog
+* Tue Nov 25 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.3.0-1
+- Update to new upstream 1.3.0 release
+
 * Thu Oct 30 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.2.1-1
 - Update to new upstream 1.2.1 release
 
diff --git a/sources b/sources
index f348558..e5e83ce 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c670187c2635a136f4bfc3c52549491c  fontdump-1.2.1.tar.gz
+aa94618ad93b2d05b4110b9a390d8651  fontdump-1.3.0.tar.gz


More information about the scm-commits mailing list