!7 Update package to version 22.10.0

From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2022-12-15 09:31:37 +00:00 committed by Gitee
commit 95cbcbdb94
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 54 additions and 20 deletions

Binary file not shown.

BIN
incremental-22.10.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,40 +1,74 @@
Name: python-incremental %global _empty_manifest_terminate_build 0
Version: 21.3.0 Name: python-incremental
Release: 1 Version: 22.10.0
Summary: A small library versions your Python projects Release: 1
License: MIT Summary: A small library versions your Python projects
URL: https://github.com/twisted/incremental License: MIT
Source0: https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{version}.tar.gz URL: https://github.com/twisted/incremental
BuildArch: noarch Source0: https://files.pythonhosted.org/packages/86/42/9e87f04fa2cd40e3016f27a4b4572290e95899c6dce317e2cdb580f3ff09/incremental-22.10.0.tar.gz
BuildRequires: python3-devel python3-setuptools BuildArch: noarch
%description %description
Incremental is a small library that versions your Python projects. Incremental is a small library that versions your Python projects.
%package -n python3-incremental %package -n python3-incremental
Summary: A small library versions your Python projects Summary: A small library versions your Python projects
%python_provide python3-incremental Provides: python-incremental = %{version}-%{release}
BuildRequires: python3-devel python3-setuptools
%description -n python3-incremental %description -n python3-incremental
Incremental is a small library that versions your Python projects. Incremental is a small library that versions your Python projects.
%package help
Summary: Development documents and examples for incremental
Provides: python3-incremental-doc
%description help
Incremental is a small library that versions your Python projects.
%prep %prep
%autosetup -n incremental-%{version} -p1 %autosetup -n incremental-%{version}
rm -rf incremental.egg-info
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_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-incremental %files -n python3-incremental -f filelist.lst
%doc LICENSE %dir %{python3_sitelib}/*
%doc README.rst
%{python3_sitelib}/incremental %files help -f doclist.lst
%{python3_sitelib}/incremental-%{version}-py%{python3_version}.egg-info %{_docdir}/*
%changelog %changelog
* Thu Dec 15 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 22.10.0-1
- Update package to version 22.10.0
* Thu Jun 09 2022 SimpleUpdate Robot <tc@openeuler.org> - 21.3.0-1 * Thu Jun 09 2022 SimpleUpdate Robot <tc@openeuler.org> - 21.3.0-1
- Upgrade to version 21.3.0 - Upgrade to version 21.3.0