112 Star 0 Fork 17

src-openEuler / python-keyring
Closed

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
python-keyring.spec 3.10 KB
Copy Edit Raw Blame History
starlet_dx authored 2022-08-16 16:34 +08:00 . Update to 15.2.0
Name: python-keyring
Version: 15.2.0
Release: 1
Summary: Python library to access the system keyring service
License: MIT and Python
URL: https://github.com/jaraco/keyring
Source0: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
BuildArch: noarch
%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.
%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
Requires: python2-SecretStorage python2-entrypoints
%{?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.
%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
%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}
%files -n python2-keyring
%{_bindir}/keyring-python2
%{python2_sitelib}/{keyring,keyring-%{version}-py%{python2_version}.egg-info}
%doc CHANGES.rst README.rst
%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
%changelog
* Tue Aug 16 2022 yaoxin <yaoxin30@h-partners.com> - 15.2.0-1
- Update to 15.2.0
* Thu Nov 28 2019 wutao <wutao61@huawei.com> - 13.2.1-4
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-keyring.git
git@gitee.com:src-openeuler/python-keyring.git
src-openeuler
python-keyring
python-keyring
openEuler-20.03-LTS-SP3

Search