Refresher on compiling .src.rpm packages?
It has been awhile since I have needed to compile a *.src.rpm package. Can someone walk me thru it. In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box. I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory. I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS. I have untarred the ruby-1.8.3.tar.bz2. What are the next steps? Thanks Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
On Monday 12 December 2005 19:25, Greg Freemyer wrote:
It has been awhile since I have needed to compile a *.src.rpm package.
Can someone walk me thru it.
In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box.
I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory.
I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS.
I have untarred the ruby-1.8.3.tar.bz2. What are the next steps?
Delete the untarred directory Then run rpm -ba /usr/src/packages/SPECS/ruby.spec or -bb, if you don't want to generate a new src.rpm
Thanks
Anders,
-bb worked perfect, but I did use rpmbuild instead of rpm as suggested by Ken.
Greg
On 12/12/05, Anders Johansson
On Monday 12 December 2005 19:25, Greg Freemyer wrote:
It has been awhile since I have needed to compile a *.src.rpm package.
Can someone walk me thru it.
In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box.
I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory.
I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS.
I have untarred the ruby-1.8.3.tar.bz2. What are the next steps?
Delete the untarred directory
Then run
rpm -ba /usr/src/packages/SPECS/ruby.spec
or -bb, if you don't want to generate a new src.rpm
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Greg Freemyer The Norcross Group Forensics for the 21st Century
On Monday 12 December 2005 20:38, Greg Freemyer wrote:
Thanks Anders,
-bb worked perfect, but I did use rpmbuild instead of rpm as suggested by Ken.
Argh, yes, of course it's rpmbuild, sorry. Yet another case of typing fingers having a life of their own :/
Anders Johansson wrote:
On Monday 12 December 2005 20:38, Greg Freemyer wrote:
Thanks Anders,
-bb worked perfect, but I did use rpmbuild instead of rpm as suggested by Ken.
Argh, yes, of course it's rpmbuild, sorry. Yet another case of typing fingers having a life of their own :/
It actually used to be "rpm --rebuild," not "rpm --rebuild.
* Randall R Schulz
On Tuesday 13 December 2005 04:52, John Summerfield wrote:
It actually used to be "rpm --rebuild," not "rpm --rebuild.
A subtle distinction, indeed.
Hummm, comma instead of period or full stop and closing quote, indeed.... -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
On Mon, 2005-12-12 at 13:25 -0500, Greg Freemyer wrote:
It has been awhile since I have needed to compile a *.src.rpm package.
Can someone walk me thru it.
In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box.
I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory.
I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS.
I have untarred the ruby-1.8.3.tar.bz2. What are the next steps?
No need to untar anything. Use rpmbuild -bb
On 12/12/05, Ken Schneider
On Mon, 2005-12-12 at 13:25 -0500, Greg Freemyer wrote:
It has been awhile since I have needed to compile a *.src.rpm package.
Can someone walk me thru it.
In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box.
I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory.
I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS.
I have untarred the ruby-1.8.3.tar.bz2. What are the next steps?
No need to untar anything. Use rpmbuild -bb
to create an rpm file which will be under /usr/src/packages/RPMS/ and then install with rpm or YaST. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Thanks Ken, worked like a champ, but instead of getting one rpm, I got 7. Looks like SUSE are making ruby a more complex environment in the OSS factory. They even have rubygems in the factory (in addition to the 7). I'm installing ruby on rails now. That is actually what I'm wanting to experiment with. Thanks again, Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
Ken Schneider wrote:
On Mon, 2005-12-12 at 13:25 -0500, Greg Freemyer wrote:
It has been awhile since I have needed to compile a *.src.rpm package.
Can someone walk me thru it.
In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box.
I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory.
I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS.
I have untarred the ruby-1.8.3.tar.bz2. What are the next steps?
No need to untar anything. Use rpmbuild -bb
to create an rpm file which will be under /usr/src/packages/RPMS/ and then install with rpm or YaST.
Or he could use rpmbuild --rebuild package.src.rpm from the start, no need to install the src.rpm first. Cheers, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany
In particular I'm trying to get ruby-1.8.3 installed on SUSE 10.0 box.
I have downloaded the ruby-1.8.3-3.src.rpm file from the OSS factory.
I have done a simple "rpm -i ruby-1.8.3-3.src.rpm" and now have several files in /usr/src/packages/SOURCES and the spec file in SPECS.
I have untarred the ruby-1.8.3.tar.bz2. What are the next steps?
No need to untar anything. Use rpmbuild -bb
to create an rpm file which will be under /usr/src/packages/RPMS/ and then install with rpm or YaST.
What if one wanted to make some changes to the source code, apply patches etc, and then want to compile the rpm? Thanks.
participants (8)
-
Anders Johansson
-
Greg Freemyer
-
Joachim Schrod
-
John Summerfield
-
Ken Schneider
-
Patrick Shanahan
-
Randall R Schulz
-
Shibu Basheer