Dne 30. 10. 23 v 13:30 Ben Beasley napsal(a):
On 10/30/23 07:09, Fabio Valentini wrote:Usually, steps like calling `%configure` or `%meson` SHOULD (or must?)
Or newly in `%conf` section: https://rpm-software-management.github.io/rpm/manual/spec.html#conf-since-rpm--418 Vít
To add to that, one of the main reasons for running things like %configure or %meson in %build rather than %prep is to minimize the number of dependencies for building the source RPM. It’s inconvenient to have to install a long list of BuildRequires (on the host system rather than just the build chroot) in order to be able to run “fedpkg srpm”.happen in %build, not in `prep`. However, this is kind of a special case, where you need to prepare the Python package in order to run `%pyproject_buildrequires`, so by definition, it will need to happen in `%prep`. I don't really see a way around that, other than ... not using dynamically generated BuildRequires. FabioHowever, I agree that anything that affects the generated BuildRequires certainly must be run in %prep. I personally think that the disadvantages of doing without generated BuildRequires are generally worse than the disadvantages of having significant dependencies in %prep, although I suppose this is open to debate._______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxxFedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelinesList Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital 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