!5 Upgrade to 2.0.0

From: @wu-leilei 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2023-05-04 02:09:53 +00:00 committed by Gitee
commit dd9868bec8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 12 additions and 36 deletions

Binary file not shown.

BIN
iniconfig-2.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,12 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-iniconfig Name: python-iniconfig
Version: 1.1.1 Version: 2.0.0
Release: 2 Release: 1
Summary: iniconfig: brain-dead simple config-ini parsing Summary: iniconfig: brain-dead simple config-ini parsing
License: MIT License: MIT
URL: http://github.com/RonnyPfannschmidt/iniconfig URL: http://github.com/RonnyPfannschmidt/iniconfig
Source0: https://files.pythonhosted.org/packages/23/a2/97899f6bd0e873fed3a7e67ae8d3a08b21799430fb4da15cfedf10d6e2c2/iniconfig-1.1.1.tar.gz Source0: https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz
BuildRequires: python3-pip python3-wheel python3-hatchling python3-hatch-vcs
BuildArch: noarch BuildArch: noarch
Recommends: %{name}-help = %{version}-%{release} Recommends: %{name}-help = %{version}-%{release}
@ -39,46 +40,21 @@ Provides: python3-iniconfig-doc
%{_description} %{_description}
%prep %prep
%autosetup -n iniconfig-1.1.1 %autosetup -n iniconfig-%{version}
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install iniconfig==%{version}
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-iniconfig -f filelist.lst %files -n python3-iniconfig
%dir %{python3_sitelib}/* %{python3_sitelib}/*
%files help -f doclist.lst
%{_pkgdocdir}
%changelog %changelog
* Wed Apr 26 2023 wulei <wu_lei@hoperun.com> - 2.0.0-1
- Update to 2.0.0
* Wed Jun 08 2022 liukuo <liukuo@kylinos.cn> - 1.1.1-2 * Wed Jun 08 2022 liukuo <liukuo@kylinos.cn> - 1.1.1-2
- License compliance rectification - License compliance rectification