URLs and Examples from the RPM presentation

Showing 1-1 of 1 messages
URLs and Examples from the RPM presentation her...@gmail.com 9/27/11 10:27 PM
As I said in the meeting tonight, I'd post all of the URLs. I've also
attached the spec file and included notes for building rpms.

http://rpmfusion.org/Configuration
http://obsoleet.org/code/unfoo/
http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/
http://fedoraproject.org/wiki/Packaging:Guidelines
http://fedoraproject.org/wiki/How_to_create_an_RPM_package
http://rpm5.org/

RPM Creation

Steps for creating a system ready to build rpms.

• Install recent Fedora (RHEL will work, but rpms are different)
• obtain source archive from upstream
∘ we will use unfoo - https://github.com/vitaminmoo/unfoo/
∘ Usually tar, zip, tar.gz, tar.bz2, but can be anything
∘ Can be git tree, http://rm-rf.ca/tito can help
• yum install rpmdevtools
• mkdir -p ~/rpmbuild/{SPECS,SOURCES}
• cp unfoo-d20091d.tar.bz2 ~/rpmbuild/SOURCES/
• Generate spec file
∘ rpmdev-newspec unfoo
∘ vim unfoo.spec
∘ emacs unfoo.spec
• rpm -bp ~/rpmbuild/SPECS/unfoo.spec
• rpm -bb ~/rpmbuild/SPECS/unfoo.spec
• rpm -bi ~/rpmbuild/SPECS/unfoo.spec
• rpm -ba ~/rpmbuild/SPECS/unfoo.spec

Cheers,

Clint