Hi, can anyone give me a short intro on how to build a SuSE RPM for a package that I have only as tarball or point me to some docs about this? As far as I understand I need to write a SPEC file for this, but I couldn't find anything about typical SuSE SPEC file settings... Cheers, Raimund
Raimund Eimann wrote:
can anyone give me a short intro on how to build a SuSE RPM for a package that I have only as tarball or point me to some docs about this? As far as I understand I need to write a SPEC file for this, but I couldn't find anything about typical SuSE SPEC file settings...
If it's not terribly fancy (ie, it doesn't have a ton of dependencies and pre-/post-install scripts) "krpmbuilder" is your friend. (It's in YaST.) Else, Google for the RPM Howto, or the (online) book "Maximum RPM" by Edward C. Bailey: RPM Howto: http://www.rpm.org/RPM-HOWTO/ Maximum RPM: http://www.rpm.org/max-rpm/ RPMs are finicky beasts, and if you're creating a SPEC file by hand, there are a few "gotchas" that you have to watch out for. Dabe -- Dabrien "Dabe" Murphy Sr. Systems Administrator Parabon Computation, Inc. www.parabon.com
Torsdag den 2. september 2004 20:02 skrev Raimund Eimann:
Hi,
can anyone give me a short intro on how to build a SuSE RPM for a package that I have only as tarball or point me to some docs about this? As far as I understand I need to write a SPEC file for this, but I couldn't find anything about typical SuSE SPEC file settings...
Cheers, Raimund
Maybee this is a good place to start ;-) http://asic-linux.com.mx/%7Eizto/checkinstall/faq.php But do read the FAQ
and pre-/post-install scripts) "krpmbuilder" is your friend. (It's in
Just had a look at krpmbuilder, and I just deleted it. Couldn't be bothered to hunt for a setting to tell it that the directory created by unpacking the tar doesn't have the same name as the tar. Perhaps good for getting an inital spec file, but it's prob better to copy an existing one from elsewhere - krpmbuilder creates things like mkdir $RPM_BUILD_ROOT (missing -p) rm -rf $RPM_BUILD_ROOT (just hope it's not set to "/" - don't run it as root). Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
On Thursday 02 September 2004 11:02 am, Raimund Eimann wrote:
Hi,
can anyone give me a short intro on how to build a SuSE RPM for a package that I have only as tarball or point me to some docs about this? As far as I understand I need to write a SPEC file for this, but I couldn't find anything about typical SuSE SPEC file settings...
I've had great luck with checkinstall (it's on your DVD). Most tarballs work for me with, ./configure --enable-libsuffix=64 make su checkinstall That builds the rpm, which you can install with rpm -ivh Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.108-default x86_64
On Friday 03 September 2004 11:13, Volker Kuhlmann wrote:
and pre-/post-install scripts) "krpmbuilder" is your friend. (It's in
Just had a look at krpmbuilder, and I just deleted it. Couldn't be bothered to hunt for a setting to tell it that the directory created by unpacking the tar doesn't have the same name as the tar. Perhaps good for getting an inital spec file, but it's prob better to copy an existing one from elsewhere - krpmbuilder creates things like mkdir $RPM_BUILD_ROOT (missing -p) rm -rf $RPM_BUILD_ROOT (just hope it's not set to "/" - don't run it as root).
From what I saw it doesn't seem to support x86_64 as target anyway... Cheers, Raimund
On 2 Sep, Raimund Eimann wrote:
can anyone give me a short intro on how to build a SuSE RPM for a package that I have only as tarball or point me to some docs about this? As far as I
Have you tried the newer rpmbuild options yet? rpmbuild -ts <tarball> tries to create a source rpm rpmbuild -tb <tarball> tries to create a binary rpm.. basically does a vanilla ./configure && make && make install to a tmp dir then wraps into an rpm. Works for autofs-4.1.3+. Well -ts does, -tb fails for some reason. I've done the -ts, rpm -ihv'd the resulting src.rpm then edited the spec file and built it that way before. On SLES9 anyway. -- Mike Marion-Unix SysAdmin/Staff Engineer-http://www.qualcomm.com Marge: "This is the worst thing you've ever done!" Homer: "You say that so much it's lost all meaning." ==> Simpsons
participants (6)
-
Dabe Murphy
-
Johan Nielsen
-
mmarion@qualcomm.com
-
Raimund Eimann
-
Scott Leighton
-
Volker Kuhlmann