Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
via rpm
rpm -ivh something.src.rpm

or manually copy files into ~/rpmbuild/SOURCES (tar.gz)

3. Edit or create .spec file in ~/rpmbuild/SPECS

Warning

Create a ".rpmmacros" file in your home directory. It should contain the following:

Code Block
%_topdir      %(echo $HOME)/rpmbuild
%_smp_mflags  -j3
%__arch_install_post   /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot

This will build in ~/rpmbuild, not in /usr/local/redhat, which is the default and requires root.

3. Edit or create .spec file in ~/rpmbuild/SPECS.

Info

A simple .spec file template can be viewed here, or downloaded here.
A more advanced example, the iRODS .spec file, can be viewed here, or downloaded here.

4. rebuild src.rpm

Code Block
rpmbuild -bs --nodeps ~/rpmbuild/SPECS/something.spec

...

Links (for further info/more details):

http://fedoraproject.org/wiki/Docs/Drafts/BuildingPackagesGuideImage Removed

https://fedoraproject.org/wiki/Rpmdevtools

...