#4 EPEL 7: re-introduce Python 3 version
Merged 5 years ago by fab. Opened 5 years ago by fschwarz.
Unknown source epel-python3  into  epel7

file modified
+39 -6
@@ -1,9 +1,10 @@

  %global srcname msgpack

  %global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so)$

+ %global with_python3 1

  

  Name:           python-%{srcname}

  Version:        0.5.6

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        A Python MessagePack (de)serializer

  

  License:        ASL 2.0
@@ -30,20 +31,41 @@

  focused on high performance. It is like JSON, but very fast and small.

  This is a Python (de)serializer for MessagePack.

  

+ %if %{with python3}

+ %package -n python%{python3_pkgversion}-%{srcname}

+ Summary:        %{summary}

+ 

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-setuptools

+ BuildRequires:  python%{python3_pkgversion}-pytest

+ #BuildRequires:  python%{python3_pkgversion}-funcsigs

+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}

+ 

+ %description -n python%{python3_pkgversion}-%{srcname}

+ MessagePack is a binary-based efficient data interchange format that is

+ focused on high performance. It is like JSON, but very fast and small.

+ This is a Python %{python3_version} (de)serializer for MessagePack.

+ %endif

+ 

  %prep

  %autosetup -n %{srcname}-python-%{version}

  

  %build

  %py2_build

+ %if 0%{?with_python3}

+ %py3_build

+ %endif

  

  %install

  %py2_install

+ %if %{with python3}

+ %py3_install

+ %endif

  

- # Test don't pass at the moment. Missing dependency in pytest.

- #%check

- #export PYTHONPATH=$(pwd)

- #py.test-%{python_version} -v test

- #py.test-%{python3_version} -v test

+ %check

+ export PYTHONPATH=$(pwd)

+ py.test -v test

+ py.test-%{python3_version} -v test

  

  %files -n python2-%{srcname}

  %doc README.rst
@@ -51,7 +73,18 @@

  %{python2_sitearch}/%{srcname}/

  %{python2_sitearch}/%{srcname}*.egg-info

  

+ %if 0%{?with_python3}

+ %files -n python%{python3_pkgversion}-%{srcname}

+ %doc README.rst

+ %license COPYING

+ %{python3_sitearch}/%{srcname}/

+ %{python3_sitearch}/%{srcname}*.egg-info

+ %endif

+ 

  %changelog

+ * Fri Aug 10 2018 Felix Schwarz <fschwarz@fedoraproject.org> - 0.5.6-3

+ - restore Python 3 version for EPEL (rhbz#1599068)

+ 

  * Sun May 20 2018 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.6-2

  - Enable EPEL build again

  

This commit brings the Python 3 version back so borgbackup becomes usable again in EPEL 7 (see https://bugzilla.redhat.com/show_bug.cgi?id=1599068 ). Also it reenables py.test-based testing.

Pull-Request has been merged by fab

5 years ago