#1 Build for Python 3 for EPEL
Opened 4 years ago by orion. Modified 4 years ago
rpms/ orion/python-asn1crypto epel  into  rawhide

file modified
+35 -5
@@ -1,12 +1,8 @@ 

  # Created by pyp2rpm-3.2.2

  %global pypi_name asn1crypto

  

- %if 0%{?fedora} || 0%{?rhel} > 7

  # Enable python3 build by default

  %bcond_without python3

- %else

- %bcond_with python3

- %endif

  

  %if 0%{?rhel} > 7

  # Disable python2 build by default
@@ -19,7 +15,7 @@ 

  

  Name:           python-%{pypi_name}

  Version:        0.24.0

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        Fast Python ASN.1 parser and serializer

  

  License:        MIT
@@ -34,6 +30,10 @@ 

  %if 0%{?with_python3}

  BuildRequires:  python%{python3_pkgversion}-devel

  BuildRequires:  python%{python3_pkgversion}-setuptools

+ %if 0%{?python3_other_pkgversion}

+ BuildRequires:  python%{python3_other_pkgversion}-devel

+ BuildRequires:  python%{python3_other_pkgversion}-setuptools

+ %endif

  %endif

  

  %description
@@ -61,6 +61,17 @@ 

  Fast ASN.1 parser and serializer with definitions for private keys,

  public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,

  PKCS#12, PKCS#5, X.509 and TSP.

+ 

+ %if 0%{?python3_other_pkgversion}

+ %package -n     python%{python3_other_pkgversion}-%{pypi_name}

+ Summary:        %{summary}

+ %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}}

+ 

+ %description -n python%{python3_other_pkgversion}-%{pypi_name}

+ Fast ASN.1 parser and serializer with definitions for private keys,

+ public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,

+ PKCS#12, PKCS#5, X.509 and TSP.

+ %endif

  %endif

  

  %prep
@@ -74,6 +85,9 @@ 

  %endif

  %if 0%{?with_python3}

  %py3_build

+ %if 0%{?python3_other_pkgversion}

+ %py3_other_build

+ %endif

  %endif

  

  %install
@@ -82,6 +96,9 @@ 

  %endif

  %if 0%{?with_python3}

  %py3_install

+ %if 0%{?python3_other_pkgversion}

+ %py3_other_install

+ %endif

  %endif

  

  
@@ -90,6 +107,9 @@ 

  # {__python2} setup.py test

  %if 0%{?with_python3}

  # {__python3} setup.py test

+ %if 0%{?python3_other_pkgversion}

+ # {__python3_other} setup.py test

+ %endif

  %endif

  

  %if 0%{?with_python2}
@@ -104,9 +124,19 @@ 

  %doc

  %{python3_sitelib}/%{pypi_name}

  %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

+ 

+ %if 0%{?python3_other_pkgversion}

+ %files -n python%{python3_other_pkgversion}-%{pypi_name}

+ %doc

+ %{python3_other_sitelib}/%{pypi_name}

+ %{python3_other_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

+ %endif

  %endif

  

  %changelog

+ * Fri Nov 16 2018 Orion Poplawski <orion@nwra.com> - 0.24.0-6

+ - Build for Python 3 for EPEL

+ 

  * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

  

This enables python 3 builds for EPEL. I've requested an EPEL7 branch - https://pagure.io/releng/fedora-scm-requests/issue/8866

If you don't want to support EPEL I can maintain it there.