| Offline |
| Senior Member |
 |
Joined: Sun Nov 23, 2003 1:40 pm Posts: 79
Website: http://www.whitehouse.gov/history/presidents/bc42.html
|
|
|
You should visit rpm.org and take a look at the RPM-HOWTO (the Mandrake RPM-HOWTO is really helpful as well.) Or read the following ....
Sunny's Absurdly Short Guide to Mucking with RPMS:
ALL OF THIS IS TO BE DONE AS A NORMAL USER. BUILDING THINGS AS ROOT IS A BAD IDEA!
1) Create a little directory structure:
cd ~
for i in rpm "rpm/RPMS" "rpm/SRPMS" "rpm/SOURCES" "rpm/BUILD" "rpm/SPECS" "rpm/tmp" ; do mkdir "$i" ; done
2) Setup your rpm configuration files:
echo "%_topdir /home/$USER/rpm" >> ~/.rpmmacros
echo "%_tmpdir /home/$USER/rpm/tmp" >> ~/.rpmmacros
3) "Install" your source RPM:
rpm -ivh httpd.src.rpm
4) Your rpm SPEC file will be in rpm/SPECS. The pristine binaries and external patches will be in rpm/SOURCES. You can change whatever you like.
5) When you are done doing your changes, you can rebuild your SRPM with the fillowing command:
rpmbuild -ba httpd.spec
6) Your new RPM(s) will be in rpm/RPMS/$arch/ and your new SRPM (containing all the chnages you made) will be in rpm/SRPMS
The End
Bill Clinton
(aka sunny)
|
|