This were the steps followed to build the rpm
- Clone this repo
git clone git@github.com:egarbi/perl-Net-Amazon-S3-rpm.git
- Download and Extract the content of the old package
cd perl-Net-Amazon-S3-rpm
rpm2cpio.pl /some/path/perl-Net-Amazon-S3-0.80-1.of.el7.noarch.rpm | cpio -idmv
- Check for pre/post building scripts
rpm -qp --scripts perl-Net-Amazon-S3-0.80-1.of.el7.noarch.rpm
- Clone (or fetch) the latest version from mantainer
git clone https://github.com/rustyconover/net-amazon-s3.git
- Sync the proper files
rsync -az net-amazon-s3/lib/Net/Amazon/* usr/share/perl5/vendor_perl/Net/Amazon/
rsync -az ~/net-amazon-s3/bin/s3cl usr/bin/s3cl
cp ~/net-amazon-s3/CHANGES README.md usr/share/doc/perl-Net-Amazon-S3-0.81/
- Build the new rpm, the file can be find on builds/ dir
fpm --verbose \
-s dir \
-t rpm \
-p builds/ \
-n perl-Net-Amazon-S3 -v 0.84 \
-m myemailhere \
--url 'https://github.com/egarbi/perl-Net-Amazon-S3-rpm' \
-a 'noarch' \
--rpm-os linux \
--description 'Simple Storage Service from Perl' \
usr/=/usr/