Репозиторий Sisyphus
Последнее обновление: 24 сентября 2022 | Пакетов: 17655 | Посещений: 25030797
en ru br
Репозитории ALT

Группа :: Разработка/Perl
Пакет: perl-Amazon-SQS-Simple

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
#
#   - Amazon::SQS::Simple -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       Amazon::SQS::Simple
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Amazon-SQS-Simple
%define m_distro Amazon-SQS-Simple
%define m_name Amazon::SQS::Simple
%define m_author_id unknown
# Missing AWSAccessKey or SecretKey at t/dev-methods.t line 14 :(
%define _without_test 1

Name: perl-Amazon-SQS-Simple
Version: 2.07
Release: alt1

Summary: OO API for accessing the Amazon Simple Queue

License: Artistic
Group: Development/Perl
Url: http://www.cpan.org

Packager: Denis Smirnov <mithraen at altlinux.ru>

BuildArch: noarch
Source0: http://www.cpan.org/authors/id/P/PE/PENFOLD/%{module}-%{version}.tar.gz

# Automatically added by buildreq on Sat Sep 04 2010

BuildRequires: perl-Digest-HMAC perl-XML-Simple perl-devel perl-libwww perl(Test/Warn.pm) perl(AWS/Signature4.pm) perl(VM/EC2/Security/CredentialCache.pm)

%description
use Amazon::SQS::Simple;

   my $access_key = 'foo'; # Your AWS Access Key ID
   my $secret_key = 'bar'; # Your AWS Secret Key

   # Create an SQS object
   my $sqs = new Amazon::SQS::Simple($access_key, $secret_key);

   # Create a new queue
   my $q = $sqs->CreateQueue('queue_name');

   # Send a message
   $q->SendMessage('Hello world!');

   # Retrieve a message
   my $msg = $q->ReceiveMessage();
   print $msg->MessageBody() # Hello world!

   # Delete the message
   $q->DeleteMessage($msg->ReceiptHandle());

   # Delete the queue
   $q->Delete();

%prep
%setup -q -n %{module}-%{version}
%build
%perl_vendor_build

%install
%perl_vendor_install
rm -rf %buildroot%perl_vendor_man3dir/

%files
%doc README Changes LICENSE
%perl_vendor_privlib/Amazon/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin