From c419a8b05298bccb3a2540af04124a8a2e7896f9 Mon Sep 17 00:00:00 2001 From: David Shea Date: Nov 13 2015 14:47:30 +0000 Subject: - Update %check to use python 3.5 - Switched to the new packaging guidelines which renames python-inflect to python2-inflect --- diff --git a/python-inflect.spec b/python-inflect.spec index 0f7e18b..a04aab8 100644 --- a/python-inflect.spec +++ b/python-inflect.spec @@ -1,21 +1,44 @@ -Name: python-inflect +%global srcname inflect +Name: python-%{srcname} Version: 0.2.5 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Correctly generate plurals, singular nouns, ordinals and indefinite articles License: AGPLv3+ -URL: https://pypi.python.org/pypi/inflect -Source0: https://pypi.python.org/packages/source/i/inflect/inflect-%{version}.tar.gz +URL: https://pypi.python.org/pypi/%{srcname} +Source0: https://pypi.python.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch +%description +The methods of the class 'engine' in module 'inflect.py' provide plural +inflections, singular noun inflections, "a"/"an" selection for English words, +and manipulation of numbers as words. + +Plural forms of all nouns, most verbs, and some adjectives are provided. Where +appropriate, "classical" variants (for example: "brother" -> "brethren", +"dogma" -> "dogmata", etc.) are also provided. + +Single forms of nouns are also provided. The gender of singular pronouns can be +chosen (for example "they" -> "it" or "she" or "he" or "they"). + +Pronunciation-based "a"/"an" selection is provided for all English words, and +most initialisms. + +It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and +to English words ("one", "two", "three). + +%package -n python2-%{srcname} +Summary: Correctly generate plurals, singular nouns, ordinals and indefinite articles +%{?python_provide:%python_provide python2-%{srcname}} + BuildRequires: python2-devel BuildRequires: python-setuptools # Required for check BuildRequires: python-nose -%description +%description -n python2-%{srcname} The methods of the class 'engine' in module 'inflect.py' provide plural inflections, singular noun inflections, "a"/"an" selection for English words, and manipulation of numbers as words. @@ -33,15 +56,17 @@ most initialisms. It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and to English words ("one", "two", "three). -%package -n python3-inflect +%package -n python3-%{srcname} Summary: Correctly generate plurals, singular nouns, ordinals and indefinite articles +%{?python_provide:%python_provide python3-%{srcname}} + BuildRequires: python3-devel BuildRequires: python3-setuptools # Required for check BuildRequires: python3-nose -%description -n python3-inflect +%description -n python3-%{srcname} The methods of the class 'engine' in module 'inflect.py' provide plural inflections, singular noun inflections, "a"/"an" selection for English words, and manipulation of numbers as words. @@ -60,45 +85,20 @@ It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and to English words ("one", "two", "three). %prep -%setup -qc -mv inflect-%{version} python2 - -pushd python2 - -# Copy common doc files to top dir -cp -pr CHANGES.txt COPYING.txt README.rst ../ - -rm -rf inflext.egg-info -popd - -cp -a python2 python3 +%autosetup -n %{srcname}-%{version} +rm -rf inflect.egg-info %build -pushd python2 -%{__python2} setup.py build -popd - -pushd python3 -%{__python3} setup.py build -popd +%py2_build +%py3_build %install -pushd python2 -%{__python2} setup.py install --skip-build --root %{buildroot} -popd - -pushd python3 -%{__python3} setup.py install --skip-build --root %{buildroot} -popd +%py2_install +%py3_install %check -pushd python2 nosetests -popd - -pushd python3 -nosetests-3.4 -popd +nosetests-3.5 %files %license COPYING.txt @@ -114,6 +114,10 @@ popd %{python3_sitelib}/inflect-%{version}-*.egg-info %changelog +* Fri Nov 13 2015 David Shea - 0.2.5-6 +- Update %%check to use python 3.5 +- Switched to the new packaging guidelines which renames python-inflect to python2-inflect + * Tue Nov 10 2015 Fedora Release Engineering - 0.2.5-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5