forked from pool/python-SecretStorage
fix broken link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SecretStorage?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
9365cee2b9
commit
ac2d388141
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package python-SecretStorage
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,41 +12,31 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-SecretStorage%{psuffix}
|
||||
Version: 3.3.3
|
||||
Name: python-SecretStorage
|
||||
Version: 2.3.1
|
||||
Release: 0
|
||||
Summary: Python bindings to FreeDesktoporg Secret Service API
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/mitya57/secretstorage
|
||||
Source: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
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
|
||||
BuildRequires: python-cryptography
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Requires: dbus-1-python
|
||||
Requires: python-cryptography
|
||||
Requires: python-jeepney >= 0.6
|
||||
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
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module SecretStorage = %{version}}
|
||||
BuildRequires: %{python_module cryptography}
|
||||
BuildRequires: %{python_module jeepney >= 0.6}
|
||||
BuildRequires: dbus-1-daemon
|
||||
BuildRequires: gnome-keyring
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This module provides a way for securely storing passwords and other secrets.
|
||||
@@ -71,26 +61,14 @@ The documentation can be found on `pythonhosted.org`_.
|
||||
%setup -q -n SecretStorage-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# gnome-keyring "forgets" to create this directory under certain conditions
|
||||
mkdir -p $HOME/.cache
|
||||
%python_expand dbus-run-session -- $python -m unittest discover -s tests
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc changelog README.rst
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc changelog README.rst LICENSE
|
||||
%{python_sitelib}/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user