diff --git a/.gitignore b/.gitignore index 87cb56f..7cc2cb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +SOURCES/libsecret-0.21.4.tar.xz SOURCES/secretstorage-3e5097c.tar.gz diff --git a/.python-SecretStorage.metadata b/.python-SecretStorage.metadata index 9bbec59..e092e61 100644 --- a/.python-SecretStorage.metadata +++ b/.python-SecretStorage.metadata @@ -1 +1,2 @@ +94df91594f14224e1aa02bfe8d15dcc657298cc1 SOURCES/libsecret-0.21.4.tar.xz bebdc484b2a2a61151a16603e2719e7ff1d32a87 SOURCES/secretstorage-3e5097c.tar.gz diff --git a/SPECS/python-SecretStorage.spec b/SPECS/python-SecretStorage.spec index c854155..61f7221 100644 --- a/SPECS/python-SecretStorage.spec +++ b/SPECS/python-SecretStorage.spec @@ -1,8 +1,8 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.6.5) +## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 9; + release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} @@ -20,17 +20,20 @@ Version: 3.3.3^%{date}git%{shortcommit} Release: %autorelease Summary: Python bindings to FreeDesktop.org Secret Service API URL: https://github.com/mitya57/secretstorage -Source: https://github.com/mitya57/secretstorage/archive/%{commit}/secretstorage-%{shortcommit}.tar.gz +Source0: 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 @@ -86,6 +89,7 @@ Documentation for SecretStorage. %prep %autosetup -n secretstorage-%{commit} +tar xf %{SOURCE1} %build %pyproject_wheel @@ -107,7 +111,7 @@ find build -name 'doctrees' -type d -print -exec rm -r '{}' + %pyproject_check_import %if %{with tests} export %{py3_test_envvars} -for MOCK in /usr/share/libsecret/mock-service-{normal,only-plain,lock}.py; do +for MOCK in libsecret-0.21.4/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 @@ -121,18 +125,9 @@ done %endif %changelog -* Mon Feb 10 2025 Eduard Basov - 3.3.3^20240314git3e5097c-9 -- Rebuilt for MSVSphere 10 - ## START: Generated by rpmautospec -* Fri Jul 19 2024 Fedora Release Engineering - 3.3.3^20240314git3e5097c-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Mon Jul 08 2024 Miro HronĨok - 3.3.3^20240314git3e5097c-8 -- Use Fedora-packaged libsecret-mock-service to run the tests - -* Sat Jun 08 2024 Python Maint - 3.3.3^20240314git3e5097c-7 -- Rebuilt for Python 3.13 +* Mon Feb 10 2025 Eduard Basov - 3.3.3^20240314git3e5097c-6 +- Rebuilt for MSVSphere 10 * Thu Mar 28 2024 Charalampos Stratakis - 3.3.3^20240314git3e5097c-6 - Convert to SPDX license