perl-Sereal-Encoder/perl-Sereal-Encoder.spec
2014-11-04 15:51:27 +01:00

100 lines
2.9 KiB
RPMSpec

# Temporarily until Sereal::Decoder is packaged
%global perl_bootstrap 1
Name: perl-Sereal-Encoder
Version: 3.003
Release: 1%{?dist}
Summary: Perl serialization into Serial format
# lib/Sereal/Encoder.pm: GPL+ or Artistic
# miniz.c: Unlicense (unbundled)
# snappy: BSD (unbundled)
# See <https://github.com/Sereal/Sereal/issues/72>
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Sereal-Encoder/
Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz
BuildRequires: csnappy-devel
BuildRequires: miniz-devel
BuildRequires: perl
BuildRequires: perl(Config)
BuildRequires: perl(Devel::CheckLib)
BuildRequires: perl(ExtUtils::Constant)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
BuildRequires: perl(XSLoader)
# Tests:
# Benchmark not used
BuildRequires: perl(blib)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::Peek)
BuildRequires: perl(Encode)
BuildRequires: perl(integer)
BuildRequires: perl(lib)
BuildRequires: perl(List::Util)
BuildRequires: perl(overload)
BuildRequires: perl(Scalar::Util)
%if !%{defined perl_bootstrap}
BuildRequires: perl(Sereal::Decoder) >= 3.00
%endif
BuildRequires: perl(Storable)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warn)
BuildRequires: perl(threads)
BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Tie::Scalar)
# Time::HiRes not used
BuildRequires: perl(utf8)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This library implements an efficient, compact-output, and feature-rich
serializer using a binary protocol called Sereal.
%prep
%setup -q -n Sereal-Encoder-%{version}
# Remove bundled Perl modules
rm -r ./inc/Devel
sed -i -s '/^inc\/Devel/d' MANIFEST
# Remove bundled csnappy
rm -r ./snappy
sed -i -s '/^snappy/d' MANIFEST
# Remove bundled miniz
rm miniz.*
sed -i -s '/^miniz\./d' MANIFEST
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Sereal*
%{_mandir}/man3/*
%changelog
* Tue Nov 04 2014 Petr Pisar <ppisar@redhat.com> - 3.003-1
- 3.003 bump
* Fri Oct 10 2014 Petr Pisar <ppisar@redhat.com> 3.002-1
- Specfile autogenerated by cpanspec 1.78.