Summary: Bunch of nice decorators for Python 2
Summary(pl.UTF-8): Zbiór ładnych dekoratorów dla Pythona 2
Name: python-%{module}
-Version: 4.0.11
-Release: 1
+Version: 4.4.0
+Release: 2
License: BSD
Group: Libraries/Python
-#Source0Download: https://pypi.python.org/simple/decorator/
+#Source0Download: https://pypi.org/simple/decorator/
Source0: https://files.pythonhosted.org/packages/source/d/decorator/%{module}-%{version}.tar.gz
-# Source0-md5: 73644c8f0bd4983d1b6a34b49adec0ae
-URL: https://pypi.python.org/pypi/decorator/
+# Source0-md5: a565a98581c0d110bc247323e89df9b1
+Source1: https://raw.githubusercontent.com/micheles/decorator/%{version}/docs/documentation.md
+# Source1-md5: 854f55d03fd6453846d079f22693f45c
+URL: https://pypi.org/project/decorator/
%if %{with python2}
-BuildRequires: python-devel >= 1:2.4
-BuildRequires: python-modules >= 1:2.4
+BuildRequires: python-devel >= 1:2.6
+BuildRequires: python-modules >= 1:2.6
BuildRequires: python-setuptools
%endif
%if %{with python3}
BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: rpmbuild(macros) >= 1.714
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{module}-%{version}
+cp -p %{SOURCE1} .
+
%build
%if %{with python2}
%py_build %{?with_tests:test}
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc CHANGES.md LICENSE.txt docs/README.rst
+%doc CHANGES.md LICENSE.txt README.md
%{py_sitescriptdir}/decorator.py[co]
%{py_sitescriptdir}/decorator-%{version}-py*.egg-info
%endif
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc CHANGES.md LICENSE.txt docs/README.rst
+%doc CHANGES.md LICENSE.txt README.md
%{py3_sitescriptdir}/decorator.py
-%{py3_sitescriptdir}/__pycache__/decorator.*.py[co]
+%{py3_sitescriptdir}/__pycache__/decorator.cpython-*.py[co]
%{py3_sitescriptdir}/decorator-%{version}-py*.egg-info
%endif
%files doc
%defattr(644,root,root,755)
-%doc documentation.pdf
+%doc documentation.md