Python packaging guidelines example spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/#_example_spec_file

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!
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux