[CentOS] RPMS's rebuilt or upstream one's used

Fri Dec 30 21:54:09 UTC 2005
Jim Smith <jim_smith2006 at yahoo.com>

--- Aleksandar Milivojevic <alex at milivojevic.org>
wrote:

> Quoting Jim Smith <jim_smith2006 at yahoo.com>:
> 
> > Ah yes something else i forgot about(which i build
> > from upstream) was the fedora-rpm tools, which
> allow
> > you to build rpm's as non-root.
> 
> You don't need any additional tools to build RPMs as
> normal user.  You 
> just need
> to create .rpmmacros file in your home directory. 
> See below for an 
> example. You'll need to create ~/rpm/build and
> ~/rpm/tmp directories.  
> When you have
> those directories created and .rpmmacros file in
> place, you just "rpm -ihv
> source.rpm" (as yourself, not as root) go to the
> ~/rmp/pkgname-ver-rel
> directory and do "rpmbuild -options-here
> pkgname.spec".
> 
> Example of ~/.rpmmacros file:
> 
> %packager               Aleksandar Milivojevic
> <alex at milivojevic.org>
> 
> %_signature             gpg
> %_gpgbin                /usr/bin/gpg
> %_gpg_path              /home/alex/.gnupg
> %_gpg_name              alex at milivojevic.org
> 
> %_topdir                /home/alex/rpm
> %_tmppath               %{_topdir}/tmp
> %_builddir              %{_topdir}/build
> 
> %_rpmtopdir            
> %{_topdir}/%{name}-%{version}-%{release}
> %_sourcedir             %{_rpmtopdir}
> %_specdir               %{_rpmtopdir}
> %_rpmdir                %{_topdir}/RPMS
> %_srcrpmdir             %{_topdir}/RPMS
> %_rpmfilename          
> %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
> 

Nah just look at the goodies in there

[stimpson at jim ~]$ rpm -qi fedora-rpmdevtools
Name        : fedora-rpmdevtools          
Relocations: (not relocatable)
Version     : 1.2                              
Vendor: (none)
Release     : 1                             Build
Date: Sun 25 Dec 2005 13:56:41 GMT
Install Date: Wed 28 Dec 2005 16:16:01 GMT      Build
Host: user.buildhost.local
Group       : Development/Tools             Source
RPM: fedora-rpmdevtools-1.2-1.src.rpm
Size        : 102024                          
License: GPL
Signature   : (none)
URL         : http://fedora.redhat.com/
Summary     : Fedora RPM Development Tools
Description :
This package contains scripts and (X)Emacs support
files to aid in
development of Fedora RPM packages.  These tools are
designed for Fedora
Core 2 and later.
fedora-buildrpmtree     Create RPM build tree within
user's home directory
fedora-installdevkeys   Install GPG keys in alternate
RPM keyring
fedora-kmodhelper       Helper script for building
kernel module RPMs
fedora-md5              Display the md5sum of all
files in an RPM
fedora-newrpmspec       Creates new .spec from
template
fedora-rmdevelrpms      Find (and optionally remove)
"development" RPMs
fedora-rpmchecksig      Check package signatures using
alternate RPM keyring
fedora-rpminfo          Prints information about
executables and libraries
fedora-rpmvercmp        RPM version comparison checker
fedora-extract          Extract various archives, "tar
xvf" style
fedora-diffarchive      Diff contents of two archives
fedora-wipebuildtree    Erase all files within dirs
created by buildrpmtree
spectool                Expand and download sources
and patches in specfiles


	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/