How to build RPM from SVN?

0

I'm looking for a way to build RPM from the SVN. I know that i need to export to the source directory, but i wondered if there is any source or app i could use to do that.

In particular, i was wondering how to:

  • Pass revision and version number from the SVN to the RPM.
  • Deal with configuration files.

Thanks.

Kuf

Posted 2012-07-19T14:35:27.217

Reputation: 805

Answers

1

You could take a look at Docu: IzzySoft Release Framework : Software Release Made Easy -- that's what I use for my projects. It pulls the code from various sources (including SVN, CVS, filesystem via cp), generates .tar.gz, .deb, .rpm, handles the changelog, uploads to the target server(s) via scp, ftp, rsync... It may require a little time for the initial setup -- but once that is done, releasing a new version of your programm is as easy as relman MyProg 1.2.3 (where 1.2.3 is the version number to give to the release, as used for packaging). It will then ask for confirmation -- and shortly thereafter (depending on your project), all the files are on the server(s).

Izzy

Posted 2012-07-19T14:35:27.217

Reputation: 3 187

You're welcome! All the parts of it are documented -- but if there are questions left, just go ahead and ask. – Izzy – 2012-07-19T16:17:26.460

1I just notice I forgot the disclosure: I'm the dev of said framework, and author of the linked article. Though that might have been guessed from the name and my nick already, it's custom to explicitly state it. Better late than never ;) – Izzy – 2014-03-10T13:16:02.883