RPM Setup Script (for i586 arch)
Script and link to script This page contains a shell script (only tested in BASH) to instantly set a user's home directory up for building i586 (and source) RPMs.
#!bin/sh
if [ -f ~/.rpmrc -o -d ~/rpm ]; then
echo 'Delete any existing setup before running this script'
exit 1
fi
cd
mkdir rpm
mkdir rpm/BUILD
mkdir rpm/RPMS
mkdir rpm/RPMS/i586
mkdir rpm/RPMS/noarch
mkdir rpm/SOURCES
mkdir rpm/SPECS
mkdir rpm/SRPMS
mkdir rpm/tmp
cat <.rpmrc
buildarchtranslate: i386: i586
buildarchtranslate: i486: i586
buildarchtranslate: i586: i586
buildarchtranslate: i686: i586
END
cat <.rpmmacros
%_topdir $HOME/rpm
%_tmppath $HOME/rpm/tmp
%_signature gpg
%_gpg_name Mandrivalinux
%_gpg_path ~/.gnupg
%distribution Mandrivalinux
%vendor Mandrivasoft
END
Glossary > Mandriva Community Websites > HowTo > Mandriva Rpm HowTo (en) > RPM Setup Script (for i586 arch)
Version 1.3 last modified by wackysalut on 18/09/2005 at 19:03
Version 1.3 last modified by wackysalut on 18/09/2005 at 19:03
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!
Mandriva.com
Store
Club

