c419a8b
%global srcname inflect
c419a8b
Name:           python-%{srcname}
4da08ba
Version:        2.1.0
5262863
Release:        19%{?dist}
a6fcb98
Summary:        Correctly generate plurals, singular nouns, ordinals and indefinite articles
a6fcb98
4da08ba
License:        MIT
0b14b28
URL:            https://github.com/jazzband/inflect
4da08ba
Source0:        %pypi_source
a6fcb98
a6fcb98
BuildArch:      noarch
a6fcb98
c419a8b
%description
c419a8b
The methods of the class 'engine' in module 'inflect.py' provide plural
c419a8b
inflections, singular noun inflections, "a"/"an" selection for English words,
c419a8b
and manipulation of numbers as words.
c419a8b
c419a8b
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
c419a8b
appropriate, "classical" variants (for example: "brother" -> "brethren",
c419a8b
"dogma" -> "dogmata", etc.) are also provided.
c419a8b
c419a8b
Single forms of nouns are also provided. The gender of singular pronouns can be
c419a8b
chosen (for example "they" -> "it" or "she" or "he" or "they").
c419a8b
c419a8b
Pronunciation-based "a"/"an" selection is provided for all English words, and
c419a8b
most initialisms.
c419a8b
c419a8b
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
f2884b5
to English words ("one", "two", "three").
c419a8b
c419a8b
%package -n python3-%{srcname}
a6fcb98
Summary:        Correctly generate plurals, singular nouns, ordinals and indefinite articles
c419a8b
%{?python_provide:%python_provide python3-%{srcname}}
c419a8b
a6fcb98
BuildRequires:  python3-devel
a6fcb98
BuildRequires:  python3-setuptools
4da08ba
BuildRequires:  python3-setuptools_scm
a6fcb98
a6fcb98
# Required for check
a6fcb98
BuildRequires:  python3-nose
4da08ba
BuildRequires:  python3-pytest
4da08ba
BuildRequires:  python3-six
a6fcb98
c419a8b
%description -n python3-%{srcname}
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
c419a8b
%autosetup -n %{srcname}-%{version}
c419a8b
rm -rf inflect.egg-info
a6fcb98
a6fcb98
%build
c419a8b
%py3_build
a6fcb98
a6fcb98
%install
c419a8b
%py3_install
a6fcb98
a6fcb98
%check
4da08ba
pytest-3
a6fcb98
a6fcb98
%files -n python3-inflect
4da08ba
%license LICENSE
59233f2
%doc CHANGES.txt README.rst
a6fcb98
%{python3_sitelib}/inflect.py
a6fcb98
%{python3_sitelib}/__pycache__/inflect.*.py*
a6fcb98
%{python3_sitelib}/inflect-%{version}-*.egg-info
a6fcb98
a6fcb98
%changelog
5262863
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-19
5262863
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5262863
e663399
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-18
e663399
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e663399
020d8ce
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-17
020d8ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
020d8ce
44e6706
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.1.0-16
44e6706
- Rebuilt for Python 3.12
44e6706
11741f7
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-15
11741f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
11741f7
2d1abb4
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-14
2d1abb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2d1abb4
9390cbf
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1.0-13
9390cbf
- Rebuilt for Python 3.11
9390cbf
47d83a8
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-12
47d83a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
47d83a8
64d9cf1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-11
64d9cf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
64d9cf1
8237838
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.0-10
8237838
- Rebuilt for Python 3.10
8237838
e8d73c6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-9
e8d73c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e8d73c6
e7de657
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
e7de657
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e7de657
f1e346e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-7
f1e346e
- Rebuilt for Python 3.9
f1e346e
257a3ff
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
257a3ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
257a3ff
4b3dfcb
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-5
4b3dfcb
- Rebuilt for Python 3.8.0rc1 (#1748018)
4b3dfcb
7b672d3
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-4
7b672d3
- Rebuilt for Python 3.8
7b672d3
d8f0c69
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
d8f0c69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d8f0c69
118596d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
118596d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
118596d
4da08ba
* Mon Dec 17 2018 David Shea <dshea@redhat.com> - 2.1.0-1
4da08ba
- Update to 2.1.0
4da08ba
- Update license from AGPLv3+ to MIT
4da08ba
- Remove python2 subpackage
4da08ba
0b14b28
* Mon Jul 23 2018 David Shea <dshea@redhat.com> - 0.3.1-1
0b14b28
- Update to 0.3.1
0b14b28
02fee2c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-17
02fee2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
02fee2c
755f0ce
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-16
755f0ce
- Rebuilt for Python 3.7
755f0ce
bc7b2d3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-15
bc7b2d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bc7b2d3
96e01b6
* Fri Jan 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.5-14
96e01b6
- Update Python 2 dependency declarations to new packaging standards
96e01b6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
96e01b6
f2884b5
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.5-13
f2884b5
- Fix creation of python2- subpackage
f2884b5
534b386
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-12
534b386
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
534b386
ae18fe5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-11
ae18fe5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ae18fe5
4a284bb
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-10
4a284bb
- Rebuild for Python 3.6
4a284bb
9210eb6
* Wed Dec 21 2016 David Shea <dshea@redhat.com> - 0.2.5-10
9210eb6
- Use the more generic nosetests-3 now that it exists.
9210eb6
a2d07db
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-9
a2d07db
- Rebuild for Python 3.6
a2d07db
ae0b63b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-8
ae0b63b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ae0b63b
f735441
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-7
f735441
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f735441
c419a8b
* Fri Nov 13 2015 David Shea <dshea@redhat.com> - 0.2.5-6
c419a8b
- Update %%check to use python 3.5
c419a8b
- Switched to the new packaging guidelines which renames python-inflect to python2-inflect
c419a8b
fc84888
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-5
fc84888
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
fc84888
18769f5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-4
18769f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
18769f5
875f0e1
* Wed Mar 18 2015 David Shea <dshea@redhat.com> - 0.2.5-3
875f0e1
- Change the build commands to not use py3dir external to the build directory
875f0e1
- Actually run the tests in %%check
875f0e1
59233f2
* Wed Jan 28 2015 David Shea <dshea@redhat.com> - 0.2.5-2
875f0e1
- Use %%license for the license file
59233f2
bd9e4d0
* Tue Jan 13 2015 David Shea <dshea@redhat.com> - 0.2.5-1
bd9e4d0
- Update to inflect-0.2.5, which fixes the following issues:
bd9e4d0
- Fixed TypeError while parsing compounds (by yavarhusain)
bd9e4d0
- Fixed encoding issue in setup.py on Python 3
bd9e4d0
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