[python-fuzzywuzzy] Initial import

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Jun 27 05:40:19 UTC 2012


commit 25183e5e8a61f0cff4805400778960bc0f819cf3
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Jun 27 07:40:13 2012 +0200

    Initial import

 .gitignore             |    1 +
 LICENSE.txt            |   20 ++++++++++++++++
 python-fuzzywuzzy.spec |   58 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..80720b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fuzzywuzzy-0.1.tar.gz
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..3a75b0e
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Adam Cohen
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/python-fuzzywuzzy.spec b/python-fuzzywuzzy.spec
new file mode 100644
index 0000000..125771d
--- /dev/null
+++ b/python-fuzzywuzzy.spec
@@ -0,0 +1,58 @@
+# Created by pyp2rpm-0.5.1
+%global pypi_name fuzzywuzzy
+
+Name:           python-%{pypi_name}
+Version:        0.1
+Release:        2%{?dist}
+Summary:        Fuzzy string matching in Python
+
+License:        MIT
+URL:            https://github.com/seatgeek/fuzzywuzzy/
+Source0:        http://pypi.python.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Already asked upstream to include COPYING in the source tar:
+# https://github.com/seatgeek/fuzzywuzzy/issues/10
+Source1:        https://raw.github.com/seatgeek/fuzzywuzzy/master/LICENSE.txt
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-nose
+
+
+%description
+Fuzzy string matching like a boss.
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+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
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%check
+nosetests
+
+
+%files
+%doc LICENSE.txt
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%changelog
+* Tue Jun 26 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.1-2
+- python-devel should be python2-devel
+- URL now points to the real homepage of the project
+
+* Fri Jun 22 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.1-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..aeddbb5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+84ff57cc660c45128167d1508cd32196  fuzzywuzzy-0.1.tar.gz


More information about the scm-commits mailing list