[Rpm-maint] [rpm-software-management/rpm] Add a man page for RPM dependency generators (PR #3957)
Panu Matilainen
notifications at github.com
Tue Sep 23 08:06:34 UTC 2025
@pmatilai commented on this pull request.
> +%__frob_requires %{_rpmconfigdir}/frobnize --requires
+%__frob_path \\.frob$
+%__frob_magic ^.* a frob file .*$
+```
+
+This file defines a file attribute named *frob* that matches any files with the
+_.frob_ suffix or a magic string containing "a frob file". It also defines two
+generators for that attribute that use the script _frobnize_ installed in the
+*%{\_rpmconfigdir}* directory, with the following contents:
+
+```
+#!/bin/bash
+# Frobnize script
+
+mode=$1
+file=$(head -n1)
This should use a while loop to make sure all the input gets read. It's also handy for testing purposes.
I'm also wondering if we should demo the multifile protocol here, because that's what anybody writing a new generator should be using really.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3957#pullrequestreview-3256761388
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3957/review/3256761388 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250923/f55f9859/attachment.htm>
More information about the Rpm-maint
mailing list