Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > e455723c97d54d77e41971e6a72b3791 > files > 2

python-inflection-0.5.1-3.mga9.src.rpm

%global srcname inflection

Name:           python-%{srcname}
Version:        0.5.1
Release:        %mkrel 3
Summary:        Port of Ruby on Rails inflector to Python
Group:          Development/Python
License:        MIT
URL:            https://github.com/jpvanhal/inflection
Source:         %{pypi_source}
BuildArch:      noarch

%description
Inflection is a string transformation library. It singularizes and pluralizes
English words, and transforms strings from CamelCase to underscored string.
Inflection is a port of Ruby on Rails’ inflector to Python.

%package     -n python3-%{srcname}
Summary:        Port of Ruby on Rails inflector to Python3
Group:          Development/Python
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pytest)

%description -n python3-%{srcname}
Inflection is a string transformation library. It singularizes and pluralizes
English words, and transforms strings from CamelCase to underscored string.
Inflection is a port of Ruby on Rails’ inflector to Python3.

%prep
%autosetup -n %{srcname}-%{version} -p1

# Remove bundled egg-info
rm -vr *.egg-info

%build
%py3_build

%install
%py3_install

%check
%python3 -m pytest -v

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/inflection-*.egg-info/
%{python3_sitelib}/inflection/


%changelog
* Sat Mar 26 2022 umeabot <umeabot> 0.5.1-3.mga9
+ Revision: 1828541
- Mageia 9 Mass Rebuild

* Fri Feb 18 2022 mrambo3501 <mrambo3501> 0.5.1-2.mga9
+ Revision: 1781139
- rebuild for python-3.10

* Sun Apr 18 2021 daviddavid <daviddavid> 0.5.1-1.mga9
+ Revision: 1716715
- initial package python-inflection