c419a8
%global srcname inflect
c419a8
Name:           python-%{srcname}
4da08b
Version:        2.1.0
118596
Release:        2%{?dist}
a6fcb9
Summary:        Correctly generate plurals, singular nouns, ordinals and indefinite articles
a6fcb9
4da08b
License:        MIT
0b14b2
URL:            https://github.com/jazzband/inflect
4da08b
Source0:        %pypi_source
a6fcb9
a6fcb9
BuildArch:      noarch
a6fcb9
c419a8
%description
c419a8
The methods of the class 'engine' in module 'inflect.py' provide plural
c419a8
inflections, singular noun inflections, "a"/"an" selection for English words,
c419a8
and manipulation of numbers as words.
c419a8
c419a8
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
c419a8
appropriate, "classical" variants (for example: "brother" -> "brethren",
c419a8
"dogma" -> "dogmata", etc.) are also provided.
c419a8
c419a8
Single forms of nouns are also provided. The gender of singular pronouns can be
c419a8
chosen (for example "they" -> "it" or "she" or "he" or "they").
c419a8
c419a8
Pronunciation-based "a"/"an" selection is provided for all English words, and
c419a8
most initialisms.
c419a8
c419a8
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
f2884b
to English words ("one", "two", "three").
c419a8
c419a8
%package -n python3-%{srcname}
a6fcb9
Summary:        Correctly generate plurals, singular nouns, ordinals and indefinite articles
c419a8
%{?python_provide:%python_provide python3-%{srcname}}
c419a8
a6fcb9
BuildRequires:  python3-devel
a6fcb9
BuildRequires:  python3-setuptools
4da08b
BuildRequires:  python3-setuptools_scm
a6fcb9
a6fcb9
# Required for check
a6fcb9
BuildRequires:  python3-nose
4da08b
BuildRequires:  python3-pytest
4da08b
BuildRequires:  python3-six
a6fcb9
c419a8
%description -n python3-%{srcname}
a6fcb9
The methods of the class 'engine' in module 'inflect.py' provide plural
a6fcb9
inflections, singular noun inflections, "a"/"an" selection for English words,
a6fcb9
and manipulation of numbers as words.
a6fcb9
a6fcb9
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
a6fcb9
appropriate, "classical" variants (for example: "brother" -> "brethren",
a6fcb9
"dogma" -> "dogmata", etc.) are also provided.
a6fcb9
a6fcb9
Single forms of nouns are also provided. The gender of singular pronouns can be
a6fcb9
chosen (for example "they" -> "it" or "she" or "he" or "they").
a6fcb9
a6fcb9
Pronunciation-based "a"/"an" selection is provided for all English words, and
a6fcb9
most initialisms.
a6fcb9
a6fcb9
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
a6fcb9
to English words ("one", "two", "three).
a6fcb9
a6fcb9
%prep
c419a8
%autosetup -n %{srcname}-%{version}
c419a8
rm -rf inflect.egg-info
a6fcb9
a6fcb9
%build
c419a8
%py3_build
a6fcb9
a6fcb9
%install
c419a8
%py3_install
a6fcb9
a6fcb9
%check
4da08b
pytest-3
a6fcb9
a6fcb9
%files -n python3-inflect
4da08b
%license LICENSE
59233f
%doc CHANGES.txt README.rst
a6fcb9
%{python3_sitelib}/inflect.py
a6fcb9
%{python3_sitelib}/__pycache__/inflect.*.py*
a6fcb9
%{python3_sitelib}/inflect-%{version}-*.egg-info
a6fcb9
a6fcb9
%changelog
118596
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
118596
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
118596
4da08b
* Mon Dec 17 2018 David Shea <dshea@redhat.com> - 2.1.0-1
4da08b
- Update to 2.1.0
4da08b
- Update license from AGPLv3+ to MIT
4da08b
- Remove python2 subpackage
4da08b
0b14b2
* Mon Jul 23 2018 David Shea <dshea@redhat.com> - 0.3.1-1
0b14b2
- Update to 0.3.1
0b14b2
02fee2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-17
02fee2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
02fee2
755f0c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-16
755f0c
- Rebuilt for Python 3.7
755f0c
bc7b2d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-15
bc7b2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bc7b2d
96e01b
* Fri Jan 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.5-14
96e01b
- Update Python 2 dependency declarations to new packaging standards
96e01b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
96e01b
f2884b
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.5-13
f2884b
- Fix creation of python2- subpackage
f2884b
534b38
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-12
534b38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
534b38
ae18fe
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-11
ae18fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ae18fe
4a284b
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-10
4a284b
- Rebuild for Python 3.6
4a284b
9210eb
* Wed Dec 21 2016 David Shea <dshea@redhat.com> - 0.2.5-10
9210eb
- Use the more generic nosetests-3 now that it exists.
9210eb
a2d07d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-9
a2d07d
- Rebuild for Python 3.6
a2d07d
ae0b63
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-8
ae0b63
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ae0b63
f73544
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-7
f73544
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f73544
c419a8
* Fri Nov 13 2015 David Shea <dshea@redhat.com> - 0.2.5-6
c419a8
- Update %%check to use python 3.5
c419a8
- Switched to the new packaging guidelines which renames python-inflect to python2-inflect
c419a8
fc8488
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-5
fc8488
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
fc8488
18769f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-4
18769f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
18769f
875f0e
* Wed Mar 18 2015 David Shea <dshea@redhat.com> - 0.2.5-3
875f0e
- Change the build commands to not use py3dir external to the build directory
875f0e
- Actually run the tests in %%check
875f0e
59233f
* Wed Jan 28 2015 David Shea <dshea@redhat.com> - 0.2.5-2
875f0e
- Use %%license for the license file
59233f
bd9e4d
* Tue Jan 13 2015 David Shea <dshea@redhat.com> - 0.2.5-1
bd9e4d
- Update to inflect-0.2.5, which fixes the following issues:
bd9e4d
- Fixed TypeError while parsing compounds (by yavarhusain)
bd9e4d
- Fixed encoding issue in setup.py on Python 3
bd9e4d
a6fcb9
* Mon Jul 21 2014 David Shea <dshea@redhat.com> - 0.2.4-4
a6fcb9
- Separate the python2 and python3 buildrequires by package section
a6fcb9
a6fcb9
* Mon Jul 21 2014 David Shea <dshea@redhat.com> - 0.2.4-3
a6fcb9
- Capitalize "English" in the description
a6fcb9
a6fcb9
* Tue Jul  8 2014 David Shea <dshea@redhat.com> - 0.2.4-2
a6fcb9
- Remove rst markup from the description. Oops.
a6fcb9
a6fcb9
* Tue Jul  8 2014 David Shea <dshea@redhat.com> - 0.2.4-1
a6fcb9
- Initial package