On Thu, Jul 23, 2015 at 2:24 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
Thanks Greg,
That's good info. I am probably still just doing things the hard way. I'm still digesting the move from building in /usr/src/package to ~/rpmbuild ;-)
Marcus mentioned it as well, so I'll go read and see what osc does. (after I get the pdf issue solved - hopefully without virtualbox)
osc is a very powerful command line tool that let's you interact with build.opensuse.org. It also lets you locally build packages. It does the build in a chroot jail. As an example "libewf" is a package in the distribution. Let's assume I want to edit the spec file and rebuild it. The trouble is I want to rebuild it on my openSUSE 13.2 desktop machine, then deploy a 13.1 rpm to production server. That is no issue for osc. It handles cross release compiles seamlessly. # On my 13.2 desktop PC I keep a directory ~/obs around where I keep copies of packages. I typically pull packages into the ~/obs directory tree, so: cd ~/obs # Now I want to pull down a copy of libewf from the openSUSE 13.1 project osc co openSUSE:13.1 libewf # that will create ./openSUSE:13.1/libewf and populate it. I now need to move to that dir cd openSUSE:13.1/libewf # First I do a quick build to make sure it works before I start tweaking anything osc build standard # note that the first thing it does is pull down a copy of all the 13.1 RPMs it will need to do a true openSUSE 13.1 build. Then it creates a chroot jail to build in and installs all those RPMs. Then it does the build and shows you a list of the RPMs it built. # It should build fine, so now you can tweak the spec file and redo the build as desired. vi *.spec ; osc build standard # Once you have what you want, copy the RPMs to your production server and install them. HTH Greg -- Greg Freemyer www.IntelligentAvatar.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org