diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5049923 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Net-AMQP-0.06.tar.gz diff --git a/perl-Net-AMQP.spec b/perl-Net-AMQP.spec new file mode 100644 index 0000000..54cfbe3 --- /dev/null +++ b/perl-Net-AMQP.spec @@ -0,0 +1,69 @@ +Name: perl-Net-AMQP +Version: 0.06 +Release: 1%{?dist} +Summary: Advanced Message Queue Protocol (de)serialization and representation +License: GPL+ or Artistic + +URL: https://metacpan.org/release/Net-AMQP +Source0: https://cpan.metacpan.org/authors/id/C/CH/CHIPS/Net-AMQP-%{version}.tar.gz + +BuildArch: noarch +# build requirements +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(Module::Build) +# runtime requirements +BuildRequires: perl(Carp) +BuildRequires: perl(Class::Accessor::Fast) +BuildRequires: perl(Class::Data::Inheritable) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(XML::LibXML) +BuildRequires: perl(base) +BuildRequires: perl(constant) +BuildRequires: perl(overload) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# test requirements +BuildRequires: perl(File::Temp) >= 0.19 +BuildRequires: perl(FindBin) +BuildRequires: perl(Parse::RecDescent) +BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module implements the frame (de)serialization and representation of +the Advanced Message Queue Protocol (http://www.amqp.org/). It is to be +used in conjunction with client or server software that does the actual +TCP/IP communication. + +%prep +%setup -q -n Net-AMQP-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +%{__perl} -pi -e 's/\r//' spec/amqp0-9*.xml +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc CHANGES eg README spec +%license LICENSE +%{perl_vendorlib}/Net* +%{_mandir}/man3/Net* + +%changelog +* Fri Jun 22 2018 Emmanuel Seyman - 0.06-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..2b22404 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Net-AMQP-0.06.tar.gz) = d764a85833a82e0f23b80fde75f57f958eea919e963a1a860eb1447edcfe6ebc8711b094ee4d79363c92ad30178b8ea6ce067eb06a848cef41533ab04f731d7e