diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-03-24 08:33:37 +0000 | 
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-03-24 08:33:37 +0000 | 
| commit | 45d478d6a56c16bc9766ea6481e4f4aeab83e0d5 (patch) | |
| tree | 4ad7aa37c8f2a65fb1c8127c06d38db538327fb1 | |
| parent | cba0b0187b0aa7e0916eaa75b4ac80ceaa346d42 (diff) | |
automatic import of rpkg
| -rw-r--r-- | rpkg.spec | 9 | 
1 files changed, 9 insertions, 0 deletions
@@ -13,6 +13,15 @@ Source0:        https://pagure.io/releases/rpkg/%{name}-%{version}.tar.gz  # Enable python3 build by default  %global with_python3 1 +# This is intended for Python 3 only, hence also no Python version in the name. +%global __pytest /usr/bin/pytest%(test %{python3_pkgversion} == 3 || echo -%{python3_version}) +%global pytest %{expand:\\\ +  CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ +  PATH="%{buildroot}%{_bindir}:$PATH"\\\ +  PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}"\\\ +  PYTHONDONTWRITEBYTECODE=1\\\ +  %{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"}\\\ +  %__pytest}  # Fix for bug 1579367  # Due to https://pagure.io/koji/issue/912, python[23]-koji package does not  | 
