!17 Update package to version 5.0.0

From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-02-21 09:29:52 +00:00 committed by Gitee
commit b1d88d6fe5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 26 additions and 44 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,28 +1,28 @@
%global _empty_manifest_terminate_build 0
Name: python-jaraco-collections
Version: 4.1.0
Release: 2
Summary: Collection objects similar to those in stdlib by jaraco
License: MIT
URL: https://github.com/jaraco/jaraco.collections
SOurce0: https://files.pythonhosted.org/packages/source/j/jaraco.collections/jaraco.collections-%{version}.tar.gz
BuildArch: noarch
Name: python-jaraco-collections
Version: 5.0.0
Release: 1
Summary: Collection objects similar to those in stdlib by jaraco
License: MIT
URL: https://github.com/jaraco/jaraco.collections
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.collections/jaraco.collections-%{version}.tar.gz
BuildArch: noarch
Requires: python3-sphinx
Requires: python3-pytest
Requires: python3-pytest-checkdocs
Requires: python3-pytest-flake8
Requires: python3-pytest-cov
Requires: python3-pytest-enabler
Requires: python3-pytest-black
Requires: python3-pytest-mypy
Requires: python3-sphinx
Requires: python3-pytest
Requires: python3-pytest-checkdocs
Requires: python3-pytest-flake8
Requires: python3-pytest-cov
Requires: python3-pytest-enabler
Requires: python3-pytest-black
Requires: python3-pytest-mypy
%description
A dictionary-like object that maps a range of values to a given value.
%package -n python3-jaraco-collections
Summary: Collection objects similar to those in stdlib by jaraco
Provides: python-jaraco-collections = %{version}-%{release}
Summary: Collection objects similar to those in stdlib by jaraco
Provides: python-jaraco-collections = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip python3-wheel python3-hatch-vcs
@ -30,8 +30,8 @@ BuildRequires: python3-pip python3-wheel python3-hatch-vcs
A dictionary-like object that maps a range of values to a given value.
%package help
Summary: Development documents and examples for jaraco.collections
Provides: python3-jaraco-collections-doc
Summary: Development documents and examples for jaraco.collections
Provides: python3-jaraco-collections-doc
%description help
A dictionary-like object that maps a range of values to a given value.
@ -42,40 +42,22 @@ A dictionary-like object that maps a range of values to a given value.
%pyproject_build
%install
%pyproject_install jaraco.collections==%{version}
%pyproject_install
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-jaraco-collections -f filelist.lst
%files -n python3-jaraco-collections
%{python3_sitelib}/*
%files help -f doclist.lst
%files help
%{_docdir}/*
%changelog
* Wed Feb 21 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.0.0-1
- Update package to version 5.0.0
* Tue Apr 25 2023 yaoxin <yao_xin@hoperun.com> - 4.1.0-2
- Modify the package compilation method and remove the adaptation to setup.py