Re: [SPDX] packages that are "not valid neither as Callaway nor as SPDX"

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

 




Dne 08. 09. 24 v 17:35 Miroslav Suchý napsal(a):
Dne 08. 09. 24 v 3:54 odp. Barry napsal(a):
$ LC_ALL=C rpmspec -q --qf '%{license}\n' ruby.spec
error: ruby.spec: line 241: failed to load macro file /home/msuchy/rpmbuild/SOURCES/macros.ruby
I have hit rslated issues like this in the past, rpmspec needs the rpm macro dependencies to be installed.
I assume if you install all the fedora rpm macro packages this will your script to run over all spec files.

Nope. If it would be required as build dependency, then it was no problem (but then the macros would not be available during building of src.rpm)

This issue is because (to speak about this specific case) ruby uses:

Source4: macros.ruby

%{load:%{SOURCE4}}

So rpmbuild looks for macros.ruby in %_sourcedir and that is normally ~/rpmbuild/SOURCES/


https://github.com/rpm-software-management/rpm/issues/1171


Vít


When I redifine

  %_sourcedir .

and then run the `rpmspec` tool in dist-git checkout then it does the right thing.

   $ rpmspec -q --qf '%{license}\n' --define='_sourcedir .' ruby.spec


-- 
Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux