Ask Your Question

What does not need to be specified in "BuildRequires" & "Requires" sections of a RPM spec file

asked 2016-07-27 09:21:37 -0500

danieljrmay gravatar image

updated 2016-07-27 09:23:32 -0500

I was writing an RPM spec file and I remembered that there was a list of packages which were "included by default" in the BuildRequires & Requires sections. I have had a look through various bits of documentation and I can not seem to find any mention of such a list anywhere.

Can somebody tell me what is included in such a list, or where it is documented? I am guessing that it would include those packages listed by:

dnf group info 'Core'

What is the current best practice? Should I include everything that is required including things like bash, coreutils, curl and ncurses?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-27 10:06:27 -0500

davidva gravatar image

updated 2016-07-27 10:16:46 -0500

You can test it with mock, generally you don't need include all packages installed by "binutils " in BuildRequires... read also

edit flag offensive delete link more


I agree that I can always test my spec file with mock. But that is a bit of a trial and error way of going about knowing what I should include in BuildRequires & Requires. It also would not tell me if I have included a package in either listing which does not need to be there because it is included by default.

I seem to remember seeing an official list of packages which do not need to be specified because they are so common. I just can not seem to find it anymore. I also understand that this may well be a moving target, depending on what is included in the minimal mock environment.

danieljrmay gravatar imagedanieljrmay ( 2016-07-27 11:00:02 -0500 )edit

@danieljrmay When you add a BuildRequires; it fills dependencies in mode automatic; don't worry; excludes programs written in python... when you make rpm with a program wrote in python, you need add all dependencies in "Requires" read about it with my above link.

davidva gravatar imagedavidva ( 2016-07-27 12:39:33 -0500 )edit

Question Tools

1 follower


Asked: 2016-07-27 09:21:37 -0500

Seen: 250 times

Last updated: Jul 27 '16