| |
@@ -10,20 +10,17 @@
|
| |
Release: %autorelease
|
| |
Summary: Python bindings to FreeDesktop.org Secret Service API
|
| |
URL: https://github.com/mitya57/secretstorage
|
| |
- Source0: https://github.com/mitya57/secretstorage/archive/%{commit}/secretstorage-%{shortcommit}.tar.gz
|
| |
+ Source: https://github.com/mitya57/secretstorage/archive/%{commit}/secretstorage-%{shortcommit}.tar.gz
|
| |
License: BSD-3-Clause
|
| |
BuildArch: noarch
|
| |
|
| |
- # Use the latest libsecret from upstream to run the tests as
|
| |
- # built libsecret does not ship those Python files, TODO make it so
|
| |
- Source1: http://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.4.tar.xz
|
| |
-
|
| |
BuildRequires: python3-devel
|
| |
|
| |
# Test dependencies
|
| |
%if %{with tests}
|
| |
BuildRequires: /usr/bin/dbus-launch
|
| |
BuildRequires: /usr/bin/xvfb-run
|
| |
+ BuildRequires: libsecret-mock-service
|
| |
BuildRequires: python3-dbus
|
| |
BuildRequires: python3-gobject-base
|
| |
%endif
|
| |
@@ -79,7 +76,6 @@
|
| |
|
| |
%prep
|
| |
%autosetup -n secretstorage-%{commit}
|
| |
- tar xf %{SOURCE1}
|
| |
|
| |
%build
|
| |
%pyproject_wheel
|
| |
@@ -101,7 +97,7 @@
|
| |
%pyproject_check_import
|
| |
%if %{with tests}
|
| |
export %{py3_test_envvars}
|
| |
- for MOCK in libsecret-0.21.4/libsecret/mock-service-{normal,only-plain,lock}.py; do
|
| |
+ for MOCK in /usr/share/libsecret/mock-service-{normal,only-plain,lock}.py; do
|
| |
xvfb-run -a dbus-launch --exit-with-session %{python3} tests/run_tests.py ${MOCK}
|
| |
done
|
| |
%endif
|
| |
See https://src.fedoraproject.org/rpms/libsecret/c/afc97c7fcf58dafdf05805b15e2d615d92ff0e19