How to build RDO packages on CentOS 7 ?

asked 2015-10-21 04:00:06 -0600

I am concerned about patching some openstack packages.

1. How works instruction "%autosetup -S git" ? in spec file
2. How to detect rpm which creates particular file ?
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-21 08:04:31 -0600

dbaxps gravatar image

updated 2015-10-21 08:19:00 -0600

  1. Just declare git patches after Sources, don't issue %patch(X) -p1 after mentioned directive.
    Via my experience git will apply all patches automatically. I silently presume patches themselves are in ../SOURCES
    To make sure run :-

    $ rpmbuild -bb file.spec | tee build.log
    with and without yours patches and compare logs

  2. $ rpm -Vf /../../file.txt
    will return rpm's name installed file.txt

If my understanding of "%autosetup -S git" is not correct, I hope RH's package maintainers will help you out.

edit flag offensive delete link more


Thank you for %autosetup explanation. Correct option for 2) is rpm -qf file.txt

andrew.shvartz gravatar imageandrew.shvartz ( 2015-10-22 08:49:09 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-21 04:00:06 -0600

Seen: 167 times

Last updated: Oct 21 '15