[Rpm-ecosystem] Source RPM provides?

Pat Riehecky riehecky at fnal.gov
Wed Mar 13 13:13:03 UTC 2019



On 3/13/19 2:33 AM, Panu Matilainen wrote:
> On 3/12/19 5:00 PM, Neal Gompa wrote:
>> On Tue, Mar 12, 2019 at 10:49 AM Pat Riehecky <riehecky at fnal.gov> wrote:
>>>
>>> I've been doing a fair bit of mapping back and forth from binary 
>>> rpms to
>>> source rpms.  And I had a question:
>>>
>>> Would it make sense for a source rpm to have a generated 'Provides:' 
>>> for
>>> any %package defined within the spec?
>>>
>>> For example (actual syntax to be determined by folks smarter than 
>>> myself):
>>>
>>> $ rpm -qp --provides man-db-2.8.4-4.fc30.src.rpm
>>> rpmbuild(man-db)
>>> rpmbuild(man-db-cron)
>>> $
>>>
>>> I'd expect it to 'provide' all the %packages (even ones masked for your
>>> specific arch so that we don't deal with executing macros at query and
>>> whatnot).
>>>
>>> Thoughts?
>>>
>>
>> It'd probably be better if we had an equivalent to debbuild's
>> --showpkgs switch that parsed the spec file and identified what
>> packages would be built from it.
>
> You mean like this?
>
> [pmatilai🎩︎sopuli rpm]$ rpmspec -q --builtrpms rpm.spec
> rpm-4.14.2.1-4.fc29.1.x86_64
> rpm-libs-4.14.2.1-4.fc29.1.x86_64
> rpm-build-libs-4.14.2.1-4.fc29.1.x86_64
> rpm-sign-libs-4.14.2.1-4.fc29.1.x86_64
> rpm-devel-4.14.2.1-4.fc29.1.x86_64
> rpm-build-4.14.2.1-4.fc29.1.x86_64
> rpm-sign-4.14.2.1-4.fc29.1.x86_64
> python2-rpm-4.14.2.1-4.fc29.1.x86_64
> python3-rpm-4.14.2.1-4.fc29.1.x86_64
> rpm-apidocs-4.14.2.1-4.fc29.1.noarch
> rpm-cron-4.14.2.1-4.fc29.1.noarch
> rpm-plugin-selinux-4.14.2.1-4.fc29.1.x86_64
> rpm-plugin-syslog-4.14.2.1-4.fc29.1.x86_64
> rpm-plugin-systemd-inhibit-4.14.2.1-4.fc29.1.x86_64
> rpm-plugin-ima-4.14.2.1-4.fc29.1.x86_64
> rpm-plugin-prioreset-4.14.2.1-4.fc29.1.x86_64
> rpm-debuginfo-4.14.2.1-4.fc29.1.x86_64
> rpm-debugsource-4.14.2.1-4.fc29.1.x86_64
>
>     - Panu -
> _______________________________________________
>

I was completely unaware of this!  It will save me a ton of time!

-- 
Pat Riehecky

Fermi National Accelerator Laboratory
www.fnal.gov
www.scientificlinux.org



More information about the Rpm-ecosystem mailing list