Name: perl-IO-Compress-Brotli Version: 0.004001 Release: 6%{?dist} Summary: Perl bindings for Brotli compression License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/IO-Compress-Brotli/ Source0: https://cpan.metacpan.org/authors/id/M/MG/MGV/IO-Compress-Brotli-%{version}.tar.gz Patch0: IO-Compress-Brotli-0.004001-Use-pkgconfig-instead-of-bundled-libbrotli.patch # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig(libbrotlidec) BuildRequires: pkgconfig(libbrotlienc) BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::PkgConfig) # Run-time BuildRequires: perl(Exporter) BuildRequires: perl(File::Slurper) BuildRequires: perl(parent) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Tests BuildRequires: perl(Test::More) # Used in the installed script `bro-perl` - added by perl-generators # BuildRequires: perl(Getopt::Long) # BuildRequires: perl(Time::HiRes) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description IO::Compress::Brotli is a module that compresses Brotli buffers and streams. Despite its name, it is not a subclass of IO::Compress::Base and does not implement its interface. This will be rectified in a future release. %prep %setup -q -n IO-Compress-Brotli-%{version} %patch0 -p1 # Remove bundled source for F in `find brotli -type f | grep -v testdata`; do rm -rf $F perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST done %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* %check make test %files %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/IO* %{_mandir}/man3/* %{_bindir}/bro-perl %changelog * Tue Aug 16 2022 Petr Salaba - 0.004001-6 - Update package summary * Thu Aug 04 2022 Petr Salaba - 0.004001-5 - Update license in spec * Wed Aug 03 2022 Petr Salaba - 0.004001-4 - Update summary, fix up spec file * Tue Aug 02 2022 Petr Salaba - 0.004001-3 - Add exception for no-manual-page-for-binary * Mon Aug 01 2022 Petr Salaba - 0.004001-2 - Cleaned up spec, switched to ExtUtils::PkgConfig * Wed Jul 27 2022 Petr Salaba 0.004001-1 - Specfile autogenerated by cpanspec 1.78. - Patched to use system libbrotli instead of bundled lib