Compare commits

...

No commits in common. "c8" and "d6502211a4848fe02959bd2fe9cd6839a6ef888c" have entirely different histories.

4 changed files with 78 additions and 66 deletions

20
.gitignore vendored
View File

@ -1 +1,19 @@
SOURCES/decorator-4.2.1.tar.gz
decorator-3.2.0.tar.gz
/decorator-3.2.1.tar.gz
/decorator-3.3.0.tar.gz
/decorator-3.3.1.tar.gz
/decorator-3.3.2.tar.gz
/decorator-3.3.3.tar.gz
/decorator-3.4.0.tar.gz
/decorator-3.4.2.tar.gz
/decorator-4.0.2.tar.gz
/decorator-4.0.4.tar.gz
/decorator-4.0.6.tar.gz
/decorator-4.0.9.tar.gz
/decorator-4.0.10.tar.gz
/decorator-4.0.11.tar.gz
/decorator-4.1.2.tar.gz
/decorator-4.2.1.tar.gz
/decorator-4.3.0.tar.gz
/decorator-4.4.0.tar.gz
/decorator-4.4.2.tar.gz

View File

@ -1 +1 @@
49cc187e145d974e89a89d4f1529be9b77296806 SOURCES/decorator-4.2.1.tar.gz
24d4560ff3e89a6cec068d323383577343c086fb decorator-4.4.2.tar.gz

View File

@ -1,36 +1,18 @@
%global pypi_name decorator
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3
%else
%bcond_without python3
%endif
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-%{pypi_name}
Version: 4.2.1
Release: 2%{?dist}
Version: 4.4.2
Release: 6%{?dist}
Summary: Module to simplify usage of decorators
License: BSD
URL: https://github.com/micheles/decorator
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source0: %pypi_source decorator
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-setuptools
BuildRequires: python2-devel
%endif
%if %{with python3}
BuildRequires: python3-setuptools
BuildRequires: python3-devel
%endif # with python3
%description
The aim of the decorator module is to simplify the usage of decorators for
@ -38,19 +20,6 @@ the average programmer, and to popularize decorators usage giving examples
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
etc. The core of this module is a decorator factory called decorator.
%if %{with python2}
%package -n python2-decorator
Summary: Module to simplify usage of decorators in python2
%{?python_provide:%python_provide python2-decorator}
%description -n python2-decorator
The aim of the decorator module is to simplify the usage of decorators for
the average programmer, and to popularize decorators usage giving examples
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
etc. The core of this module is a decorator factory called decorator.
%endif
%if %{with python3}
%package -n python3-decorator
Summary: Module to simplify usage of decorators in python3
%{?python_provide:%python_provide python3-decorator}
@ -60,56 +29,80 @@ The aim of the decorator module is to simplify the usage of decorators for
the average programmer, and to popularize decorators usage giving examples
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
etc. The core of this module is a decorator factory called decorator.
%endif # with python3
%prep
%autosetup -n %{pypi_name}-%{version}
%autosetup -p1 -n %{pypi_name}-%{version}
%build
%if %{with python2}
%py2_build
%endif
%if %{with python3}
%py3_build
%endif # with python3
%install
%if %{with python2}
%py2_install
%endif
%if %{with python3}
%py3_install
%endif # with python3
# Remove this when https://github.com/micheles/decorator/issues/32 is fixed.
find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \;
%check
%if %{with python2}
%{__python2} setup.py test
%endif
%if %{with python3}
%{__python3} setup.py test
%endif # with python3
%if %{with python2}
%files -n python2-%{pypi_name}
%doc docs/README.rst
%license LICENSE.txt
%{python2_sitelib}/*
%endif
%if %{with python3}
%files -n python3-%{pypi_name}
%doc docs/README.rst
%doc README.rst CHANGES.md
%license LICENSE.txt
%{python3_sitelib}/decorator.py
%{python3_sitelib}/decorator-*.egg-info/
%{python3_sitelib}/__pycache__/*
%endif # with python3
%changelog
* Mon Jun 25 2018 <lbalhar@redhat.com> - 4.2.1-2
- Python 2 subpackage disabled by default
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.4.2-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.4.2-5
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 4.4.2-2
- Rebuilt for Python 3.9
* Fri Apr 03 2020 Michal Konečný <mkonecny@redhat.com> - 4.4.2-1
- new version
Remove python39.patch no longer needed
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jan 16 2020 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-5
- Subpackage python2-decorator has been removed
See https://fedoraproject.org/wiki/Changes/RetirePython2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-3
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Jun 22 2019 Kevin Fenzi <kevin@scrye.com> - 4.4.0-1
- Update to 4.4.0. Fixes bug #1669189
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.3.0-1
- Update to 4.3.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 4.2.1-2
- Rebuilt for Python 3.7
* Wed Feb 7 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 4.2.1-1
- Upstream 4.2.1

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (decorator-4.4.2.tar.gz) = c068efd4e70764ac447b772c9c29625c2180dad256b2b4e46a50a8479fc1d7de09b114c2ba11bb37dd58774ed9460d2e0ea9fa76061833a2d3c2676ac91a0db1