Ask Your Question
0

How to build RDO packages on CentOS 7 ?

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

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
1

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

dbaxps gravatar image

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

  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

Comments

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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 126 times

Last updated: Oct 21 '15