Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
dcdb143ca9
!17 correct date format error
From: @ikernel-mryao 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-24 08:53:10 +00:00
yaoguangzhong
90a62b7441 correct date format error
Signed-off-by: Guangzhong Yao <yaoguangzhong@xfusion.com>
2022-12-24 14:53:10 +08:00
openeuler-ci-bot
1cbcfaeeb2 !7 Update to 23.4.0
Merge pull request !7 from jpzhang187/openEuler-22.03-LTS-Next
2021-12-30 11:18:16 +00:00
jpzhang187
d9b4273346 Update to 23.4.0 2021-12-27 01:50:54 +08:00
openeuler-ci-bot
59467c88ab !6 Upgrade to 23.0.0 to support OpenStack-W
From: @huangtianhua
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-07-14 06:00:50 +00:00
huangtianhua
551c254894 Upgrade to 23.0.0 to support OpenStack-W 2021-07-14 04:33:09 +00:00
openeuler-ci-bot
fb9fd2ee58 !5 Update python-keyring to 21.5.0 version
From: @baizg1107
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-12-04 10:22:38 +08:00
baizg1107
e3505ce8a1 Update to 21.5.0 2020-12-03 15:21:59 +08:00
openeuler-ci-bot
24194cc60a !4 Remove python2-keyring subpackage
Merge pull request !4 from ultra_planet/master
2020-08-10 15:28:19 +08:00
lingsheng
02e9b1c784 Remove python2-keyring subpackage 2020-08-10 15:04:36 +08:00
3 changed files with 80 additions and 56 deletions

Binary file not shown.

BIN
keyring-23.4.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,81 +1,105 @@
%global _empty_manifest_terminate_build 0
Name: python-keyring
Version: 13.2.1
Release: 4
Summary: Python library to access the system keyring service
License: MIT and Python
Version: 23.4.0
Release: 1
Summary: Store and access your passwords safely.
License: MIT License
URL: https://github.com/jaraco/keyring
Source0: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-setuptools_scm
BuildRequires: python3-toml
Requires: python3-importlib-metadata
Requires: python3-SecretStorage
Requires: python3-jeepney
Requires: python3-pywin32-ctypes
Requires: python3-sphinx
Requires: python3-pytest
Requires: python3-pytest-checkdocs
Requires: python3-pytest-flake8
Requires: python3-pytest-cov
Requires: python3-pytest-black
Requires: python3-pytest-mypy
%description
The Python keyring lib provides a easy way to access the system keyring
service from python. It can be used in any application that needs safe
password storage.
This package only provides file-based pseudo-keyrings. To interface with
gnome-keyring or KWallet, please install one of python-keyring-gnome or
python-keyring-kwallet.
On Linux, the KWallet backend relies on dbus-python_, which does not always
install correctly when using pip (compilation is needed). For best results,
install dbus-python as a system package.
%package -n python2-keyring
Summary: A library to get keyring service by python2
BuildRequires: python2-devel python2-setuptools python2-setuptools_scm python2-pytest-cov
BuildRequires: python2-keyczar python2-mock
BuildRequires: python2-entrypoints python2-pytest libffi-devel openssl-devel
%package -n python3-keyring
Summary: Store and access your passwords safely.
Provides: python-keyring
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
Requires: python2-SecretStorage python2-entrypoints
%description -n python3-keyring
On Linux, the KWallet backend relies on dbus-python_, which does not always
install correctly when using pip (compilation is needed). For best results,
install dbus-python as a system package.
%{?python_provide:%python_provide python2-keyring}
Obsoletes: %{name}-kwallet < %{version}-%{release} %{name}-gnome < %{version}-%{release}
%description -n python2-keyring
The Python keyring lib provides a easy way to access the system keyring
service from python. It can be used in any application that needs safe
password storage.
%package -n python%{python3_pkgversion}-keyring
Summary: A library to get keyring service by python3
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-setuptools_scm
BuildRequires: python%{python3_pkgversion}-entrypoints python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-pytest-cov
Requires: python%{python3_pkgversion}-SecretStorage python%{python3_pkgversion}-entrypoints
%{?python_provide:%python_provide python%{python3_pkgversion}-keyring}
%description -n python%{python3_pkgversion}-keyring
The Python keyring lib provides a easy way to access the system keyring
service from python. It can be used in any application that needs safe
password storage.
%package help
Summary: Development documents and examples for keyring
Provides: python3-keyring-doc
%description help
On Linux, the KWallet backend relies on dbus-python_, which does not always
install correctly when using pip (compilation is needed). For best results,
install dbus-python as a system package.
%prep
%autosetup -n keyring-%{version} -p1
rm -frv keyring.egg-info
sed -i '1{\@^#!/usr/bin/env python@d}' keyring/cli.py
sed -i -e "\@use_vcs_version@s/^.*$/\tversion = \"%{version}\",/g" -e {/\'hgtools\'/d} setup.py
%autosetup -n keyring-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
mv %{buildroot}%{_bindir}/keyring %{buildroot}%{_bindir}/keyring-python2
%py3_install
cp -a %{buildroot}%{_bindir}/keyring %{buildroot}%{_bindir}/keyring-python%{python3_pkgversion}
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 python2-keyring
%{_bindir}/keyring-python2
%{python2_sitelib}/{keyring,keyring-%{version}-py%{python2_version}.egg-info}
%doc CHANGES.rst README.rst
%files -n python3-keyring -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python%{python3_pkgversion}-keyring
%{_bindir}/{keyring-python%{python3_pkgversion},keyring}
%{python3_sitelib}/{keyring-%{version}-py%{python3_version}.egg-info,keyring}
%doc CHANGES.rst README.rst
%files help -f doclist.lst
%{_pkgdocdir}
%changelog
* Mon Dec 27 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 23.4.0-1
- Update to 23.4.0
* Wed Jul 14 2021 huangtianhua <huangtianhua@huawei.com> - 23.0.0-1
- Upgrade to 23.0.0 to support OpenStack-W
* Thu Dec 03 2020 baizhonggui <baizhonggui@huawei.com> - 21.5.0-1
- Update to 21.5.0
* Mon Aug 10 2020 lingsheng <lingsheng@huawei.com> - 13.2.1-5
- Remove python2-keyring subpackage
* Thu Nov 28 2019 wutao <wutao61@huawei.com> - 13.2.1-4
- Package init