python-SecretStorage/python-SecretStorage.spec

99 lines
3.0 KiB
RPMSpec
Raw Normal View History

2019-11-27 16:16:41 +08:00
%global package_description \
2020-12-03 16:16:54 +08:00
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\
(since version 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).\
The documentation can be found on `secretstorage.readthedocs.io`_.
%global _empty_manifest_terminate_build 0
2019-11-27 16:16:41 +08:00
Name: python-SecretStorage
2020-12-03 16:16:54 +08:00
Version: 3.3.0
Release: 1
2019-11-27 16:16:41 +08:00
Summary: Python bindings to FreeDesktop.org Secret Service API
2020-12-03 16:16:54 +08:00
License: BSD 3-Clause License
URL: https://github.com/mitya57/secretstorage
Source0: https://launchpad.net/python-secretstorage/trunk/3.3.0/+download/SecretStorage-3.3.0.tar.gz
BuildArch: noarch
2019-11-27 16:16:41 +08:00
2020-12-03 16:16:54 +08:00
Requires: python3-cryptograph
Requires: python3-jeepney
2019-11-27 16:16:41 +08:00
%description
%{package_description}
%package -n python3-SecretStorage
2020-12-03 16:16:54 +08:00
Summary: Python bindings to FreeDesktop.org Secret Service API
Provides: python-SecretStorage
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2019-11-27 16:16:41 +08:00
%description -n python3-SecretStorage
%{package_description}
%package help
2020-12-03 16:16:54 +08:00
Summary: Development documents and examples for SecretStorage
Provides: python3-SecretStorage-doc
2019-11-27 16:16:41 +08:00
%description help
2020-12-03 16:16:54 +08:00
%{package_description}
2019-11-27 16:16:41 +08:00
%prep
2020-12-03 16:16:54 +08:00
%autosetup -n SecretStorage-%{version}
2019-11-27 16:16:41 +08:00
%build
%py3_build
%install
%py3_install
2020-12-03 16:16:54 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-SecretStorage -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_pkgdocdir}
2019-11-27 16:16:41 +08:00
%changelog
2020-12-03 16:16:54 +08:00
* Tue Dec 1 2020 baizhonggui <baizhonggui@huawei.com> - 3.3.0-1
- Update to 3.3.0
2020-08-11 10:20:27 +08:00
* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.3.1-12
- Remove python2
2019-11-27 16:16:41 +08:00
* Mon Nov 25 2019 lihao <lihao129@huawei.com> - 2.3.1-11
- Package Init
* Fri Nov 22 2019 lihao <lihao129@huawei.com> - 2.3.1-10.h1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix testcase error