Группа :: Разработка/Perl
Пакет: perl-Compress-Stream-Zstd
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define module_name Compress-Stream-Zstd
Name: perl-%module_name
Version: 0.206
Release: alt1
Summary: Perl interface to the Zstd (Zstandard) (de)compressor
License: BSD
Group: Development/Perl
Url: https://github.com/pmqs/Compress-Stream-Zstd
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/%{module_name}-%{version}.tar.gz
BuildRequires: gcc-c++ libcurl-devel libgtest-devel liblz4-devel liblzma-devel libsowing-devel libxxhash-devel libzstd-devel perl(Config.pm) perl(Exporter.pm) perl(ExtUtils/ParseXS.pm) perl(Module/Build.pm) perl(Test/More.pm) perl(XSLoader.pm) perl(parent.pm) zlib-devel
BuildRequires: rpm-build-perl perl-devel perl-podlators
%description
The Compress::Stream::Zstd module provides an interface to the Zstd
(de)compressor.
%prep
%setup -q -n %{module_name}-%{version}
%ifarch %e2k
# fine tuning for architecture and compiler
%add_optflags -D__inline='__inline __attribute__((always_inline))'
%add_optflags -DMEM_FORCE_MEMORY_ACCESS=2 -DXXH_FORCE_MEMORY_ACCESS=2 -DXXH_FORCE_ALIGN_CHECK=0
%endif
# to check if CFLAGS are correct
sed -i '1i $(info CFLAGS = $(CFLAGS))' ext/zstd/*/Makefile
# a way to deliver %optflags around "perl Build" that doesn't respect CFLAGS
sed -i "1i override CFLAGS += %optflags" ext/zstd/*/Makefile
%build
%perl_vendor_build
%install
%perl_vendor_install
%files
%doc Changes README.md
%perl_vendor_archlib/C*
%perl_vendor_autolib/*
%changelog
…
Полный changelog можно просмотреть здесь
%define module_name Compress-Stream-Zstd
Name: perl-%module_name
Version: 0.206
Release: alt1
Summary: Perl interface to the Zstd (Zstandard) (de)compressor
License: BSD
Group: Development/Perl
Url: https://github.com/pmqs/Compress-Stream-Zstd
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/%{module_name}-%{version}.tar.gz
BuildRequires: gcc-c++ libcurl-devel libgtest-devel liblz4-devel liblzma-devel libsowing-devel libxxhash-devel libzstd-devel perl(Config.pm) perl(Exporter.pm) perl(ExtUtils/ParseXS.pm) perl(Module/Build.pm) perl(Test/More.pm) perl(XSLoader.pm) perl(parent.pm) zlib-devel
BuildRequires: rpm-build-perl perl-devel perl-podlators
%description
The Compress::Stream::Zstd module provides an interface to the Zstd
(de)compressor.
%prep
%setup -q -n %{module_name}-%{version}
%ifarch %e2k
# fine tuning for architecture and compiler
%add_optflags -D__inline='__inline __attribute__((always_inline))'
%add_optflags -DMEM_FORCE_MEMORY_ACCESS=2 -DXXH_FORCE_MEMORY_ACCESS=2 -DXXH_FORCE_ALIGN_CHECK=0
%endif
# to check if CFLAGS are correct
sed -i '1i $(info CFLAGS = $(CFLAGS))' ext/zstd/*/Makefile
# a way to deliver %optflags around "perl Build" that doesn't respect CFLAGS
sed -i "1i override CFLAGS += %optflags" ext/zstd/*/Makefile
%build
%perl_vendor_build
%install
%perl_vendor_install
%files
%doc Changes README.md
%perl_vendor_archlib/C*
%perl_vendor_autolib/*
%changelog
…
Полный changelog можно просмотреть здесь