[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Rule-list] Request for rpm build procedure
From: |
Michael Fratoni |
Subject: |
Re: [Rule-list] Request for rpm build procedure |
Date: |
Tue, 28 May 2002 05:57:18 -0400 |
User-agent: |
KMail/1.4.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 28 May 2002 01:10 am, Marco Fioretti wrote:
> > http://www.rpm.org/
> > http://www-106.ibm.com/developerworks/library/l-rpm1/index.html
> > http://www.tldp.org/HOWTO/RPM-HOWTO/index.html
>
> Thanks. Do they explain how to play with RPM building when you have no
> root password? I might find myself in that situation for a few days...
I never build rpms as root, and doing so as a mortal user is quite easy.
http://www.tuxfan.homeip.net:8080/hacks/rpm_environment.tar.gz
Is a small script which will set up an rpm build environment in your home
directory. Once set up, you can install source rpms (or build an rpm from
scratch) without root access.
Just download the tarball, tar -xvzf rpm_environment.tar.gz, cd
rpmenvironment, and run ./rpmsetup.sh. It will create a directory tree
under ~/rpmbuild/ and install .rpmmacros, and .rpmrc files. The comments
in the script should explain what it is doing, and why.
The only real change from the standard setup is that I don't use a SPECS/
directory, preferring instead to have the spec files installed with the
source code in the SOURCE/$package_name directory. Like so:
address@hidden slinky]$ ls ~/rpmbuild/
BUILD RPMS SOURCES SRPMS tmp
address@hidden slinky]$ ls ~/rpmbuild/SOURCES
anaconda-7.2 MPlayer-0.60 whichcd-0.1
anaconda-7.2ORIG netdate-1.16 xf86ttfontool-0.1
anaconda-7.2RULE redhat-release-7.3
anaconda-7.3 vacation-1.2.6
logsentry-1.1.1 vacation-1.2.7.rc1
address@hidden slinky]$ ls ~/rpmbuild/SOURCES/netdate-1.16/
netdate-1.16.patch netdate-1.16.tar.gz netdate.spec
Once setup, you should be able to follow the instructions from the links
above to build rpms. To build the package above for example, I can just:
cd ~/rpmbuild/SOURCES/netdate-1.16/
rpm -ba netdate.spec
Which will build both the .rpm and the .src.rpm packages for netdate.
Hope that helps,
- --
- -Michael
pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzzVH4ACgkQn/07WoAb/Sv8hgCgojToNWE/IcYNDw0EaVcEHRzT
WmQAoKYN3TkdO02FeRnPY6H/lDG6KJfN
=eSqT
-----END PGP SIGNATURE-----