Upgrade package to version 12.1.0

This commit is contained in:
desert-sailor 2023-07-07 17:28:36 +08:00
parent 8a623b5cb1
commit 13ed47f9cd
3 changed files with 46 additions and 12 deletions

BIN
pip-run-12.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,24 +1,28 @@
%global _empty_manifest_terminate_build 0
Name: python-pip-run
Version: 8.8.1
%global pypi_name pip-run
Name: python-%{pypi_name}
Version: 12.1.0
Release: 1
Summary: install packages and run Python with them
License: MIT
URL: https://github.com/jaraco/pip-run
Source0: https://files.pythonhosted.org/packages/04/d3/6a68965484d52e1651bd5c62200abb31765a93bf283b0406f07ab2e1b02a/pip-run-8.8.1.tar.gz
Source0: https://files.pythonhosted.org/packages/fc/8f/03b3374e7adb09129be9dca512b7d3ab54b4e96628b1e579d3bfd2900f76/pip-run-12.1.0.tar.gz
BuildArch: noarch
%description
provides on-demand temporary package installation for a single interpreter run.
%package -n python3-pip-run
Summary: install packages and run Python with them
Provides: python-pip-run
Provides: python-%{pypi_name}
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
# General requires
BuildRequires: python3-path
BuildRequires: python3-packaging
@ -31,24 +35,54 @@ Requires: python3-packaging
Requires: python3-sphinx
Requires: python3-rst-linker
%description -n python3-pip-run
%description -n python3-%{pypi_name}
provides on-demand temporary package installation for a single interpreter run.
%package help
Summary: install packages and run Python with them
Provides: python3-pip-run-doc
%description help
provides on-demand temporary package installation for a single interpreter run.
%prep
%autosetup -n pip-run-%{version}
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
mkdir -p %{buildroot}%{python_sitelib}
cp -raf %{_builddir}/pip-run-8.8.1/pip_run %{buildroot}%{python_sitelib}
install -m 0755 %{_builddir}/pip-run-8.8.1/pip-run.py %{buildroot}%{python_sitelib}
%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}
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}/doclist.lst .
%files -n python3-pip-run
%{python_sitelib}/pip_run
%{python_sitelib}/pip-run.py
%files -n python3-%{pypi_name}
%doc README.rst NEWS.rst
%license LICENSE
%{_bindir}/pip-run
%{python3_sitelib}/pip-run.py
%{python3_sitelib}/__pycache__/pip-run.*
%{python3_sitelib}/pip_run
%{python3_sitelib}/pip_run*.dist-info/
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jul 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 12.1.0-1
- Upgrade to version 12.1.0
* Mon Aug 01 2022 OpenStack_SIG <openstack@openeuler.org> - 8.8.1-1
- Init package python3-pip-run of version 8.8.1