(Note: for puppet managed build hosts: include m_mock)
For info on building iRODS RPMs, click here.
Basic instructions: 1. Setup tree ~/rpmbuild
2. Populate rpm directory
1. Setup tree ~/rpmbuild
Create a ".rpmmacros" file in your home directory. It should contain the following:
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.
4. rebuild src.rpm
Make sure your user is in the 'mock' group so you don't get prompted to build as root. Usually, if you have to build an RPM as root, something is wrong.
5. rebuild rpm using mock
Links (for further info/more details):