python-singledispatch/python-singledispatch.spec

62 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-11-26 11:29:26 +08:00
Name: python-singledispatch
2023-05-18 11:01:52 +08:00
Version: 4.0.0
2022-06-23 07:35:51 +00:00
Release: 1
2019-11-26 11:29:26 +08:00
Summary: Transform a method into a single-dispatch generic function
License: MIT
URL: https://pypi.org/project/singledispatch/
2023-05-18 11:01:52 +08:00
Source0: %{pypi_source singledispatch}
2019-11-26 11:29:26 +08:00
BuildArch: noarch
2022-06-23 07:35:51 +00:00
Patch001: 0001-add-version.patch
2019-11-26 11:29:26 +08:00
%description
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
that provides a simple form of generic programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 3.3.
2019-11-26 11:29:26 +08:00
%package -n python3-singledispatch
Summary: Transform a method into a single-dispatch generic function
%{?python_provide:%python_provide python3-singledispatch}
2023-05-18 11:01:52 +08:00
BuildRequires: python3-devel python3-six python3-pip python3-wheel
2019-11-26 11:29:26 +08:00
Requires: python3-six
%description -n python3-singledispatch
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
that provides a simple form of generic programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 3.3.
2019-11-26 11:29:26 +08:00
%prep
%autosetup -n singledispatch-%{version} -p1
%build
2023-05-18 11:01:52 +08:00
%pyproject_build
2019-11-26 11:29:26 +08:00
%install
2023-05-18 11:01:52 +08:00
%pyproject_install
2019-11-26 11:29:26 +08:00
%check
2023-05-18 11:01:52 +08:00
py.test-%{python3_version} -vv tests || :
2019-11-26 11:29:26 +08:00
%files -n python3-singledispatch
%doc README.rst
2023-05-18 11:01:52 +08:00
%{python3_sitelib}/singledispatch-%{version}.dist-info
2022-06-23 07:35:51 +00:00
%{python3_sitelib}/singledispatch/*.py
%{python3_sitelib}/singledispatch/__pycache__/*
2019-11-26 11:29:26 +08:00
%changelog
2023-05-18 11:01:52 +08:00
* Thu May 18 2023 Ge Wang <wang__ge@126.com> - 4.0.0-1
- Update to version 4.0.0
2022-06-23 07:35:51 +00:00
* Fri Jun 10 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.7.0-1
- Upgrade to version 3.7.0
2022-03-30 09:38:04 +08:00
* Wed Mar 30 2022 yaoxin <yaoxin30@huawei.com> - 3.4.0.3-16
- Resolve compilation failures.
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 3.4.0.3-15
- remove python2 subpackage, fix changelog version as 3.4.0.3
2019-11-26 11:29:26 +08:00
* Tue Nov 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.0.3-14
- Package init