<p><b>@pmatilai</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/rpm-software-management/rpm/pull/1043#discussion_r380126703">build/parseList.c</a>:</p>
<pre style='color:#555'>> +           spec->lineNum, name, poptStrerror(rc));
+       goto exit;
+    }
+
+    optCon = poptGetContext(NULL, argc, argv, optionsTable, 0);
+    while ((arg = poptGetNextOpt(optCon)) > 0) {
+
+       char * filename = poptGetOptArg(optCon);
+       if (!filename) {
+           rpmlog(RPMLOG_ERR,
+                  _("line %d: \"%%%s -f\" requires an argument.\n"),
+                  spec->lineNum, name);
+           goto exit;
+       }
+
+       addSource(spec, 0, filename, RPMTAG_SOURCE);
</pre>
<p>With all the other -f's it's intentionally left to be somebody elses headache: if you want it to be shipped with your srpm, you manually add a Source: for it, but if not then its assumed to be something from the build environment, one way or the other. Of course most of the time such things should be specified as sources. So adding a source for the file in which your sources are defined ... this gets a bit crazy.</p>
<p>And yeah, unlike %files -f, these cannot really be created by the build itself. Which means this is for most practical purposes just a specialized version of %include, with many/most of the same problems.</p>
<p>So what I'm really saying here is that we need to think this whole thing through properly before digging further into implementation details.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1043?email_source=notifications&email_token=ADLPZU6P3ME4H3EXJTXWSDLRDJXVRA5CNFSM4KPHM3AKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVYA5DI#discussion_r380126703">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYGW3CRKH4TKDSDIKTRDJXVRANCNFSM4KPHM3AA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZUZ5XRVPNU7D5H4QZ53RDJXVRA5CNFSM4KPHM3AKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVYA5DI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1043?email_source=notifications\u0026email_token=ADLPZU6P3ME4H3EXJTXWSDLRDJXVRA5CNFSM4KPHM3AKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVYA5DI#discussion_r380126703",
"url": "https://github.com/rpm-software-management/rpm/pull/1043?email_source=notifications\u0026email_token=ADLPZU6P3ME4H3EXJTXWSDLRDJXVRA5CNFSM4KPHM3AKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVYA5DI#discussion_r380126703",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>