%pyproject_buildrequires: Generate BuildRequires for this package
This package is already installed -- otherwise the macro would not even exist. However, since python3-devel has started to Require pyproject-rpm-macros, it is no longer possible to use `repoquery --whatrequires pyproject-rpm-macros` to get a reliable list of packages that use the macros. This was, all packages that use %pyproject_buildrequires will BuildRequire the macros explicitly. (In the future, we could even include a stub version of %pyproject_buildrequires in pyproject-srpm-macros (always installed in the buildroot), that only echoes this package, so packagers would not need to manually BuildRequire anything at all.)
This commit is contained in:
parent
c3a20e9a33
commit
f4bbff36d2
@ -125,6 +125,7 @@ fi
|
||||
%{-t:%{error:The -N and -t options are mutually exclusive}}
|
||||
}
|
||||
%{-e:%{expand:%global toxenv %(%{__python3} -s %{_rpmconfigdir}/redhat/pyproject_construct_toxenv.py %{?**})}}
|
||||
echo 'pyproject-rpm-macros' # we already have this installed, but this way, it's repoqueryable
|
||||
echo 'python%{python3_pkgversion}-devel'
|
||||
echo 'python%{python3_pkgversion}dist(pip) >= 19'
|
||||
echo 'python%{python3_pkgversion}dist(packaging)'
|
||||
|
@ -6,7 +6,7 @@ License: MIT
|
||||
|
||||
# Keep the version at zero and increment only release
|
||||
Version: 0
|
||||
Release: 54%{?dist}
|
||||
Release: 55%{?dist}
|
||||
|
||||
# Macro files
|
||||
Source001: macros.pyproject
|
||||
@ -120,6 +120,10 @@ export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Mon Jan 24 2022 Miro Hrončok <mhroncok@redhat.com> - 0-55
|
||||
- %%pyproject_buildrequires: Generate BuildRequires for this package
|
||||
This package is already installed, but this way, the resulting SRPM explicitly BuildRequires it
|
||||
|
||||
* Wed Jan 19 2022 Karolina Surma <ksurma@redhat.com> - 0-54
|
||||
- Include compressed manpages to the package if flag '+auto' is provided to %%pyproject_save_files
|
||||
- Fixes: rhbz#2033254
|
||||
|
Loading…
Reference in New Issue
Block a user