Skip to content

This will be used to build a upgraded rpm package for EL7 (Centos, Red Hat)

Notifications You must be signed in to change notification settings

egarbi/perl-Net-Amazon-S3-rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

This were the steps followed to build the rpm

  1. Clone this repo
git clone git@github.com:egarbi/perl-Net-Amazon-S3-rpm.git
  1. 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
  1. Check for pre/post building scripts
rpm -qp --scripts perl-Net-Amazon-S3-0.80-1.of.el7.noarch.rpm
  1. Clone (or fetch) the latest version from mantainer
git clone https://github.com/rustyconover/net-amazon-s3.git
  1. 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/
  1. 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/

Releases

No releases published

Packages

No packages published

Languages