#1 Create python3 build in EPEL7
Merged 4 years ago by lsedlar. Opened 4 years ago by stevetraylen.
rpms/ stevetraylen/python-smmap py3  into  epel7

file modified
+6 -6
@@ -1,4 +1,4 @@ 

- %if 0%{?fedora} > 12

+ %if 0%{?fedora} > 12 || 0%{?el7}

  %global with_python3 1

  %else

  %if 0%{?rhel} && 0%{?rhel} <= 7
@@ -11,7 +11,7 @@ 

  

  Name:           python-smmap

  Version:        0.9.0

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        Sliding window memory map manager

  

  License:        BSD
@@ -27,11 +27,11 @@ 

  A pure python implementation of a sliding window memory map manager

  

  %if 0%{?with_python3}

- %package -n python3-smmap

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

  Summary:        Python3 Sliding window memory map manager

- BuildRequires:  python3-devel, python3-setuptools, python3-nose

+ BuildRequires:  python3-devel, python3-setuptools, python36-nose

  

- %description -n python3-smmap

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

  %{description}

  %endif # if with_python3

  
@@ -87,7 +87,7 @@ 

  %{python2_sitelib}/smmap-%{version}-py?.?.egg-info

  

  %if 0%{?with_python3}

- %files -n python3-smmap

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

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

  %{python3_sitelib}/smmap/

  %endif # with_python3

The package can be installed in an EPEL7 mock environment afterwards.

Pull-Request has been merged by lsedlar

4 years ago