Author Topic: Creating an RPM from Source  (Read 1051 times)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Creating an RPM from Source
« on: October 25, 2009, 06:34:04 AM »
The usual instructions for installing from source is to
./configure
make
make install (or checkinstall to create an RPM to install)

Maybe a rather silly question, but is there a method to use a spec file in the above procedure?

For instance one may like to try an update to an existing package before a packager gets the time to include it in the repository and the previous PCLOS spec file might be useful if it could be used in such circumstances.

So just wondering if it is possible to EASILY incorporate a previous PCLOS spec file into the standard procedure.

Thanks.

regards.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Creating an RPM from Source
« Reply #1 on: October 25, 2009, 08:21:23 AM »
Yes. Read the packager's documentation. It is simply a matter of getting the SRPM, installing it to a build directory, opening and editing the spec and then run the build process.


Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Creating an RPM from Source
« Reply #2 on: October 25, 2009, 10:11:47 AM »
Yes. Read the packager's documentation. It is simply a matter of getting the SRPM, installing it to a build directory, opening and editing the spec and then run the build process.



Maybe I am reading something other than you are referring to, but from what I read previously (last year I think) it was suggested that a specific install of such as Minime, either actual or virtual, be used for creating RPMs for PCLOS.
That is not what I was asking about.

To create an RPM from source requires three commands ..... in the present install ... if the usual personal method of installing from source is used.

I asked if there was some way to incorporate an existing PCLOS Spec file into that procedure ....... not how to set up a separate environment and create RPMs for PCLOS.

Thanks.

regards.

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Creating an RPM from Source
« Reply #3 on: October 25, 2009, 10:20:01 AM »
The separate environment, is for making official rpms for the repo.  The process can still be used in a full install of pclos, for personal use, and who knows you might enjoy it enough to make official rpms.   ;D
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Creating an RPM from Source
« Reply #4 on: October 25, 2009, 10:28:17 AM »
If you are packaging for PCLinuxOS, it is recommended that you use MiniMe, but you can set up the environment in your current install for your personal use. Doing this makes it easy, IMO, to extract the files from an SRPM and thus to get the spec. What I described is the easy way to do what you asked. Installing an RPM you've created this way is as simple as right clicking the RPM in /home/*name*/src/rpm/RPMS/i586/ (or whichever arch) and choosing the install option. In fact, every action you would need to take, other than editing the spec file, is available via the right click menu.

Edit: Oops! Looks like I posted about the same time as you, Joble. LOL

« Last Edit: October 25, 2009, 10:30:53 AM by Neal »

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Creating an RPM from Source
« Reply #5 on: October 25, 2009, 12:59:35 PM »
Just came back to say I had set up the environment in my /home only to see posts about it already here   ;D
Works nicely without recourse to root.

I guess it is not much more work than using the three commands above ..... particularly if there is a SRPM of a previous bersion of the app.

@Joble
                there is no way I can see me getting into the vagaries of spec files and other such things ..... just too too much for the few cells left alive methinks.

KISS is my main man these days!   ;D

regards.

BTW a nice write up of setting up the environment in an existing install here
http://www.linuxjournal.com/content/rpms-howto-short-story

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Creating an RPM from Source
« Reply #6 on: October 25, 2009, 01:05:02 PM »
http://www.pclinuxos.com/forum/index.php/topic,58899.0.html

 ;D Hope that helps.  ;)  Come visit us in packagers sometime, would be nice to see you there.

Google for max-rpm  500+ pages of how to.  Long read, but I use it as a reference, searching for what I need.  Good information in that.
« Last Edit: October 25, 2009, 01:06:33 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Creating an RPM from Source
« Reply #7 on: October 25, 2009, 01:17:01 PM »
http://www.pclinuxos.com/forum/index.php/topic,58899.0.html

 ;D Hope that helps.  ;)  Come visit us in packagers sometime, would be nice to see you there.

Google for max-rpm  500+ pages of how to.  Long read, but I use it as a reference, searching for what I need.  Good information in that.


Overload!!!!!!!!!!!!!

Thought I said KISS?    ;D ;D ;D