[Rule-list] Request for rpm build procedure

Michael Fratoni mfratoni at tuxfan.homeip.net
Tue May 28 12:57:18 EEST 2002


-----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:
[mfratoni at paradox slinky]$ ls ~/rpmbuild/
BUILD  RPMS  SOURCES  SRPMS  tmp

[mfratoni at paradox 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

[mfratoni at paradox 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-----


_______________________________________________
Rule Project HOME PAGE:  http://www.rule-project.org/rule/
Original Rule Development Site http://savannah.gnu.org/projects/rule/Rule-list at mail.freesoftware.fsf.org
http://mail.freesoftware.fsf.org/mailman/listinfo/rule-list



This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here