diff --git a/keyring-23.13.1.tar.gz b/keyring-23.13.1.tar.gz deleted file mode 100644 index 06648448a1d2891c69bbaa58fe7ed41534f16bd2..0000000000000000000000000000000000000000 Binary files a/keyring-23.13.1.tar.gz and /dev/null differ diff --git a/keyring-25.5.0.tar.gz b/keyring-25.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6a07812d9aea3cc4c440c69f1e8ab0d7d1d8edac Binary files /dev/null and b/keyring-25.5.0.tar.gz differ diff --git a/python-keyring.spec b/python-keyring.spec index 10af5a3d17c1126ea803c3df3b8a0bfd70732a85..7e3ab95037ede8c9d8033980855c8d42444392d0 100644 --- a/python-keyring.spec +++ b/python-keyring.spec @@ -1,14 +1,15 @@ %global _empty_manifest_terminate_build 0 Name: python-keyring -Version: 23.13.1 +Version: 25.5.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 +Source0: %{pypi_source keyring} BuildArch: noarch BuildRequires: python3-setuptools_scm BuildRequires: python3-toml +BuildRequires: python3-jaraco-classes python3-jaraco-functools python3-jaraco-context Requires: python3-importlib-metadata Requires: python3-SecretStorage Requires: python3-jeepney @@ -49,6 +50,9 @@ install dbus-python as a system package. %prep %autosetup -n keyring-%{version} -p1 +#add double quotation mark for usage example in explanatory note to Eliminate testing mistake +sed -i "s/>>> fs = getfixture('fs')/\">>> fs = getfixture('fs')\"/g" keyring/core.py +sed -i 's/>>> disable()/\">>> disable()\"/g' keyring/core.py %build %pyproject_build @@ -60,39 +64,22 @@ 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 . %check export PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -%files -n python3-keyring -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-keyring %{python3_sitelib}/* +%{_bindir}/keyring -%files help -f doclist.lst -%{_docdir}/* +%files help +%{_defaultdocdir}/* %changelog +* Thu Nov 07 2024 Ge Wang - 25.5.0-1 +- Update to version 25.5.0 + * Wed Jun 14 2023 yaoxin - 23.13.1-1 - Update to 23.13.1