%global _empty_manifest_terminate_build 0 %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/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-%{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 BuildRequires: python3-sphinx # General requires Requires: python3-pip Requires: python3-path Requires: python3-packaging Requires: python3-sphinx Requires: python3-rst-linker %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 %{pypi_name}-%{version} %build %pyproject_build %install %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-%{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 - 12.1.0-1 - Upgrade to version 12.1.0 * Mon Aug 01 2022 OpenStack_SIG - 8.8.1-1 - Init package python3-pip-run of version 8.8.1