Zbigniew Jędrzejewski-Szmek writes:

The issue is that in %prep, %buildsubdir is not defined, so the definition
of %_package_note_file, which uses %buildsubdir, has a different value than
in %build and later. Generally the best solution is to move the step that
tries to make use of the package notes file in %prep to %build.
But looking at https://src.fedoraproject.org/rpms/courier- unicode/blob/rawhide/f/courier-unicode.spec,

I see that in this one, %configure gets invoked from %build.

I don't see anything in %prep that'd cause an issue. Can you post the
spec file that is causing problems?

But in mine's %configure gets invoked in %prep instead:

https://github.com/svarshavchik/courier-libs/blob/master/unicode/courier- unicode.spec.in

I guess I'll move this one to %build as well. I tried searching for some current documentation, and all the examples I found also invoked %configure from %build.

My recollection was that early rpm packaging documentation was otherwise, in the context of using --short-circuit. That is, the tutorials were: get the configure options right, then use -bb --short-circuit to get your make to succeed, you've already taken care of ./configure in the %setup step.


Attachment: pgpspm0nFY1Hk.pgp
Description: PGP signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to