rebuild tinc from source RPM (src.rpm)

yum groupinstall "Development Tools"
yum install openssl-devel lzo-devel
cd /tmp/
wget https://dl.fedoraproject.org/pub/fedora/linux/releases/28/Everything/source/tree/Packages/t/tinc-1.0.33-2.fc28.src.rpm
rpm2cpio tinc-1.0.33-2.fc28.src.rpm | cpio -idmv
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
wget https://www.tinc-vpn.org/packages/tinc-1.0.34.tar.gz -P ~/rpmbuild/SOURCES/
sed -i 's|1\.0\.33|1.0.34|g' tinc.spec
mv tinc.spec ~/rpmbuild/SPECS/
cd ~/rpmbuild/SPECS
rpmbuild -ba tinc.spec

Comments powered by CComment

Designed by san © 2018