[python-fuzzywuzzy] Updated to 0.2

Bohuslav Kabrda bkabrda at fedoraproject.org
Tue May 13 11:48:55 UTC 2014


commit 457e879ccd0e809f1babb4dd6356a2e44d636244
Author: Slavek Kabrda <bkabrda at redhat.com>
Date:   Tue May 13 13:48:42 2014 +0200

    Updated to 0.2
    
    - Introduced python3 subpackage
    - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4

 .gitignore             |    1 +
 python-fuzzywuzzy.spec |   55 +++++++++++++++++++++++++++++++++++++++++-------
 sources                |    2 +-
 3 files changed, 49 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 80720b9..79da3ab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /fuzzywuzzy-0.1.tar.gz
+/fuzzywuzzy-0.2.tar.gz
diff --git a/python-fuzzywuzzy.spec b/python-fuzzywuzzy.spec
index 2c702b9..590cafa 100644
--- a/python-fuzzywuzzy.spec
+++ b/python-fuzzywuzzy.spec
@@ -1,9 +1,10 @@
 # Created by pyp2rpm-0.5.1
 %global pypi_name fuzzywuzzy
+%global with_python3 1
 
 Name:           python-%{pypi_name}
-Version:        0.1
-Release:        5%{?dist}
+Version:        0.2
+Release:        1%{?dist}
 Summary:        Fuzzy string matching in Python
 
 License:        MIT
@@ -15,12 +16,23 @@ Source1:        https://raw.github.com/seatgeek/fuzzywuzzy/master/LICENSE.txt
 BuildArch:      noarch
  
 BuildRequires:  python2-devel
-BuildRequires:  python-nose
+
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+%endif
 
 
 %description
 Fuzzy string matching like a boss.
 
+%if 0%{?with_python3}
+%package -n python3-fuzzywuzzy
+Summary:        Fuzzy string matching in Python
+
+%description -n python3-fuzzywuzzy
+Fuzzy string matching like a boss. Python 3 build of fuzzywuzzy.
+%endif
+
 
 %prep
 %setup -q -n %{pypi_name}-%{version}
@@ -28,20 +40,33 @@ cp %{SOURCE1} .
 # these scripts shouldn't be executable
 sed -i '1d' %{pypi_name}/fuzz.py
 sed -i '1d' %{pypi_name}/process.py
-# remove unneeded empty file
-rm %{pypi_name}/benchmarks.py
+sed -i '1d' %{pypi_name}/StringMatcher.py
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
 
 
 %build
 %{__python} setup.py build
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
 
 %install
 %{__python} setup.py install --skip-build --root %{buildroot}
 
-
-%check
-nosetests
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
 
 
 %files
@@ -49,7 +74,21 @@ nosetests
 %{python_sitelib}/%{pypi_name}
 %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
 
+
+%if 0%{?with_python3}
+%files -n python3-fuzzywuzzy
+%doc LICENSE.txt
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%endif # with_python3
+
+
 %changelog
+* Tue May 13 2014 Bohuslav Kabrda <bkabrda at redhat.com> - 0.2-1
+- Updated to 0.2
+- Introduced python3 subpackage
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index aeddbb5..76107ca 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-84ff57cc660c45128167d1508cd32196  fuzzywuzzy-0.1.tar.gz
+653da0dc7166d543f328df6a0e9074a0  fuzzywuzzy-0.2.tar.gz


More information about the scm-commits mailing list