Accepting request 331684 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/331684 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keyring?expand=0&rev=17
This commit is contained in:
commit
4c3476fba2
12
keyring-import-gi.patch
Normal file
12
keyring-import-gi.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/keyring/backends/Gnome.py b/keyring/backends/Gnome.py
|
||||||
|
index 7a8a274..642bc80 100644
|
||||||
|
--- a/keyring/backends/Gnome.py
|
||||||
|
+++ b/keyring/backends/Gnome.py
|
||||||
|
@@ -3,6 +3,7 @@ import os
|
||||||
|
try:
|
||||||
|
from gi import Repository
|
||||||
|
if Repository.get_default().enumerate_versions('GnomeKeyring'):
|
||||||
|
+ import gi
|
||||||
|
gi.require_version('GnomeKeyring', '1.0')
|
||||||
|
from gi.repository import GnomeKeyring
|
||||||
|
except ImportError:
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 17 11:41:56 UTC 2015 - m0ses@samaxi.de
|
||||||
|
|
||||||
|
- Added keyring-import-gi.patch: gi.require_version is called and not
|
||||||
|
found if gi is not imported
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 7 08:40:56 UTC 2015 - dimstar@opensuse.org
|
Mon Sep 7 08:40:56 UTC 2015 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-keyring
|
# spec file for package python-keyring
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,6 +26,7 @@ Group: Development/Languages/Python
|
|||||||
Source: https://pypi.python.org/packages/source/k/keyring/keyring-%{version}.tar.gz
|
Source: https://pypi.python.org/packages/source/k/keyring/keyring-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM keyring-gnome-3.18.patch dimstar@opensuse.org -- Silence a warning when run in GNOME 3.18: gi requires versioned imports now.
|
# PATCH-FIX-UPSTREAM keyring-gnome-3.18.patch dimstar@opensuse.org -- Silence a warning when run in GNOME 3.18: gi requires versioned imports now.
|
||||||
Patch0: keyring-gnome-3.18.patch
|
Patch0: keyring-gnome-3.18.patch
|
||||||
|
Patch1: keyring-import-gi.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
@ -57,6 +58,7 @@ from python. It can be used in any application that needs safe password storage.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n keyring-%{version}
|
%setup -q -n keyring-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
# For rpmlint warning: remove shebang from python library:
|
# For rpmlint warning: remove shebang from python library:
|
||||||
sed -i '/^#!/d' keyring/cli.py keyring/backends/_win_crypto.py
|
sed -i '/^#!/d' keyring/cli.py keyring/backends/_win_crypto.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user