From 5cb74dba6a1bfecf1e0cbf68b03214af66e3e032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Fri, 19 Jun 2015 15:38:38 +0200 Subject: Import
diff --git a/.gitignore b/.gitignore index e69de29..b0a3ea8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/VM-EC2-Security-CredentialCache-0.23.tar.gz diff --git a/perl-VM-EC2-Security-CredentialCache.spec b/perl-VM-EC2-Security-CredentialCache.spec new file mode 100644 index 0000000..4cf0dc2 --- /dev/null +++ b/perl-VM-EC2-Security-CredentialCache.spec @@ -0,0 +1,52 @@ +Name: perl-VM-EC2-Security-CredentialCache +Version: 0.23 +Release: 1%{?dist} +Summary: Cache credentials respecting expiration time for IAM roles +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/VM-EC2-Security-CredentialCache/ +Source0: http://www.cpan.org/authors/id/R/RC/RCONOVER/VM-EC2-Security-CredentialCache-%{version}.tar.gz +BuildArch: noarch +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(DateTime::Format::ISO8601) +BuildRequires: perl(VM::EC2::Instance::Metadata) +# Tests: +BuildRequires: perl(lib) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This Perl package provides a cache for an EC2's IAM credentials. Rather than +retrieving the credentials for every possible call that uses them, cache them +until they expire and retrieve them again if they have expired. + +%prep +%setup -q -n VM-EC2-Security-CredentialCache-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc CHANGES README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jun 04 2015 Petr Pisar <ppi...@redhat.com> 0.23-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..76fc336 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2fb9ca19f458e70a3a1db6348b5cb30d VM-EC2-Security-CredentialCache-0.23.tar.gz -- cgit v0.10.2 http://pkgs.fedoraproject.org/cgit/perl-VM-EC2-Security-CredentialCache.git/commit/?h=master&id=5cb74dba6a1bfecf1e0cbf68b03214af66e3e032 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel