2020-03-07 16:10:52 +08:00
|
|
|
Name: python-simplegeneric
|
|
|
|
|
Version: 0.8.1
|
2020-10-29 15:18:54 +08:00
|
|
|
Release: 12
|
2020-03-07 16:10:52 +08:00
|
|
|
Summary: A package with simple generic functions
|
|
|
|
|
License: Python or ZPLv2.1
|
|
|
|
|
URL: http://cheeseshop.python.org/pypi/simplegeneric
|
|
|
|
|
Source0: https://pypi.python.org/packages/source/s/simplegeneric/simplegeneric-0.8.1.zip
|
|
|
|
|
BuildArch: noarch
|
2020-10-29 15:18:54 +08:00
|
|
|
BuildRequires: python3-devel python3-setuptools
|
2020-03-07 16:10:52 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The package lets you define simple single-dispatch generic functions, akin to Python's built-in
|
|
|
|
|
generic functions like len(), iter() and so on.
|
|
|
|
|
|
|
|
|
|
%package -n python3-simplegeneric
|
|
|
|
|
Summary: A python3 package with simple generic functions
|
|
|
|
|
License: Python or ZPLv2.1
|
|
|
|
|
%{?python_provide:%python_provide python3-simplegeneric}
|
|
|
|
|
|
|
|
|
|
%description -n python3-simplegeneric
|
|
|
|
|
The package lets you define simple single-dispatch generic functions, akin to Python's built-in
|
|
|
|
|
generic functions like len(), iter() and so on.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n simplegeneric-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=$(pwd) %{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python3-simplegeneric
|
|
|
|
|
%doc README.txt
|
|
|
|
|
%{python3_sitelib}/__pycache__/simplegeneric.cpython*
|
|
|
|
|
%{python3_sitelib}/{simplegeneric.py*,simplegeneric-%{version}-py?.?.egg-info}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-10-29 15:18:54 +08:00
|
|
|
* Fri Mar 6 2020 zhanghua <zhanghua40@huawei.com> - 0.8.1-12
|
|
|
|
|
- remove python2 subpackage
|
|
|
|
|
|
2020-03-07 16:10:52 +08:00
|
|
|
* Fri Mar 6 2020 yinzhenling <yingzhenling2@huawei.com> - 0.8.1-11
|
|
|
|
|
- Initial package
|