On Mon Oct 9, 2023 at 17:30 +0200, Vít Ondruch wrote: > > Dne 09. 10. 23 v 9:21 Petr Pisar napsal(a): > > V Fri, Oct 06, 2023 at 06:06:14PM +0200, Vít Ondruch napsal(a): <snip> > > That's hilarious because it's completely out of specification for the genarators > > <https://rpm-software-management.github.io/rpm/manual/dependency_generators.html#generators>: > > > > A generator is just an executable that reads file name(s) from stdin > > > > While your rpm-local-generator-test.spec redefines it to a function reading > > an argument: > > > > %global __local_generator_provides() local-generator-provide(%%{basename:%{1}}) > > > > I'd like to see comments from RPM maintainers. > > > This is documented: > > https://rpm-software-management.github.io/rpm/manual/dependency_generators.html#parametric-macro-generators-rpm--416 > > I have used the function just because of simplicity, nothing else. You > can see real life usage of the function generators here: > > https://src.fedoraproject.org/rpms/python-rpm-generators/blob/rawhide/f/pythonname.attr Indeed, the parametric generators are quite convenient for simpler usecases, as you don't need to execute a bunch of processes just to print some text to stdout. For packages with a lot of files (e.g. ansible which I maintain), this really adds up. -- Maxwell G (@gotmax23) Pronouns: He/They _______________________________________________ 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