Blame SPECS/python-SecretStorage.spec

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