#3 EPEL 7: update to 3.0.1, fix license declaration, add Python 3 subpackage
Merged 4 years ago by nb. Opened 4 years ago by fschwarz.
Unknown source epel7  into  epel7

file modified
+1 -2
@@ -1,2 +1,1 @@

- /uritemplate-0.3.0.tar.gz

- /uritemplate-3.0.0.tar.gz

+ /uritemplate-*.tar.gz

file modified
+16 -32
@@ -3,16 +3,14 @@

  

  %global _docdir_fmt %{name}

  

- %if 0%{?fedora}

- %global with_python3 1

- %endif

+ %global py3_prefix python%{python3_pkgversion}

  

  Name:           python-%{modname}

- Version:        3.0.0

+ Version:        3.0.1

  Release:        1%{?dist}

  Summary:        Simple python library to deal with URI Templates (RFC 6570)

  

- License:        BSD

+ License:        BSD or ASL 2.0

  URL:            https://%{modname}.readthedocs.io

  Source0:        https://github.com/sigmavirus24/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz

  
@@ -28,73 +26,59 @@

  %{?python_provide:%python_provide python2-%{altname}}

  BuildRequires:  python2-devel

  BuildRequires:  python2-setuptools

- 

- %if 0%{?with_python3}

- BuildRequires:  python2-pytest

- %else

  BuildRequires:  pytest

- %endif

  

  %description -n python2-%{modname}

  %{summary}.

  

  Python 2 version.

  

- %if 0%{?with_python3}

- %package -n python3-%{modname}

+ %package -n %{py3_prefix}-%{modname}

  Summary:        %{summary}

- Conflicts:      python3-uri-templates

  %{?python_provide:%python_provide python3-%{modname}}

  %{?python_provide:%python_provide python3-%{altname}}

- BuildRequires:  python3-devel

- BuildRequires:  python3-setuptools

- BuildRequires:  python3-pytest

+ BuildRequires:  %{py3_prefix}-devel

+ BuildRequires:  %{py3_prefix}-setuptools

+ BuildRequires:  %{py3_prefix}-pytest

  

- %description -n python3-%{modname}

+ %description -n %{py3_prefix}-%{modname}

  %{summary}.

  

  Python 3 version.

- %endif

  

  %prep

  %autosetup -n uritemplate-%{version}

  

  %build

  %py2_build

- 

- %if 0%{?with_python3}

  %py3_build

- %endif

  

  %install

  %py2_install

- 

- %if 0%{?with_python3}

  %py3_install

- %endif

  

  %check

  PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v

- 

- %if 0%{?with_python3}

  PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v

- %endif

  

  %files -n python2-%{modname}

- %license LICENSE

+ %license LICENSE LICENSE.APACHE LICENSE.BSD

  %doc HISTORY.rst README.rst

  %{python2_sitelib}/%{modname}-*.egg-info

  %{python2_sitelib}/%{modname}/

  

- %if 0%{?with_python3}

- %files -n python3-%{modname}

- %license LICENSE

+ %files -n %{py3_prefix}-%{modname}

+ %license LICENSE LICENSE.APACHE LICENSE.BSD

  %doc HISTORY.rst README.rst

  %{python3_sitelib}/%{modname}-*.egg-info

  %{python3_sitelib}/%{modname}/

- %endif

  

  %changelog

+ * Sun May 03 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 3.0.1-1

+ - update to 3.0.1

+ - declare licensing correctly and include actual license files

+ - add Python 3 subpackage for EPEL 7 (rhbz #1829473)

+ 

  * Mon Jul 31 2017 Nick Bebout <nb@fedoraproject.org> - 3.0.0-1

  - Upgrade to 3.0.0

  

file modified
+1 -1
@@ -1,1 +1,1 @@

- SHA512 (uritemplate-3.0.0.tar.gz) = 9988ae6db1d0234a2dfb393ab0205dd7902c814b8a85e06a666b8fec44cacec90fc8852b64da068242cb57cbb2ed63478567224fcb6751df82605d1f0881ad6e

+ SHA512 (uritemplate-3.0.1.tar.gz) = 7d71a817420bbd8747cef81148a8b2800b8be5257bca3474cadf1484385c280e3caabcf49d00afdc255175e8b7cf5e5d2640a34168b82af7b033d62f0573c23b

Mostly I just wanted to have a Python 3 subpackage so I can move certbot to Python 3 in the future (rhbz #1829473) but in the process of doing so I found a few other issues which I fixed.

@nb is supposed to take care of this.

Though License stuff would appreciate if you could send to the master branch separately.

Pull-Request has been merged by nb

4 years ago