[python-yenc] Bump to latest upstream

konradm konradm at fedoraproject.org
Tue Dec 10 13:21:01 UTC 2013


commit 03a17865c5410533022a4917df9b37cfd0398882
Author: Conrad Meyer <cse.cem at gmail.com>
Date:   Tue Dec 10 08:09:02 2013 -0500

    Bump to latest upstream
    
    - Drop define of python_sitearch; isn't needed in Fedora
    - Use __python2 macro instead of __python

 .gitignore                 |    1 +
 python-yenc-0.3-fixes.diff |   78 --------------------------------------------
 python-yenc.spec           |   26 ++++++++-------
 sources                    |    2 +-
 4 files changed, 16 insertions(+), 91 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 376906f..4691a7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 yenc-0.3.tar.gz
+/0.4.0.tar.bz2
diff --git a/python-yenc.spec b/python-yenc.spec
index 222db2f..3675599 100644
--- a/python-yenc.spec
+++ b/python-yenc.spec
@@ -1,15 +1,13 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%global yenc_hash ee6b73a5b14f
 
 Name:           python-yenc
-Version:        0.3
-Release:        14%{?dist}
+Version:        0.4.0
+Release:        1%{?dist}
 Summary:        yEnc Module for Python
 Group:          Development/Languages
 License:        GPLv2+
-URL:            http://www.hellanzb.com/trac/
-Source0:        http://www.hellanzb.com/hellanzb-content/yenc-%{version}.tar.gz
-# Fix some minor bugs (#800187):
-Patch0:         python-yenc-0.3-fixes.diff
+URL:            https://bitbucket.org/dual75/yenc
+Source0:        https://bitbucket.org/dual75/yenc/get/%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools-devel
@@ -21,22 +19,21 @@ in messages on Usenet or via e-mail.
 
 
 %prep
-%setup -q -n yenc-%{version}
-%patch0 -p1
+%setup -q -n dual75-yenc-%{yenc_hash}
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
+CFLAGS="$RPM_OPT_FLAGS" %{__python2} -c 'import setuptools; execfile("setup.py")' build
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python2} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root $RPM_BUILD_ROOT
 chmod g-w $RPM_BUILD_ROOT/%{python_sitearch}/_yenc.so
 
 
 %check
-PYTHONPATH="$PYTHONPATH:$RPM_BUILD_ROOT/%{python_sitearch}" %{__python} test/test.py
+PYTHONPATH="$PYTHONPATH:$RPM_BUILD_ROOT/%{python_sitearch}" %{__python2} test/test.py
 
  
 %clean
@@ -50,6 +47,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Dec 10 2013 Conrad Meyer <cemeyer at uw.edu> - 0.4.0-1
+- Bump to latest upstream
+- Drop define of python_sitearch; isn't needed in Fedora
+- Use __python2 macro instead of __python
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 60b80f7..285cd69 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7b3edd32db6c1ce566ad550e3de64c83  yenc-0.3.tar.gz
+60e1a535b0e0c865c2cc4e7ddf18d9a4  0.4.0.tar.bz2


More information about the scm-commits mailing list