a6fcb98
Name:           python-inflect
a6fcb98
Version:        0.2.4
a6fcb98
Release:        4%{?dist}
a6fcb98
Summary:        Correctly generate plurals, singular nouns, ordinals and indefinite articles
a6fcb98
a6fcb98
License:        AGPLv3+
a6fcb98
URL:            https://pypi.python.org/pypi/inflect
a6fcb98
Source0:        https://pypi.python.org/packages/source/i/inflect/inflect-%{version}.tar.gz
a6fcb98
Patch0:         inflect-0.2.4-readme-encoding.patch
a6fcb98
a6fcb98
BuildArch:      noarch
a6fcb98
a6fcb98
BuildRequires:  python2-devel
a6fcb98
BuildRequires:  python-setuptools
a6fcb98
a6fcb98
# Required for check
a6fcb98
BuildRequires:  python-nose
a6fcb98
a6fcb98
%description
a6fcb98
The methods of the class 'engine' in module 'inflect.py' provide plural
a6fcb98
inflections, singular noun inflections, "a"/"an" selection for English words,
a6fcb98
and manipulation of numbers as words.
a6fcb98
a6fcb98
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
a6fcb98
appropriate, "classical" variants (for example: "brother" -> "brethren",
a6fcb98
"dogma" -> "dogmata", etc.) are also provided.
a6fcb98
a6fcb98
Single forms of nouns are also provided. The gender of singular pronouns can be
a6fcb98
chosen (for example "they" -> "it" or "she" or "he" or "they").
a6fcb98
a6fcb98
Pronunciation-based "a"/"an" selection is provided for all English words, and
a6fcb98
most initialisms.
a6fcb98
a6fcb98
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
a6fcb98
to English words ("one", "two", "three).
a6fcb98
a6fcb98
%package -n python3-inflect
a6fcb98
Summary:        Correctly generate plurals, singular nouns, ordinals and indefinite articles
a6fcb98
BuildRequires:  python3-devel
a6fcb98
BuildRequires:  python3-setuptools
a6fcb98
a6fcb98
# Required for check
a6fcb98
BuildRequires:  python3-nose
a6fcb98
a6fcb98
%description -n python3-inflect
a6fcb98
The methods of the class 'engine' in module 'inflect.py' provide plural
a6fcb98
inflections, singular noun inflections, "a"/"an" selection for English words,
a6fcb98
and manipulation of numbers as words.
a6fcb98
a6fcb98
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
a6fcb98
appropriate, "classical" variants (for example: "brother" -> "brethren",
a6fcb98
"dogma" -> "dogmata", etc.) are also provided.
a6fcb98
a6fcb98
Single forms of nouns are also provided. The gender of singular pronouns can be
a6fcb98
chosen (for example "they" -> "it" or "she" or "he" or "they").
a6fcb98
a6fcb98
Pronunciation-based "a"/"an" selection is provided for all English words, and
a6fcb98
most initialisms.
a6fcb98
a6fcb98
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
a6fcb98
to English words ("one", "two", "three).
a6fcb98
a6fcb98
%prep
a6fcb98
%setup -q -n inflect-%{version}
a6fcb98
%patch0 -p1
a6fcb98
a6fcb98
rm -rf %{py3dir}
a6fcb98
cp -a . %{py3dir}
a6fcb98
a6fcb98
%build
a6fcb98
%{__python2} setup.py build
a6fcb98
a6fcb98
( cd %{py3dir} && %{__python3} setup.py build )
a6fcb98
a6fcb98
%install
a6fcb98
%{__python2} setup.py install --skip-build --root %{buildroot}
a6fcb98
a6fcb98
( cd %{py3dir} && %{__python3} setup.py install --skip-build --root %{buildroot} )
a6fcb98
a6fcb98
%check
a6fcb98
%{__python2} setup.py check
a6fcb98
( cd %{py3dir} && %{__python3} setup.py check )
a6fcb98
a6fcb98
%files
a6fcb98
%doc CHANGES.txt COPYING.txt README.rst
a6fcb98
%{python2_sitelib}/inflect.py*
a6fcb98
%{python2_sitelib}/inflect-%{version}-*.egg-info
a6fcb98
a6fcb98
%files -n python3-inflect
a6fcb98
%doc CHANGES.txt COPYING.txt README.rst
a6fcb98
%{python3_sitelib}/inflect.py
a6fcb98
%{python3_sitelib}/__pycache__/inflect.*.py*
a6fcb98
%{python3_sitelib}/inflect-%{version}-*.egg-info
a6fcb98
a6fcb98
%changelog
a6fcb98
* Mon Jul 21 2014 David Shea <dshea@redhat.com> - 0.2.4-4
a6fcb98
- Separate the python2 and python3 buildrequires by package section
a6fcb98
a6fcb98
* Mon Jul 21 2014 David Shea <dshea@redhat.com> - 0.2.4-3
a6fcb98
- Capitalize "English" in the description
a6fcb98
a6fcb98
* Tue Jul  8 2014 David Shea <dshea@redhat.com> - 0.2.4-2
a6fcb98
- Remove rst markup from the description. Oops.
a6fcb98
a6fcb98
* Tue Jul  8 2014 David Shea <dshea@redhat.com> - 0.2.4-1
a6fcb98
- Initial package