Re: Python packaging guidelines example spec file

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

 



On 1/7/23 04:25, Brad Bell wrote:
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
...

Why not install the dependency that rpmbuild reports is missing?

sudu dnf install 'python3dist(wheel)'

or

sudo dnf builddep SPECS/Pello.spec

Also, this really isn't a question for the packaging list - which is all about developing guidelines, for more appropriate on the general Fedora development list.

--
Orion Poplawski
he/him/his  - surely the least important thing about me
IT Systems Manager                         720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion@xxxxxxxx
Boulder, CO 80301                 https://www.nwra.com/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
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