Compare commits

...

4 Commits
rawhide ... f26

Author SHA1 Message Date
Jitka Plesnikova b367ed7a4e 4.005 bump 2018-01-24 09:27:52 +01:00
Petr Písař 205256d145 Correct a typo in a condition 2017-11-14 15:16:19 +01:00
Petr Písař 421a221a60 4.004 bump 2017-11-14 14:38:58 +01:00
Petr Písař 52a69213b4 perl dependency renamed to perl-interpreter <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules> 2017-11-14 14:38:13 +01:00
3 changed files with 38 additions and 14 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@
/Sereal-Encoder-3.009.tar.gz
/Sereal-Encoder-3.014.tar.gz
/Sereal-Encoder-3.015.tar.gz
/Sereal-Encoder-4.004.tar.gz
/Sereal-Encoder-4.005.tar.gz

View File

@ -1,31 +1,39 @@
# Run optional tests
%bcond_without perl_Sereal_Encoder_enables_optional_test
Name: perl-Sereal-Encoder
Version: 3.015
Release: 2%{?dist}
Version: 4.005
Release: 1%{?dist}
Summary: Perl serialization into Serial format
# lib/Sereal/Encoder.pm: GPL+ or Artistic
# qsort.h: LGPLv2+ (borrowed from glibc)
# miniz.c: Unlicense (unbundled)
# snappy: BSD (unbundled)
# zstd: BSD (unbundled)
# See <https://github.com/Sereal/Sereal/issues/72>
License: (GPL+ or Artistic) and LGPLv2+
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: coreutils
BuildRequires: csnappy-devel
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: libzstd-devel
BuildRequires: make
BuildRequires: miniz-devel
BuildRequires: perl
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
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)
# File::Find not used
# File::Path not used in inc/Sereal/BuildTools.pm
# File::Spec not used in inc/Sereal/BuildTools.pm
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: sed
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
@ -37,12 +45,14 @@ BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::Peek)
BuildRequires: perl(Encode)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(integer)
BuildRequires: perl(lib)
BuildRequires: perl(List::Util)
BuildRequires: perl(overload)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sereal::Decoder) >= 3.00
BuildRequires: perl(Sereal::Decoder) >= 4.002
BuildRequires: perl(Storable)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::More) >= 0.88
@ -55,9 +65,11 @@ BuildRequires: perl(Tie::Scalar)
# Time::HiRes not used
BuildRequires: perl(utf8)
BuildRequires: perl(version)
%if %{with perl_Sereal_Encoder_enables_optional_test}
# Optional tests:
BuildRequires: perl(Test::Deep) >= 0.110
BuildRequires: perl(Test::Deep::NoTest)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
@ -68,21 +80,25 @@ serializer using a binary protocol called Sereal.
%setup -q -n Sereal-Encoder-%{version}
# Remove bundled Perl modules
rm -r ./inc/Devel
sed -i -s '/^inc\/Devel/d' MANIFEST
sed -i -e '/^inc\/Devel\//d' MANIFEST
# Remove bundled csnappy
rm -r ./snappy
sed -i -s '/^snappy/d' MANIFEST
sed -i -e '/^snappy\//d' MANIFEST
# Remove bundled miniz
rm miniz.*
sed -i -s '/^miniz\./d' MANIFEST
sed -i -e '/^miniz\./d' MANIFEST
# Remove bundled zstd
rm -r zstd
sed -i -e '/^zstd\//d' MANIFEST
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
unset DEBUG SEREAL_USE_BUNDLED_LIBS SEREAL_USE_BUNDLED_CSNAPPY \
SEREAL_USE_BUNDLED_MINIZ SEREAL_USE_BUNDLED_ZSTD
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*
@ -96,6 +112,12 @@ make test
%{_mandir}/man3/*
%changelog
* Wed Jan 24 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.005-1
- 4.005 bump
* Tue Nov 14 2017 Petr Pisar <ppisar@redhat.com> - 4.004-1
- 4.004 bump
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.015-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

View File

@ -1 +1 @@
78428860e055561e371e3292093c1fc5 Sereal-Encoder-3.015.tar.gz
SHA512 (Sereal-Encoder-4.005.tar.gz) = fa4b3b449ab745bebeee45b3c74fcb68fd18b1b195eba557540ee13dfc5c645b14b57677afa0fa139b4a0918a9bcb46d03e688ef0e3b052881a256e37c7b1f4c