New Developer Intro / Help with building RPM

John Dennis jdennis at redhat.com
Tue Mar 27 19:14:52 CEST 2012


On 03/27/2012 12:44 PM, Jason Rohm wrote:
> Hello. I'm new to the community. I'm getting involved primarily out of
> interest in radsec improvements. My background is in networking, mostly
> Cisco stuff. I've been doing quite a bit of development around Cisco phone
> system automation. Primarily in PHP and Java, but I have some C experience
> in another life.
>
> I consider myself a linux 'power user' but not an expert. I've been
> successful in downloading the repo from git and compiling it locally. I
> was able to use the locally compiled code to begin testing but would like
> to roll it out to other hosts, most of which are not (and cannot) be setup
> for local compiling.
>
> I have NOT been successful in building an RPM directly from the git repo.
> I'm using the following Mandriva wiki page as a guide:
> 'http://wiki.mandriva.com/en/Rpmbuild_and_git' I am developing and testing
> on CentOS 6.2 64-bit. Most information I've found by consulting with Mr.
> Google describes only how to create them from and existing SRPM.
>
> I'd like some assistance in the form of a cheat sheet, wiki, or whatever
> you have to point me in the right direction. The current output of my
> 'rpmbuild' is attached below my signature.

This wiki page gives detailed instructions for building an RPM on 
fedora/RHEL/CentOS

http://wiki.freeradius.org/Red_Hat_FAQ

To build from git you'll have to do a few things:

* create a tar file (I believe the existing makefiles in git support this).

* decide if you want any of the patches you find in our spec file. You 
probably don't need them and more to the point they probably won't apply 
to the git version, so delete them from the spec file.

* if the files in git are different (you didn't say which branch you 
were using) you'll need to update the spec file to include/exclude them, 
this should be very obvious after you do your first build.

HTH,

John



-- 
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/


More information about the Freeradius-Devel mailing list