Hello community,
here is the log from the commit of package python-SecretStorage for
openSUSE:Factory checked in at 2017-05-16 14:27:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-SecretStorage (Old)
and /work/SRC/openSUSE:Factory/.python-SecretStorage.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SecretStorage"
Tue May 16 14:27:52 2017 rev:4 rq:492351 version:2.3.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-SecretStorage/python-SecretStorage.changes
2017-01-23 11:31:28.272235482 +0100
+++
/work/SRC/openSUSE:Factory/.python-SecretStorage.new/python-SecretStorage.changes
2017-05-16 14:27:53.648634566 +0200
@@ -1,0 +2,11 @@
+Mon May 1 19:13:10 UTC 2017 - [email protected]
+
+- Fix source URL.
+
+-------------------------------------------------------------------
+Mon May 1 17:22:53 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+- Fix source URL.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-SecretStorage.spec ++++++
--- /var/tmp/diff_new_pack.e2f2jd/_old 2017-05-16 14:27:54.360534559 +0200
+++ /var/tmp/diff_new_pack.e2f2jd/_new 2017-05-16 14:27:54.364533998 +0200
@@ -16,6 +16,9 @@
#
+%bcond_without tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-SecretStorage
Version: 2.3.1
Release: 0
@@ -23,24 +26,29 @@
License: BSD-3-Clause
Group: Development/Languages/Python
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
+Source:
https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module cryptography}
BuildRequires: dbus-1-python
-BuildRequires: python-devel
-BuildRequires: python-setuptools
-Requires: dbus-1-python
-BuildRequires: python-cryptography
-Requires: python-cryptography
+BuildRequires: dbus-1-python3
# Testing requirements
+%if %{with tests}
BuildRequires: dbus-1-x11
BuildRequires: gnome-keyring
+%endif
+Requires: python-cryptography
+%ifpython2
+Requires: dbus-1-python
+%endif
+%ifpython2
+Requires: dbus-1-python3
+%endif
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()")}
-%else
BuildArch: noarch
-%endif
+%python_subpackages
%description
This module provides a way for securely storing passwords and other secrets.
@@ -65,17 +73,18 @@
%setup -q -n SecretStorage-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# gnome-keyring "forgets" to create this directory under certain conditions
mkdir -p $HOME/.cache
-dbus-run-session -- python -m unittest discover -s tests
+%python_expand dbus-run-session -- $python -m unittest discover -s tests
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%doc changelog README.rst LICENSE
%{python_sitelib}/*