RPMS's rebuilt or upstream one's used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Quoting Jim Smith <jim_smith2006@xxxxxxxxx>:

> 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@xxxxxxxxxxxxxxx>

%_signature             gpg
%_gpgbin                /usr/bin/gpg
%_gpg_path              /home/alex/.gnupg
%_gpg_name              alex@xxxxxxxxxxxxxxx

%_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


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux