Blame SPECS/python-SecretStorage.spec

79638b
%global srcname SecretStorage
79638b
79638b
Name:			python-%{srcname}
79638b
Version:		3.3.1
79638b
Release:		1%{?dist}
79638b
Summary:		Python bindings to FreeDesktop.org Secret Service API
79638b
URL:			https://github.com/mitya57/secretstorage
79638b
Source0:		%pypi_source
79638b
License:		BSD
79638b
BuildArch:		noarch
79638b
79638b
# Use the latest libsecret from upstream to run the tests as
79638b
# built libsecret does not ship those Python files, TODO make it so
79638b
Source1:		http://download.gnome.org/sources/libsecret/0.20/libsecret-0.20.4.tar.xz
79638b
79638b
BuildRequires:	/usr/bin/dbus-launch
79638b
BuildRequires:	/usr/bin/xvfb-run
79638b
BuildRequires:	python3-devel
79638b
BuildRequires:	python3-cryptography
79638b
BuildRequires:	python3-dbus
79638b
BuildRequires:	python3-gobject-base
79638b
BuildRequires:	python3-jeepney
79638b
BuildRequires:	python3-setuptools
79638b
BuildRequires:	python3-sphinx
79638b
79638b
%{?python_enable_dependency_generator}
79638b
79638b
%description
79638b
This module provides a way for securely storing passwords and other secrets.
79638b
79638b
It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30)
79638b
and KSecretsService.
79638b
79638b
The main classes provided are secretstorage.Item, representing a secret item
79638b
(that has a label, a secret and some attributes) and secretstorage.Collection,
79638b
a place items are stored in.
79638b
79638b
SecretStorage supports most of the functions provided by Secret Service,
79638b
including creating and deleting items and collections, editing items, locking
79638b
and unlocking collections (asynchronous unlocking is also supported).
79638b
79638b
79638b
%package -n     python3-secretstorage
79638b
Summary:		%{summary}
79638b
79638b
Provides:		python3-%{srcname} = %{version}-%{release}
79638b
Obsoletes:		python3-%{srcname} < 3
79638b
79638b
%{?python_provide:%python_provide python3-secretstorage}
79638b
%{?python_provide:%python_provide python3-%{srcname}}
79638b
79638b
%description -n python3-secretstorage
79638b
This module provides a way for securely storing passwords and other secrets.
79638b
79638b
It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30)
79638b
and KSecretsService.
79638b
79638b
The main classes provided are secretstorage.Item, representing a secret item
79638b
(that has a label, a secret and some attributes) and secretstorage.Collection,
79638b
a place items are stored in.
79638b
79638b
SecretStorage supports most of the functions provided by Secret Service,
79638b
including creating and deleting items and collections, editing items, locking
79638b
and unlocking collections (asynchronous unlocking is also supported).
79638b
79638b
%package -n python3-secretstorage-doc
79638b
Summary:	SecretStorage documentation
79638b
Obsoletes:		python-%{srcname}-doc < 2.3.1-11
79638b
%{?python_provide:%python_provide python3-secretstorage-doc}
79638b
79638b
%description -n python3-secretstorage-doc
79638b
Documentation for SecretStorage.
79638b
79638b
%prep
79638b
%autosetup -n %{srcname}-%{version}
79638b
tar xf %{SOURCE1}
79638b
79638b
%build
79638b
%py3_build
79638b
79638b
# Build the documentation
79638b
%{__python3} setup.py build_sphinx
79638b
79638b
# Remove unnecessary files generated by python-sphinx
79638b
find build -name '.buildinfo' -delete -print
79638b
find build -name 'doctrees' -type d -print -exec rm -r '{}' +
79638b
79638b
%install
79638b
%py3_install
79638b
79638b
%check
79638b
export PYTHONPATH=%{buildroot}%{python3_sitelib}
79638b
for MOCK in libsecret-0.20.4/libsecret/mock-service-{normal,only-plain,lock}.py; do
79638b
  xvfb-run -a dbus-launch --exit-with-session %{__python3} tests/run_tests.py ${MOCK}
