Subpackage python2-decorator has been removed
This commit is contained in:
parent
a4139eab24
commit
574a6cd913
@ -1,14 +1,8 @@
|
|||||||
%global pypi_name decorator
|
%global pypi_name decorator
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
%bcond_with python3
|
|
||||||
%else
|
|
||||||
%bcond_without python3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 4.4.0
|
Version: 4.4.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Module to simplify usage of decorators
|
Summary: Module to simplify usage of decorators
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -23,13 +17,8 @@ Patch1: python39.patch
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
%if %{with python3}
|
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
|
||||||
# with python3
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The aim of the decorator module is to simplify the usage of decorators for
|
The aim of the decorator module is to simplify the usage of decorators for
|
||||||
@ -37,17 +26,6 @@ the average programmer, and to popularize decorators usage giving examples
|
|||||||
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
||||||
etc. The core of this module is a decorator factory called decorator.
|
etc. The core of this module is a decorator factory called decorator.
|
||||||
|
|
||||||
%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.
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-decorator
|
%package -n python3-decorator
|
||||||
Summary: Module to simplify usage of decorators in python3
|
Summary: Module to simplify usage of decorators in python3
|
||||||
%{?python_provide:%python_provide python3-decorator}
|
%{?python_provide:%python_provide python3-decorator}
|
||||||
@ -57,51 +35,34 @@ The aim of the decorator module is to simplify the usage of decorators for
|
|||||||
the average programmer, and to popularize decorators usage giving examples
|
the average programmer, and to popularize decorators usage giving examples
|
||||||
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
||||||
etc. The core of this module is a decorator factory called decorator.
|
etc. The core of this module is a decorator factory called decorator.
|
||||||
%endif
|
|
||||||
# with python3
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
|
||||||
# with python3
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
# with python3
|
|
||||||
# Remove this when https://github.com/micheles/decorator/issues/32 is fixed.
|
# Remove this when https://github.com/micheles/decorator/issues/32 is fixed.
|
||||||
find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \;
|
find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \;
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
|
||||||
%if %{with python3}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif
|
|
||||||
# with python3
|
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
|
||||||
%doc README.md CHANGES.md
|
|
||||||
%license LICENSE.txt
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.md CHANGES.md
|
%doc README.md CHANGES.md
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python3_sitelib}/decorator.py
|
%{python3_sitelib}/decorator.py
|
||||||
%{python3_sitelib}/decorator-*.egg-info/
|
%{python3_sitelib}/decorator-*.egg-info/
|
||||||
%{python3_sitelib}/__pycache__/*
|
%{python3_sitelib}/__pycache__/*
|
||||||
%endif
|
|
||||||
# with python3
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-4
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user