LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to build a rpm file from the source file? (https://www.linuxquestions.org/questions/mandriva-30/how-to-build-a-rpm-file-from-the-source-file-267304/)

Flamenco 12-17-2004 01:53 AM

How to build a rpm file from the source file?
 
I have some project that written with C ++, i want make a rpm file for every one that using Mandrake linux can download and install it easyly. But i don't know how to make it!
Can u help me? Thanks!

jschiwal 12-17-2004 03:23 AM

If you google for the terms 'mandrake rpm howto'
you will find this link:
http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo

cormander 12-17-2004 12:00 PM

If you know how to use emacs, do this:

emacs yourpackage.spec

It will create a new file, and automatically put most of what you need in a spec file in there, to help you start.

Fill it out as best you can, then try building it:

rpmbuild -ba yourpackage.spec

Make sure your package files are in your rpmbuild directory, or else your build won't see the files.

-Corey

Micro420 12-17-2004 12:04 PM

On top of building an RPM, can you also list HOW you compile from source? For some reason, the whole ./configure make make install thing works 0 out of 20 times that I've tried. I hate how us Mandrake users are totally locked down and depend on RPM's to install software.

cormander 12-17-2004 12:09 PM

The last time I used mandrake was a while ago ( last year ), but I don't recall having any problems with make installs.

What sort of errors do you get?

-Corey

Flamenco 12-22-2004 03:40 AM

Quote:

Originally posted by Micro420
On top of building an RPM, can you also list HOW you compile from source? For some reason, the whole ./configure make make install thing works 0 out of 20 times that I've tried. I hate how us Mandrake users are totally locked down and depend on RPM's to install software.
Sorry! I don't understand! I've never met an error with these command since i 've intalled all libbraries that included in Mandrake 10.0 Official and some other libs that software requied!


All times are GMT -5. The time now is 08:16 PM.