#4 Build python3 support for RHEL/CentOS 7
Merged 5 years ago by raphgro. Opened 5 years ago by robert.
Unknown source epel7  into  epel7

file modified
+12 -9
@@ -1,7 +1,7 @@

  #global bzr     83

  %global pkgname SecretStorage

  

- %if 0%{?fedora} >= 13 || 0%{?el} >= 8

+ %if 0%{?fedora} >= 13 || 0%{?rhel} >= 7

  %global with_python3 1

  %else

  %global with_python3 0
@@ -12,7 +12,7 @@

  %if 0%{?bzr}

  Release:        0.3.bzr%{?bzr}%{?dist}

  %else

- Release:        1%{?dist}

+ Release:        2%{?dist}

  %endif

  Summary:        Python 2.x module for secure storing of passwords and secrets

  URL:            http://launchpad.net/python-secretstorage
@@ -55,15 +55,15 @@

  and unlocking collections (asynchronous unlocking is also supported).

  

  %if 0%{?with_python3}

- %package -n     python3-%{pkgname}

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

  Summary:        Python 3.x module for secure storing of passwords and secrets

- BuildRequires:  python3-devel

- BuildRequires:  python3-nose

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-nose

  # Tests only.

- BuildRequires:  python3-dbus

- Requires:       python3-dbus

+ BuildRequires:  python%{python3_pkgversion}-dbus

+ Requires:       python%{python3_pkgversion}-dbus

  

- %description -n python3-%{pkgname}

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

  This module provides a way for securely storing passwords and other secrets.

  

  It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) 
@@ -129,7 +129,7 @@

  %{python2_sitelib}/secretstorage/

  

  %if 0%{?with_python3}

- %files -n python3-%{pkgname}

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

  %doc changelog LICENSE README*

  %{python3_sitelib}/%{pkgname}-%{version}-py%{python3_version}.egg-info

  %{python3_sitelib}/secretstorage/
@@ -139,6 +139,9 @@

  %doc build/sphinx/html/*

  

  %changelog

+ * Wed May 08 2019 Robert Scheck <robert@fedoraproject.org> - 2.1.1-2

+ - Build python3 support for RHEL/CentOS 7

+ 

  * Thu Jul 17 2014 Christopher Meng <rpm@cicku.me> - 2.1.1-1

  - Update to 2.1.1