Skip to content

Latest commit

 

History

History

rpm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
1. Setup

yum install gcc make expat-devel libstrophe

Fedora:

yum install fedora-packager
cd ~
rpmdev-setuptree

CentOS:

mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

Then make a tarball of sources:

tar czf libstrophe_git.tar.gz libstrophe

2. Build

cp libstrophe.spec ~/rpmbuild/SPECS
cp libstrophe_git.tar.gz ~/rpmbuild/SOURCES
rpmbuild -bb ~/rpmbuild/SPECS/libstrophe.spec

3. Install

yum localinstall ~/rpmbuild/RPMS/<arch>/libstrophe-1.1<dist>.<arch>.rpm

Or, if localinstall is not recognised:

rpm -i ~/rpmbuild/RPMS/<arch>/libstrophe-1.1<dist>.<arch>.rpm