#1 Enable EPEL python36 subpackage
Closed 5 years ago by ignatenkobrain. Opened 5 years ago by carlwgeorge.
rpms/ carlwgeorge/python-appdirs epel-py36  into  master

file modified
+15 -9
@@ -1,10 +1,13 @@ 

  %global srcname appdirs

+ 

+ %if %{defined fedora} || (%{defined rhel} && 0%{?rhel} >= 8)

  %bcond_without wheel

  %global wheelname %{srcname}-%{version}-py2.py3-none-any.whl

+ %endif

  

  Name:          python-%{srcname}

  Version:       1.4.3

- Release:       8%{?dist}

+ Release:       9%{?dist}

  Summary:       Python module for determining platform-specific directories

  

  License:       MIT
@@ -31,17 +34,17 @@ 

  A small Python 2 module for determining appropriate " + " platform-specific

  directories, e.g. a "user data dir".

  

- %package -n python3-%{srcname}

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

  Summary:        %{summary}

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

- BuildRequires:  python3-devel

- BuildRequires:  python3-setuptools

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

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-setuptools

  %if %{with wheel}

- BuildRequires:  python3-pip

- BuildRequires:  python3-wheel

+ BuildRequires:  python%{python3_pkgversion}-pip

+ BuildRequires:  python%{python3_pkgversion}-wheel

  %endif

  

- %description -n python3-%{srcname}

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

  A small Python 3 module for determining appropriate " + " platform-specific

  directories, e.g. a "user data dir".

  
@@ -78,13 +81,16 @@ 

  %doc README.rst CHANGES.rst

  %{python2_sitelib}/%{srcname}*

  

- %files -n python3-%{srcname}

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

  %license LICENSE.txt

  %doc README.rst CHANGES.rst

  %{python3_sitelib}/%{srcname}*

  %{python3_sitelib}/__pycache__/%{srcname}.*

  

  %changelog

+ * Thu Mar 14 2019 Carl George <carl@george.computer> - 1.4.3-9

+ - Enable EPEL python36 subpackage

+ 

  * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-8

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

  

This change will make the master branch compatible with epel7, enabling python36-appdirs once it's merged back to epel7 and built.

Please send EPEL-specific stuff to EPEL branches.

Pull-Request has been closed by ignatenkobrain

5 years ago

These changes aren't EPEL-specific, as %{python3_pkgversion} is defined as 3 on Fedora and 36 on EPEL. I understand not wanting to include elaborate EPEL-specific logic in master, but these changes are minimal and allow for master and epel7 to stay in sync.