diff --git a/.gitignore b/.gitignore index e69de29..3520d49 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Sereal-3.005.tar.gz diff --git a/perl-Sereal.spec b/perl-Sereal.spec new file mode 100644 index 0000000..a88f3fc --- /dev/null +++ b/perl-Sereal.spec @@ -0,0 +1,55 @@ +Name: perl-Sereal +Version: 3.005 +Release: 1%{?dist} +Summary: Fast, compact, powerful binary (de-)serialization +# Makefile.PL defines LICENSE +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Sereal/ +Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Exporter) +BuildRequires: perl(Sereal::Decoder) >= 3.005 +BuildRequires: perl(Sereal::Encoder) >= 3.005 +# Tests: +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Sereal is an efficient, compact-output, binary and feature-rich serialization +protocol. The Perl encoder is implemented as the Sereal::Encoder module, the +Perl decoder correspondingly as Sereal::Decoder. This Sereal module is a very +thin wrapper around both Sereal::Encoder and Sereal::Decoder. It depends on +both and loads both. + +%prep +%setup -q -n Sereal-%{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 +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Sep 29 2015 Petr Pisar 3.005-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..31f1878 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7c7cde73ab4ac83a24dfc2abf33a394e Sereal-3.005.tar.gz