commit a2ce6c7b0d0fb7518a99db9fbd1f25c0183ab5c2 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:14:52 2019 -0400 Package init diff --git a/decorator-4.3.0.tar.gz b/decorator-4.3.0.tar.gz new file mode 100644 index 0000000..834a94c Binary files /dev/null and b/decorator-4.3.0.tar.gz differ diff --git a/python-decorator.spec b/python-decorator.spec new file mode 100644 index 0000000..4e98d39 --- /dev/null +++ b/python-decorator.spec @@ -0,0 +1,69 @@ +%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} +Version: 4.3.0 +Release: 2 +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 python2-decorator +Summary: %{summary} in python2 +BuildRequires: python2-devel python2-setuptools +%{?python_provide:%python_provide python2-decorator} + +%description -n python2-decorator +%{_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 +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{_name} +%doc docs/README.rst +%license LICENSE.txt +%{python2_sitelib}/* + +%files -n python3-%{_name} +%doc docs/README.rst +%license LICENSE.txt +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/*info/ +%{python3_sitelib}/*.py + +%files help +%doc CHANGES.md + +%changelog +* Tue Sep 10 2019 openEuler Buildteam - 4.3.0-2 +- Package init