Python packaging guidelines example spec file
by Brad Bell
How does one run rpmbuild -ba on the the Pello example in the python packaging guidelines ?
The Pello.spec file appears under the heading Example spec file at:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_exampl...
In Pello.spec, the following lines appear:
Version: 1.0.3
URL: https://github.com/fedora-python/Pello
Source: %{url}/archive/v%{version}/Pello-%{version}.tar.gz
This indicates that the web address for the upstream source is
https://github.com/fedora-python/Pello/archive/v1.0.3/Pello-1.0.3.tar.gz
I placed Pello.spec in my SPECS directory, Pello-1.0.3.tar.gz in my SOURCES directory,
and executed the command
rmpbuild -ba SPECS/Pello.spec
from the rpmbuild directory and got the following result:
... snip ...
Requirement satisfied: setuptools>=42
(installed: setuptools 59.6.0)
Handling wheel from build-system.requires
Requirement not satisfied: wheel
Exiting dependency generation pass: build backend
+ RPM_EC=0
++ jobs -p
+ exit 0
error: Failed build dependencies:
python3dist(wheel) is needed by python-pello-1.0.3-1.fc36.noarch
...
Because the guidelines say pyhon3-devel needs to be list in BuildRequires,
I checked that it is installed on my system:
rpmbuild>sudo dnf install python3-devel
...
Last metadata expiration check: 3:55:50 ago on Sat 07 Jan 2023 12:05:27 AM MST.
Package python3-devel-3.10.9-1.fc36.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
1 year, 3 months