137 lines
4.0 KiB
RPMSpec
137 lines
4.0 KiB
RPMSpec
Name: perl-Sereal-Decoder
|
|
Version: 3.009
|
|
Release: 1%{?dist}
|
|
Summary: Perl deserialization for Sereal format
|
|
# lib/Sereal/Decoder.pm: GPL+ or Artistic
|
|
# miniz.c: Unlicense (unbundled)
|
|
# snappy: BSD (unbundled)
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Sereal-Decoder/
|
|
Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-%{version}.tar.gz
|
|
BuildRequires: coreutils
|
|
BuildRequires: csnappy-devel
|
|
BuildRequires: findutils
|
|
BuildRequires: gcc
|
|
BuildRequires: make
|
|
BuildRequires: miniz-devel
|
|
BuildRequires: perl
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(constant)
|
|
BuildRequires: perl(Devel::CheckLib)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
|
BuildRequires: perl(File::Find)
|
|
BuildRequires: perl(File::Path)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
BuildRequires: sed
|
|
# Run-time:
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(XSLoader)
|
|
# Tests:
|
|
# Benchmark not used
|
|
BuildRequires: perl(blib)
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(Data::Dumper)
|
|
BuildRequires: perl(Devel::Peek)
|
|
BuildRequires: perl(Encode)
|
|
BuildRequires: perl(integer)
|
|
BuildRequires: perl(lib)
|
|
BuildRequires: perl(overload)
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(Storable)
|
|
BuildRequires: perl(Test::LongString)
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
BuildRequires: perl(Test::Warn)
|
|
BuildRequires: perl(threads)
|
|
# Time::HiRes not used
|
|
BuildRequires: perl(utf8)
|
|
# Optional tests:
|
|
%if !%{defined perl_bootstrap}
|
|
# Some tests require Sereal::Encoder 3.005003, but most of them do not require
|
|
# exact version. Thus do not constrain the version here.
|
|
BuildRequires: perl(Sereal::Encoder)
|
|
BuildRequires: perl(Tie::Array)
|
|
BuildRequires: perl(Tie::Hash)
|
|
BuildRequires: perl(Tie::Scalar)
|
|
%endif
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%description
|
|
This library implements a deserializer for an efficient, compact-output,
|
|
and feature-rich binary protocol called Sereal.
|
|
|
|
%prep
|
|
%setup -q -n Sereal-Decoder-%{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
|
|
* Wed Dec 02 2015 Petr Pisar <ppisar@redhat.com> - 3.009-1
|
|
- 3.009 bump
|
|
|
|
* Mon Nov 30 2015 Petr Pisar <ppisar@redhat.com> - 3.008-1
|
|
- 3.008 bump
|
|
|
|
* Fri Nov 27 2015 Petr Pisar <ppisar@redhat.com> - 3.007-2
|
|
- Do not constrain Sereal::Encoder version
|
|
|
|
* Fri Nov 27 2015 Petr Pisar <ppisar@redhat.com> - 3.007-1
|
|
- 3.007 bump
|
|
|
|
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 3.006-1
|
|
- 3.006 bump
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.005-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.005-3
|
|
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.005-2
|
|
- Perl 5.22 rebuild
|
|
|
|
* Tue Jan 06 2015 Petr Pisar <ppisar@redhat.com> - 3.005-1
|
|
- 3.005 bump
|
|
|
|
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 3.004-1
|
|
- 3.004 bump
|
|
|
|
* Wed Nov 12 2014 Petr Pisar <ppisar@redhat.com> - 3.003-1
|
|
- 3.003 bump
|
|
|
|
* Thu Nov 06 2014 Petr Pisar <ppisar@redhat.com> - 3.002-2
|
|
- Finish Sereal bootstrap
|
|
|
|
* Fri Oct 10 2014 Petr Pisar <ppisar@redhat.com> 3.002-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|