When it comes to more than “rpm -i package.rpm” I’m very much an rpm newbie.
In general I’m very dependent on repository based package management tools
such as zypper with opensuze or apt-get with debian based distros, or equo
with sabayon, and very recently urpmi with my new mageia linux installation.
I can usually find what I want in the repositories, so this generally works
for me. However I recently became fairly addicted to a tetris like game that
was available on most of my installed distros. The exception was opensuse…
I tried http://software.opensuse.org/search with no luck {at least not for
opensuse 12.2} at which point I settled for the idea that I only needed to
reboot into one of the other distros to play it… :sigh:
Then as I was busy configuring, updating, etc… my new mageia install I
noticed that the game wasn’t in their repositories either. But an online
search found an mandriva rpm. So since I understand mageia to be forked from
mandriva, I started a thread on there forum to find out if I could safely
install it on mageia. Which thread quickly grew into something a mageia forum
moderator decided to rename as:
[SOLVED] How to rebuild an src.rpm, using amoebax as example
Which he added to their tips and tricks section…
see:
https://forums.mageia.org/en/viewtopic.php?f=41&t=5530#p37711
His method did the heavy lifting with urpmi (which opensuse doesn’t use) but
that was mostly to automate the process of installing the required dependencies.
{Please tell me there is a good howto for that using opensuse tools?}
But the real workhorse of the process of rebuilding an src.rpm from another
distro was done with the user command to:
rpmbuild --rebuild package.src.rpm
Is this something I {as a NON-expert with rpm} I might reasonably expect to do
on opensuse??
Is there a good howto?
Thanks to a thread about opera, I’ve already seen:
http://doc.opensuse.org/documentation/html/openSUSE/opensuse-startup/cha.sw_cl.html#sec.rpm
But I don’t think it addresses importing src.rpm from other distros…
I did note one difference that I’m curious about in the requirements for
using rpmbuild as listed in the above url and the equivalent section of
mageia’s wiki, where:
[quote=“https://wiki.mageia.org/en/Packagers_RPM_tutorial”]
mkdir -p ~/rpm/{BUILD,BUILDROOT,RPMS/$ARCH,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
While the doc.opensuse.org document wants those directories to be located in
“/usr/src/packages” rather than in the user’s $HOME dir?
Does that mean that opensuse’s binaries expect rpmbuild to be run as root??
–
JtWdyP