Accepting request 155086 from devel:languages:python

- Drop old SUSE checks
- Add python-unittest2 build requirement to make sure the testsuite
  passes on SLE_11_SP2

- Update to version 1.2.2:
  * Fixed handling situations when user cancels kwallet dialog or denies
    access for the app.
- Add new dependencies
- FIx shebang rpmlint warnings

OBS-URL: https://build.opensuse.org/request/show/155086
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keyring?expand=0&rev=3
This commit is contained in:
Stephan Kulow 2013-02-23 15:41:21 +00:00 committed by Git OBS Bridge
commit 9a76a90731
4 changed files with 32 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef9fad76daeadd4ea2f8992e768d8dd873c812dd4c226cae1e64ccca4627377b
size 46907

3
keyring-1.2.2.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20e4e34f15deca61d5a58edc1d2e5e3720cbdc340726d4918590036db6decfab
size 79028

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Feb 11 09:19:27 UTC 2013 - saschpe@suse.de
- Drop old SUSE checks
- Add python-unittest2 build requirement to make sure the testsuite
passes on SLE_11_SP2
-------------------------------------------------------------------
Sun Feb 10 14:33:59 UTC 2013 - p.drouand@gmail.com
- Update to version 1.2.2:
* Fixed handling situations when user cancels kwallet dialog or denies
access for the app.
- Add new dependencies
- FIx shebang rpmlint warnings
-------------------------------------------------------------------
Fri Jun 8 22:12:52 UTC 2012 - Nico.Laus.2001@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-keyring
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -11,12 +11,13 @@
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-keyring
Version: 0.9.1
Version: 1.2.2
Release: 0
Url: http://bitbucket.org/kang/python-keyring-lib
Summary: Store and access your passwords safely
@ -25,8 +26,12 @@ Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/k/keyring/keyring-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: unzip
# Test requirements:
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-pytest-runner
BuildRequires: python-unittest2
Provides: python-keyring-kde = %{version}
Obsoletes: python-keyring-kde < %{version}
Provides: python-keyring-gnome = %{version}
@ -43,6 +48,8 @@ from python. It can be used in any application that needs safe password storage.
%prep
%setup -q -n keyring-%{version}
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' keyring/cli.py keyring/backends/_win_crypto.py
%build
python setup.py build
@ -50,14 +57,13 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version} >= 1140
%check
nosetests
%endif
%files
%defattr(-,root,root)
%doc CONTRIBUTORS.txt README CHANGES.txt
%doc CONTRIBUTORS.txt README.rst CHANGES.rst
%{_bindir}/keyring
%{python_sitelib}/*
%changelog