commit bad73780a1119bb8131c846823ed2b172f226fab Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Sat Aug 10 20:03:33 2013 +0100 Update to 0.59 - New upstream release 0.59 (see CHANGES for details) - This release by PFIG -> update source URL - Package upstream's LICENSE file - Update dependencies as per upstream - Exclude s3cl script for now as we can't satisfy its dependencies - Drop %defattr, redundant since rpm 4.4 - Use %{_fixperms} macro rather than our own chmod incantation - Allow for a future in which we might ship manpages compressed with something other than gzip .gitignore | 1 + perl-Net-Amazon-S3.spec | 154 ++++++++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 109 insertions(+), 48 deletions(-) --- diff --git a/.gitignore b/.gitignore index 9cfcb10..3a8b38b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ Net-Amazon-S3-0.43.tar.gz /Net-Amazon-S3-0.53.tar.gz +/Net-Amazon-S3-0.59.tar.gz diff --git a/perl-Net-Amazon-S3.spec b/perl-Net-Amazon-S3.spec index 0955eb1..b32ede4 100644 --- a/perl-Net-Amazon-S3.spec +++ b/perl-Net-Amazon-S3.spec @@ -1,42 +1,76 @@ +# Noarch packages don't generate any debuginfo +%global debug_package %{nil} + Summary: Use the Amazon Simple Storage Service (S3) Name: perl-Net-Amazon-S3 -Version: 0.53 -Release: 7%{?dist} +Version: 0.59 +Release: 1%{?dist} License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Net-Amazon-S3/ -Source0: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Net-Amazon-S3-%{version}.tar.gz +Source0: http://search.cpan.org/CPAN/authors/id/P/PF/PFIG/Net-Amazon-S3-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch +# Module Build BuildRequires: perl -BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) -BuildRequires: perl(Class::Accessor::Fast) -BuildRequires: perl(Class::MOP) -BuildRequires: perl(Data::Stream::Bulk) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(Data::Stream::Bulk::Callback) BuildRequires: perl(DateTime::Format::HTTP) -BuildRequires: perl(DateTime::Format::ISO8601) +BuildRequires: perl(Digest::HMAC_SHA1) +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(Digest::MD5::File) +BuildRequires: perl(File::stat) +BuildRequires: perl(HTTP::Date) +BuildRequires: perl(HTTP::Status) +BuildRequires: perl(IO::File) >= 1.14 BuildRequires: perl(LWP::UserAgent::Determined) -BuildRequires: perl(Moose) -BuildRequires: perl(MooseX::StrictConstructor) -BuildRequires: perl(MooseX::Types::DateTimeX) +BuildRequires: perl(MIME::Base64) +BuildRequires: perl(Moose) >= 0.85 +BuildRequires: perl(Moose::Util::TypeConstraints) +BuildRequires: perl(MooseX::StrictConstructor) >= 0.16 +BuildRequires: perl(MooseX::Types::DateTime::MoreCoercions) >= 0.07 BuildRequires: perl(Regexp::Common) +BuildRequires: perl(URI) +BuildRequires: perl(URI::Escape) +BuildRequires: perl(URI::QueryParam) BuildRequires: perl(XML::LibXML) BuildRequires: perl(XML::LibXML::XPathContext) +# Requirements of s3cl (some not yet in Fedora, so we exclude the script for now) +BuildRequires: perl(File::Find::Rule) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(MIME::Types) +BuildRequires: perl(Path::Class) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(strict) +#BuildRequires: perl(Term::Encoding) +#BuildRequires: perl(Term::ProgressBar::Simple) +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(LWP::Simple) BuildRequires: perl(Test::Exception) -BuildRequires: perl(Digest::MD5::File) - - -Requires: perl-URI -Requires: perl -Requires: perl(LWP::UserAgent::Determined) -Requires: perl(XML::LibXML) -Requires: perl(XML::LibXML::XPathContext) -Requires: perl(Class::Accessor) +BuildRequires: perl(Test::More) +BuildRequires: perl(vars) +# Release Tests +# CHANGES file should be called Changes before t/release-cpan-changes.t can work +#BuildRequires: perl(Test::CPAN::Changes) +BuildRequires: perl(Test::CPAN::Meta) +BuildRequires: perl(Test::CPAN::Meta::JSON) +BuildRequires: perl(Test::DistManifest) +BuildRequires: perl(Test::MinimumVersion) +BuildRequires: perl(Test::Mojibake) +BuildRequires: perl(Test::NoTabs) +BuildRequires: perl(Test::Pod) >= 1.41 +BuildRequires: perl(Test::Portability::Files) +BuildRequires: perl(Test::Synopsis) +BuildRequires: perl(Test::Vars) +BuildRequires: perl(Test::Version) +# Runtime Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -Requires: perl(Digest::MD5::File) %description @@ -56,6 +90,9 @@ To find out more about S3, please visit: http://s3.amazonaws.com/ %prep %setup -q -n Net-Amazon-S3-%{version} +# Get rid of unnecessary exec bits +find lib -name '*.pm' -exec chmod -c -x {} ';' + %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -64,13 +101,13 @@ make %{?_smp_mflags} %install rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -chmod -R u+w %{buildroot}/* +%{_fixperms} %{buildroot} %check -make test +make test RELEASE_TESTING=1 %clean @@ -78,8 +115,8 @@ rm -rf %{buildroot} %files -%defattr(-,root,root,-) -%doc CHANGES README +%doc CHANGES LICENSE README +%exclude %{_bindir}/s3cl %dir %{perl_vendorlib}/Net %dir %{perl_vendorlib}/Net/Amazon %dir %{perl_vendorlib}/Net/Amazon/S3 @@ -92,39 +129,62 @@ rm -rf %{buildroot} %{perl_vendorlib}/Net/Amazon/S3/Client/Object.pm %{perl_vendorlib}/Net/Amazon/S3/HTTPRequest.pm %{perl_vendorlib}/Net/Amazon/S3/Request.pm +%{perl_vendorlib}/Net/Amazon/S3/Request/CompleteMultipartUpload.pm %{perl_vendorlib}/Net/Amazon/S3/Request/CreateBucket.pm %{perl_vendorlib}/Net/Amazon/S3/Request/DeleteBucket.pm +%{perl_vendorlib}/Net/Amazon/S3/Request/DeleteMultiObject.pm %{perl_vendorlib}/Net/Amazon/S3/Request/DeleteObject.pm %{perl_vendorlib}/Net/Amazon/S3/Request/GetBucketAccessControl.pm %{perl_vendorlib}/Net/Amazon/S3/Request/GetBucketLocationConstraint.pm %{perl_vendorlib}/Net/Amazon/S3/Request/GetObject.pm %{perl_vendorlib}/Net/Amazon/S3/Request/GetObjectAccessControl.pm +%{perl_vendorlib}/Net/Amazon/S3/Request/InitiateMultipartUpload.pm %{perl_vendorlib}/Net/Amazon/S3/Request/ListAllMyBuckets.pm %{perl_vendorlib}/Net/Amazon/S3/Request/ListBucket.pm +%{perl_vendorlib}/Net/Amazon/S3/Request/ListParts.pm %{perl_vendorlib}/Net/Amazon/S3/Request/PutObject.pm +%{perl_vendorlib}/Net/Amazon/S3/Request/PutPart.pm %{perl_vendorlib}/Net/Amazon/S3/Request/SetBucketAccessControl.pm %{perl_vendorlib}/Net/Amazon/S3/Request/SetObjectAccessControl.pm -%{_mandir}/man3/Net::Amazon::S3.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Bucket.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Client.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Client::Bucket.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Client::Object.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::HTTPRequest.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::CreateBucket.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::DeleteBucket.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::DeleteObject.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::GetBucketAccessControl.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::GetBucketLocationConstraint.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::GetObject.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::GetObjectAccessControl.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::ListAllMyBuckets.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::ListBucket.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::PutObject.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::SetBucketAccessControl.3pm.gz -%{_mandir}/man3/Net::Amazon::S3::Request::SetObjectAccessControl.3pm.gz +%exclude %{_mandir}/man1/s3cl.1* +%{_mandir}/man3/Net::Amazon::S3.3pm* +%{_mandir}/man3/Net::Amazon::S3::Bucket.3pm* +%{_mandir}/man3/Net::Amazon::S3::Client.3pm* +%{_mandir}/man3/Net::Amazon::S3::Client::Bucket.3pm* +%{_mandir}/man3/Net::Amazon::S3::Client::Object.3pm* +%{_mandir}/man3/Net::Amazon::S3::HTTPRequest.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::CompleteMultipartUpload.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::CreateBucket.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::DeleteBucket.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::DeleteMultiObject.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::DeleteObject.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::GetBucketAccessControl.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::GetBucketLocationConstraint.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::GetObject.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::GetObjectAccessControl.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::InitiateMultipartUpload.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::ListAllMyBuckets.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::ListBucket.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::ListParts.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::PutObject.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::PutPart.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::SetBucketAccessControl.3pm* +%{_mandir}/man3/Net::Amazon::S3::Request::SetObjectAccessControl.3pm* + %changelog +* Sat Aug 10 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 0.59-1 +- Update to 0.59 +- This release by PFIG -> update source URL +- Package upstream's LICENSE file +- Update dependencies as per upstream +- Exclude s3cl script for now as we can't satisfy its dependencies +- Drop %%defattr, redundant since rpm 4.4 +- Use %%{_fixperms} macro rather than our own chmod incantation +- Allow for a future in which we might ship manpages compressed with something + other than gzip + * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.53-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 64a58f3..1f98a34 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7c08f4a5cdf865ab7e57789918672aac Net-Amazon-S3-0.53.tar.gz +72f5a5acf6924a3430d7ff567e014238 Net-Amazon-S3-0.59.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel