15
0

Accepting request 442569 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/442569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SecretStorage?expand=0&rev=2
This commit is contained in:
2016-12-05 15:32:02 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 22 12:37:40 UTC 2016 - hpj@urpla.net
- add test section
-------------------------------------------------------------------
Thu Sep 1 05:28:50 UTC 2016 - tbechtold@suse.com

View File

@@ -26,11 +26,15 @@ Url: https://github.com/mitya57/secretstorage
# NOTE(toabctl): For whatever reason, the pypi.io url is not working...
#Source: https://pypi.io/packages/source/s/SecretStorage/SecretStorage-%{version}.tar.gz
Source: https://pypi.python.org/packages/a5/a5/0830cfe34a4cfd0d1c3c8b614ede1edb2aaf999091ac8548dd19cb352e79/SecretStorage-2.3.1.tar.gz
BuildRequires: python-cryptography
BuildRequires: dbus-1-python
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: dbus-1-python
BuildRequires: python-cryptography
Requires: python-cryptography
# Testing requirements
BuildRequires: dbus-1-x11
BuildRequires: gnome-keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@@ -66,6 +70,11 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
# gnome-keyring "forgets" to create this directory under certain conditions
mkdir $HOME/.cache
dbus-run-session -- python -m unittest discover -s tests
%files
%defattr(-,root,root,-)
%doc changelog README.rst LICENSE