- Drop old SUSE checks

- Add python-unittest2 build requirement to make sure the testsuite
  passes on SLE_11_SP2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=10
This commit is contained in:
Sascha Peilicke 2013-02-11 09:21:32 +00:00 committed by Git OBS Bridge
parent 50f28b9f1f
commit 00212740b3
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
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

View File

@ -11,10 +11,11 @@
# 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: 1.2.2
Release: 0
@ -25,11 +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-mock
BuildRequires: python-nose
BuildRequires: python-pytest-runner
BuildRequires: unzip
Requires: python-mock
# 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}
@ -47,8 +49,7 @@ 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
sed -i '/^#!/d' ./keyring/backends/_win_crypto.py
sed -i '/^#!/d' keyring/cli.py keyring/backends/_win_crypto.py
%build
python setup.py build
@ -56,10 +57,8 @@ 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)