Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 401110f398a7afa65d0e47e35b2369db > files > 3

python-secretstorage-3.3.3-1.mga9.src.rpm

# Created by pyp2rpm-3.3.2
%global pypi_name SecretStorage
%global pkg_name secretstorage

Name:           python-%{pkg_name}
Version:        3.3.3
Release:        %mkrel 1
Summary:        Python bindings to FreeDesktop.org Secret Service API
Group:          Development/Python
License:        BSD 3-Clause License
URL:            https://pypi.org/project/SecretStorage
Source0:        %{pypi_source}
Source1:		https://download.gnome.org/sources/libsecret/0.18/libsecret-0.18.6.tar.xz
BuildArch:      noarch
BuildRequires: pyproject-rpm-macros
BuildRequires:	dbus-x11
BuildRequires:	x11-server-xvfb
BuildRequires:  python3-devel
BuildRequires:  python3dist(cryptography)
BuildRequires:	python3dist(dbus-python)
BuildRequires:	python3dist(pygobject)
BuildRequires:  python3dist(jeepney)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)

%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.

%package -n     python3-%{pkg_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

Requires:       python3dist(cryptography)
Requires:       python3dist(jeepney)

%description -n python3-%{pkg_name}
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.

%prep
%autosetup -n SecretStorage-%{version}
tar xf %{SOURCE1}


%build
%pyproject_wheel

# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%pyproject_install
%pyproject_save_files secretstorage

%check
export PYTHONPATH=%{buildroot}%{python3_sitelib}
for MOCK in libsecret-0.18.6/libsecret/mock-service-{normal,only-plain,lock}.py; do
  xvfb-run -a dbus-launch --exit-with-session %{__python3} tests/run_tests.py ${MOCK}
done
	
%files -n python3-%{pkg_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst html



%changelog
* Wed Sep 07 2022 neoclust <neoclust> 3.3.3-1.mga9
+ Revision: 1885282
- New version  3.3.3

* Fri Apr 01 2022 umeabot <umeabot> 3.3.1-5.mga9
+ Revision: 1838225
- Mageia 9 Mass Rebuild

* Thu Feb 17 2022 joequant <joequant> 3.3.1-4.mga9
+ Revision: 1778982
- update to python 3.10

* Tue Feb 15 2022 joequant <joequant> 3.3.1-3.mga9
+ Revision: 1775615
- fix egginfo version
- update to python 3.10

* Mon Mar 22 2021 sander85 <sander85> 3.3.1-2.mga9
+ Revision: 1707251
- Rebuild for python 3.9

* Sun Feb 28 2021 guillomovitch <guillomovitch> 3.3.1-1.mga9
+ Revision: 1694285
- new version 3.3.1

* Sun Dec 13 2020 guillomovitch <guillomovitch> 3.3.0-1.mga8
+ Revision: 1656413
- new version 3.3.0
- enable tests

* Sun Nov 08 2020 guillomovitch <guillomovitch> 3.2.0-1.mga8
+ Revision: 1643742
- new version 3.2.0

* Sat Feb 29 2020 wally <wally> 3.1.2-1.mga8
+ Revision: 1552084
- new version 3.1.2

* Sun Feb 16 2020 umeabot <umeabot> 3.1.1-3.mga8
+ Revision: 1533557
- Mageia 8 Mass Rebuild

* Sun Sep 22 2019 daviddavid <daviddavid> 3.1.1-2.mga8
+ Revision: 1444652
- rebuild for python3.8

* Sat Apr 20 2019 wally <wally> 3.1.1-1.mga7
+ Revision: 1393959
- imported package python-secretstorage