[Here is an example to make rpms of sipx source code (Fedora / CentOS)]
STEP 1: In .spec file modify 'Release: 013143' link this, a umber from SVN-VERSION file.
STEP 2: Make tar.gz of your source code. [Here i have sipxconfig-3.10.2/ folder of sipx config code]
$ tar -cvf sipxconfig-3.10.2.tar.gz sipxconfig-3.10.2/
Above command will make sipxconfig-3.10.2.tar.gz file.
STEP 3: Copy sipxconfig-3.10.2.tar.gz to /usr/src/redhat/SOURCES/
STEP 4: Run this command from terminal as root
$ cd sipxconfig-3.10.2/
$ rpmbuild -ba sipxconfig.spec
[This will make appropriate rpms of the source code. You can find them at /usr/src/redhat/RPMS/i386/ ]
No comments:
Post a Comment