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/
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
--
_______________________________________________
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, report it:
https://pagure.io/fedora-infrastructure/new_issue