epel9
Petr Písař 7 years ago
parent 16005c566f
commit b82daf4cf9

1
.gitignore vendored

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

@ -1,31 +1,39 @@
# Run optional tests
%bcond_with perl_Sereal_Encoder_enables_optional_test
Name: perl-Sereal-Encoder Name: perl-Sereal-Encoder
Version: 3.015 Version: 4.004
Release: 5%{?dist} Release: 1%{?dist}
Summary: Perl serialization into Serial format Summary: Perl serialization into Serial format
# lib/Sereal/Encoder.pm: GPL+ or Artistic # lib/Sereal/Encoder.pm: GPL+ or Artistic
# qsort.h: LGPLv2+ (borrowed from glibc) # qsort.h: LGPLv2+ (borrowed from glibc)
# miniz.c: Unlicense (unbundled) # miniz.c: Unlicense (unbundled)
# snappy: BSD (unbundled) # snappy: BSD (unbundled)
# zstd: BSD (unbundled)
# See <https://github.com/Sereal/Sereal/issues/72> # See <https://github.com/Sereal/Sereal/issues/72>
License: (GPL+ or Artistic) and LGPLv2+ License: (GPL+ or Artistic) and LGPLv2+
Group: Development/Libraries
URL: http://search.cpan.org/dist/Sereal-Encoder/ URL: http://search.cpan.org/dist/Sereal-Encoder/
Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: csnappy-devel BuildRequires: csnappy-devel
BuildRequires: findutils
BuildRequires: gcc BuildRequires: gcc
BuildRequires: libzstd-devel
BuildRequires: make
BuildRequires: miniz-devel BuildRequires: miniz-devel
BuildRequires: perl-interpreter
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(constant) BuildRequires: perl(constant)
BuildRequires: perl(Devel::CheckLib) BuildRequires: perl(Devel::CheckLib)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0 BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
BuildRequires: perl(File::Find) # File::Find not used
BuildRequires: perl(File::Path) # File::Path not used in inc/Sereal/BuildTools.pm
BuildRequires: perl(File::Spec) # File::Spec not used in inc/Sereal/BuildTools.pm
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
BuildRequires: sed
# Run-time: # Run-time:
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
@ -37,12 +45,14 @@ BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::Peek) BuildRequires: perl(Devel::Peek)
BuildRequires: perl(Encode) BuildRequires: perl(Encode)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(integer) BuildRequires: perl(integer)
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(List::Util) BuildRequires: perl(List::Util)
BuildRequires: perl(overload) BuildRequires: perl(overload)
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sereal::Decoder) >= 3.00 BuildRequires: perl(Sereal::Decoder) >= 4.002
BuildRequires: perl(Storable) BuildRequires: perl(Storable)
BuildRequires: perl(Test::LongString) BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
@ -55,9 +65,11 @@ BuildRequires: perl(Tie::Scalar)
# Time::HiRes not used # Time::HiRes not used
BuildRequires: perl(utf8) BuildRequires: perl(utf8)
BuildRequires: perl(version) BuildRequires: perl(version)
%if %{with perl_Sereal_Encoder_enables_optional_test}
# Optional tests: # Optional tests:
BuildRequires: perl(Test::Deep) >= 0.110 BuildRequires: perl(Test::Deep) >= 0.110
BuildRequires: perl(Test::Deep::NoTest) BuildRequires: perl(Test::Deep::NoTest)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description %description
@ -68,21 +80,25 @@ serializer using a binary protocol called Sereal.
%setup -q -n Sereal-Encoder-%{version} %setup -q -n Sereal-Encoder-%{version}
# Remove bundled Perl modules # Remove bundled Perl modules
rm -r ./inc/Devel rm -r ./inc/Devel
sed -i -s '/^inc\/Devel/d' MANIFEST sed -i -e '/^inc\/Devel\//d' MANIFEST
# Remove bundled csnappy # Remove bundled csnappy
rm -r ./snappy rm -r ./snappy
sed -i -s '/^snappy/d' MANIFEST sed -i -e '/^snappy\//d' MANIFEST
# Remove bundled miniz # Remove bundled miniz
rm 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 %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} make %{?_smp_mflags}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT 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 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
@ -96,6 +112,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Nov 14 2017 Petr Pisar <ppisar@redhat.com> - 4.004-1
- 4.004 bump
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.015-5 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.015-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

@ -1 +1 @@
78428860e055561e371e3292093c1fc5 Sereal-Encoder-3.015.tar.gz SHA512 (Sereal-Encoder-4.004.tar.gz) = 5658348128409cec08c01ed216a22edc1c3cbf8a3eab0574378960211fd38a210dc06160c6fc2836a6d53ae4953b14040c579290cbf43de6d3f68bca13e5c7e2

Loading…
Cancel
Save