## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond docs 1 %bcond tests 1 %global commit 3e5097c3c9a9c4fbfec74df4ceb0387308648525 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20240314 Name: python-SecretStorage 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 License: BSD-3-Clause BuildArch: noarch 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 # For building the documentation %if %{with docs} BuildRequires: python3-sphinx %endif %generate_buildrequires %pyproject_buildrequires %description This module provides a way for securely storing passwords and other secrets. It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) and KSecretsService. The main classes provided are secretstorage.Item, representing a secret item (that has a label, a secret and some attributes) and secretstorage.Collection, a place items are stored in. SecretStorage supports most of the functions provided by Secret Service, including creating and deleting items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported). %package -n python3-secretstorage Summary: %{summary} %py_provides python3-SecretStorage %description -n python3-secretstorage This module provides a way for securely storing passwords and other secrets. It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) and KSecretsService. The main classes provided are secretstorage.Item, representing a secret item (that has a label, a secret and some attributes) and secretstorage.Collection, a place items are stored in. SecretStorage supports most of the functions provided by Secret Service, including creating and deleting items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported). %package -n python3-secretstorage-doc Summary: SecretStorage documentation %description -n python3-secretstorage-doc Documentation for SecretStorage. %prep %autosetup -n secretstorage-%{commit} %build %pyproject_wheel # Build the documentation %if %{with docs} sphinx-build-3 docs html # Remove unnecessary files generated by python-sphinx find build -name '.buildinfo' -delete -print find build -name 'doctrees' -type d -print -exec rm -r '{}' + %endif %install %pyproject_install %pyproject_save_files -l secretstorage %check %pyproject_check_import %if %{with tests} export %{py3_test_envvars} 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 %files -n python3-secretstorage -f %{pyproject_files} %doc changelog README.rst %if %{with docs} %files -n python3-secretstorage-doc %doc html/* %endif %changelog ## 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 * Thu Mar 28 2024 Charalampos Stratakis - 3.3.3^20240314git3e5097c-6 - Convert to SPDX license * Wed Mar 27 2024 Charalampos Stratakis - 3.3.3^20240314git3e5097c-2 - Convert to pyproject macros - Resolves: rhbz#2261541, rhbz#2221970 * Wed Mar 27 2024 Charalampos Stratakis - 3.3.3^20240314git3e5097c-1 - Update to 3e5097c git snapshot * Fri Jan 26 2024 Fedora Release Engineering - 3.3.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 3.3.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Python Maint - 3.3.3-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Sep 14 2022 Charalampos Stratakis - 3.3.3-1 - Update to 3.3.3(#2118032) * Sat Aug 06 2022 Charalampos Stratakis - 3.3.2-1 - Update to 3.3.2(#2076518) * Fri Jul 22 2022 Fedora Release Engineering - 3.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 3.3.1-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.3.1-2 - Rebuilt for Python 3.10 * Tue Mar 16 2021 Charalampos Stratakis - 3.3.1-1 - Update to version 3.3.1 (#1895611) * Wed Jan 27 2021 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 20 2020 Nils Philippsen - 3.2.0-2 - Remove stray white space in descriptions * Wed Nov 11 2020 Adam Williamson - 3.2.0-1 - Update to version 3.2.0 (needed for new python-keyring) * Tue Jul 28 2020 Fedora Release Engineering - 3.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 10 2020 Charalampos Stratakis - 3.1.2-1 - Update to version 3.1.2 (#1789073) * Tue May 26 2020 Miro Hrončok - 3.1.1-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 3.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 3.1.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 3.1.1-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 24 2019 William Moreno Reyes - 3.1.1-1 - Update to v3.1.1 BZ#1679779 * Sat Feb 02 2019 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Sep 24 2018 Miro Hrončok - 3.1.0-1 - Update to 3.1.0 (#1571015) - Drop Python 2 subpackage (upstream does not support Python 2 any more) * Fri Jul 13 2018 Fedora Release Engineering - 2.3.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 18 2018 Miro Hrončok - 2.3.1-9 - Rebuilt for Python 3.7 * Mon Mar 26 2018 Iryna Shcherbina - 2.3.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 2.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Sep 29 2017 Troy Dawson - 2.3.1-6 - Cleanup spec file conditionals * Thu Jul 27 2017 Fedora Release Engineering - 2.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.3.1-3 - Rebuild for Python 3.6 * Fri Nov 25 2016 Charalampos Stratakis - 2.3.1-2 - Use python-cryptography instead of python-crypto as runtime requirement * Sun Aug 28 2016 Charalampos Stratakis - 2.3.1-1 - Update to 2.3.1 - Replace python-crypto BuildRequires with python-cryptography * Tue Jul 19 2016 Fedora Release Engineering - 2.2.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Jul 12 2016 Charalampos Stratakis - 2.2.1-1 - Update to 2.2.1 * Mon May 16 2016 Charalampos Stratakis - 2.1.4-1 - Update to 2.1.4 - Provide a python 2 subpackage - Use python provides macros - Use newest python macros - Added license tag - Enabled tests - Added missing dependencies * Thu Feb 04 2016 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jul 17 2014 Christopher Meng - 2.1.1-1 - Update to 2.1.1 * Sat Jun 07 2014 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 29 2014 Christopher Meng - 2.1.0-1 - Update to 2.1.0 * Wed May 28 2014 Kalev Lember - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Sun Mar 30 2014 Christopher Meng - 2.0.0-1 - Update to 2.0.0 * Wed Nov 20 2013 Christopher Meng - 1.1.0-1 - Update to 1.1.0 * Fri Nov 15 2013 Christopher Meng - 1.0.0-0.3.bzr83 - Add license for doc package. - Disable tests not runnable in Koji. * Fri Nov 15 2013 Christopher Meng - 1.0.0-0.2.bzr83 - Snapshot 83 rev to allow tests in mock. * Tue Oct 22 2013 Christopher Meng - 1.0.0-1 - Initial Package. ## END: Generated by rpmautospec