LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Net-AMQP-RabbitMQ.spec of Package perl-Net-AMQP-RabbitMQ (Project home:M0ses:Perl)

#
# spec file for package perl-Net-AMQP-RabbitMQ
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-Net-AMQP-RabbitMQ
Version:        2.30000
Release:        0
%define cpan_name Net-AMQP-RabbitMQ
Summary:        Interact with Rabbitmq Over Amqp Using Librabbitmq
License:        MPL
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Net-AMQP-RabbitMQ/
Source0:        http://www.cpan.org/authors/id/M/MA/MARKELLIS/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::CAPIMaker)
BuildRequires:  perl(Math::Int64) >= 0.34
BuildRequires:  openssl-devel
Requires:       perl(Math::Int64) >= 0.34
%{perl_requires}

%description
'Net::AMQP::RabbitMQ' provides a simple wrapper around the librabbitmq
library that allows connecting, declaring exchanges and queues, binding and
unbinding queues, publishing, consuming and receiving events.

Error handling in this module is primarily achieve by 'Perl_croak' (die).
You should be making good use of eval around these methods to ensure that
you appropriately catch the errors.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%check
# disabled because network access needed (M0ses)
#%%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE LICENSE-MIT

%changelog