2019-09-30 11:14:52 -04:00
|
|
|
%global _name decorator
|
|
|
|
|
%global _description The goal of the decorator module is to make it easy to define signature-preserving \
|
|
|
|
|
function decorators and decorator factories. It also includes an implementation of multiple dispatch and \
|
|
|
|
|
other niceties (please check the docs).
|
|
|
|
|
|
|
|
|
|
Name: python-%{_name}
|
2020-07-23 19:09:05 +08:00
|
|
|
Version: 4.4.2
|
2020-10-23 15:49:13 +08:00
|
|
|
Release: 2
|
2019-09-30 11:14:52 -04:00
|
|
|
Summary: Simplify the signature-preserving function decorators and decorator factories
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/micheles/decorator
|
|
|
|
|
Source0: https://github.com/micheles/decorator/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python3-decorator
|
|
|
|
|
Summary: %{summary} in python3
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
%{?python_provide:%python_provide python3-decorator}
|
|
|
|
|
|
|
|
|
|
%description -n python3-decorator
|
|
|
|
|
%{_description}
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{_name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{_name}
|
2020-07-23 19:09:05 +08:00
|
|
|
%doc README.rst
|
2019-09-30 11:14:52 -04:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python3_sitelib}/__pycache__/*
|
|
|
|
|
%{python3_sitelib}/*info/
|
|
|
|
|
%{python3_sitelib}/*.py
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc CHANGES.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-10-23 15:49:13 +08:00
|
|
|
* Fri Oct 23 2020 tianwei<tianwei12@huawei.com> - 4.4.2-2
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete python2
|
|
|
|
|
|
2020-07-23 19:09:05 +08:00
|
|
|
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 4.4.2-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:update source code
|
|
|
|
|
|
2019-12-31 18:37:27 +08:00
|
|
|
* Tue Dec 31 2019 Yeqing Peng<pengyeqing@huawei.com> - 4.3.0-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:update source code
|
|
|
|
|
|
2019-09-30 11:14:52 -04:00
|
|
|
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.3.0-2
|
|
|
|
|
- Package init
|