79638b
done
79638b
79638b
79638b
%files -n python3-secretstorage
79638b
%doc changelog README.rst
79638b
%license LICENSE
79638b
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
79638b
%{python3_sitelib}/secretstorage/
79638b
79638b
%files -n python3-secretstorage-doc
79638b
%doc build/sphinx/html/*
79638b
79638b
%changelog
79638b
* Tue Mar 16 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.3.1-1
79638b
- Update to version 3.3.1 (#1895611)
79638b
79638b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
79638b
79638b
* Fri Nov 20 2020 Nils Philippsen <nils@tiptoe.de> - 3.2.0-2
79638b
- Remove stray white space in descriptions
79638b
79638b
* Wed Nov 11 2020 Adam Williamson <awilliam@redhat.com> - 3.2.0-1
79638b
- Update to version 3.2.0 (needed for new python-keyring)
79638b
79638b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
79638b
79638b
* Wed Jun 10 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.1.2-1
79638b
- Update to version 3.1.2 (#1789073)
79638b
79638b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-6
79638b
- Rebuilt for Python 3.9
79638b
79638b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-5
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
79638b
79638b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-4
79638b
- Rebuilt for Python 3.8.0rc1 (#1748018)
79638b
79638b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-3
79638b
- Rebuilt for Python 3.8
79638b
79638b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
79638b
79638b
* Sun Feb 24 2019 William Moreno Reyes <williamjmorenor@gmail.com> - 3.1.1-1
79638b
- Update to v3.1.1
79638b
  BZ#1679779
79638b
79638b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
79638b
79638b
* Mon Sep 24 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-1
79638b
- Update to 3.1.0 (#1571015)
79638b
- Drop Python 2 subpackage (upstream does not support Python 2 any more)
79638b
79638b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-10
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
79638b
79638b
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-9
79638b
- Rebuilt for Python 3.7
79638b
79638b
* Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.1-8
79638b
- Update Python 2 dependency declarations to new packaging standards
79638b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
79638b
79638b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-7
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
79638b
79638b
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.3.1-6
79638b
- Cleanup spec file conditionals
79638b
79638b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
79638b
79638b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-4
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
79638b
79638b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-3
79638b
- Rebuild for Python 3.6
79638b
79638b
* Fri Nov 25 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.1-2
79638b
- Use python-cryptography instead of python-crypto as runtime requirement
79638b
79638b
* Sun Aug 28 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.1-1
79638b
- Update to 2.3.1
79638b
- Replace python-crypto BuildRequires with python-cryptography
79638b
79638b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
79638b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
79638b
79638b
* Tue Jul 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.2.1-1
79638b
- Update to 2.2.1
79638b
79638b
* Mon May 16 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.4-1
79638b
- Update to 2.1.4
79638b
- Provide a python 2 subpackage
79638b
- Use python provides macros
79638b
- Use newest python macros
79638b
- Added license tag
79638b
- Enabled tests
79638b
- Added missing dependencies
79638b
79638b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
79638b
79638b
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
79638b
79638b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
79638b
79638b
* Thu Jul 17 2014 Christopher Meng <rpm@cicku.me> - 2.1.1-1
79638b
- Update to 2.1.1
79638b
79638b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
79638b
79638b
* Thu May 29 2014 Christopher Meng <rpm@cicku.me> - 2.1.0-1
79638b
- Update to 2.1.0
79638b
79638b
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-2
79638b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
79638b
79638b
* Sun Mar 30 2014 Christopher Meng <rpm@cicku.me> - 2.0.0-1
79638b
- Update to 2.0.0
79638b
79638b
* Wed Nov 20 2013 Christopher Meng <rpm@cicku.me> - 1.1.0-1
79638b
- Update to 1.1.0
79638b
79638b
* Fri Nov 15 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-0.3.bzr83
79638b
- Add license for doc package.
79638b
- Disable tests not runnable in Koji.
79638b
79638b
* Fri Nov 15 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-0.2.bzr83
79638b
- Snapshot 83 rev to allow tests in mock.
79638b
79638b
* Tue Oct 22 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-1
79638b
- Initial Package.