public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-IO-Compress-Brotli] f43: 0.023 bump
Date: Fri, 30 Oct 2026 10:36:11 GMT [thread overview]
Message-ID: <179335657139.1.700306404571733571.rpms-perl-IO-Compress-Brotli-ef86940d30d0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-IO-Compress-Brotli
Branch : f43
Commit : ef86940d30d06398b345ae5611d8cb87df6d35d2
Author : Michal Josef Špaček <mspacek@redhat.com>
Date : 2026-10-30T10:45:37+01:00
Stats : +85/-33 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/perl-IO-Compress-Brotli/c/ef86940d30d06398b345ae5611d8cb87df6d35d2?branch=f43
Log:
0.023 bump
---
diff --git a/.gitignore b/.gitignore
index cf62510..be114e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/IO-Compress-Brotli-0.004001.tar.gz
/IO-Compress-Brotli-0.019.tar.gz
+/IO-Compress-Brotli-0.023.tar.gz
diff --git a/IO-Compress-Brotli-0.019-Use-pkgconfig-instead-of-bundled-libbrotli.patch b/IO-Compress-Brotli-0.019-Use-pkgconfig-instead-of-bundled-libbrotli.patch
index 146ae0b..d2d7142 100644
--- a/IO-Compress-Brotli-0.019-Use-pkgconfig-instead-of-bundled-libbrotli.patch
+++ b/IO-Compress-Brotli-0.019-Use-pkgconfig-instead-of-bundled-libbrotli.patch
@@ -1,7 +1,7 @@
-diff -u -r IO-Compress-Brotli-0.019.orig/Makefile.PL IO-Compress-Brotli-0.019/Makefile.PL
---- IO-Compress-Brotli-0.019.orig/Makefile.PL 2025-05-09 16:56:26.163965258 +0200
-+++ IO-Compress-Brotli-0.019/Makefile.PL 2025-05-09 17:15:04.015620812 +0200
-@@ -1,24 +1,24 @@
+diff -u -r IO-Compress-Brotli-0.023.orig/Makefile.PL IO-Compress-Brotli-0.023/Makefile.PL
+--- IO-Compress-Brotli-0.023.orig/Makefile.PL 2026-10-27 15:49:32.749030025 +0100
++++ IO-Compress-Brotli-0.023/Makefile.PL 2026-10-27 15:54:17.393971382 +0100
+@@ -1,59 +1,21 @@
use 5.008000;
use ExtUtils::MakeMaker;
-use Alien::cmake3;
@@ -9,22 +9,60 @@ diff -u -r IO-Compress-Brotli-0.019.orig/Makefile.PL IO-Compress-Brotli-0.019/Ma
-use Config;
+use ExtUtils::PkgConfig;
--my $cmake_options;
--my $myextlib = 'brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT)';
+-my $lib_ext = $Config{lib_ext} || '.a';
+-
+-# The three static archives produced by Brotli's own CMake build
+-# (-DBUILD_SHARED_LIBS=OFF gives separate enc/dec/common libs).
+-my @parts = (
+- "brotli/libbrotlienc$lib_ext",
+- "brotli/libbrotlidec$lib_ext",
+- "brotli/libbrotlicommon$lib_ext",
+-);
+-my $parts_str = join ' ', @parts;
+-
+-# ONE combined archive. ExtUtils::MakeMaker's static_lib rule runs
+-# cp $(MYEXTLIB) $(INST_STATIC)
+-# which only works when MYEXTLIB names a single file. Setting MYEXTLIB to the
+-# three separate libs is what made cp fail with "No such file or directory",
+-# so we merge them into a single library and hand EU::MM that.
+-my $myextlib = "brotli/libbrotli$lib_ext";
+-
+-my $cmake_options = '';
+-my $merge_cmds; # extra Makefile recipe line(s) that build $myextlib from @parts
+-
+-if ($Config{myuname} =~ /strawberry/i || $Config{osname} =~ /MSWin/i) {
+- if ($Config{cc} =~ /cl/i) { # MSVC toolchain: lib.exe merges libs
+- $cmake_options = ' -G "NMake Makefiles" ';
+- $merge_cmds = "\tlib -nologo -out:$myextlib $parts_str\n";
+- } else { # MinGW: GNU binutils ar (supports -M)
+- $cmake_options = ' -G "MinGW Makefiles" ';
+- $merge_cmds = gnu_merge($myextlib);
+- }
+-} elsif ($^O eq 'darwin') { # macOS: BSD ar has no -M, use libtool
+- $merge_cmds = "\tlibtool -static -o $myextlib $parts_str\n";
+-} else { # Linux / GNU ar
+- $merge_cmds = gnu_merge($myextlib);
+-}
+-
+-# Build an `ar` MRI script now and feed it to ar via input redirection at
+-# build time. Redirection works under both /bin/sh and cmd.exe, avoiding the
+-# shell-quoting differences of an inline here-doc.
+-sub gnu_merge {
+- my ($out) = @_;
+- if (-d 'brotli') {
+- open my $fh, '>', 'brotli/combine.mri' or die "Cannot write brotli/combine.mri: $!";
+- print {$fh} "create $out\n";
+- print {$fh} "addlib $_\n" for @parts;
+- print {$fh} "save\n";
+- print {$fh} "end\n";
+- close $fh;
+- }
+- return "\t\$(AR) -M < brotli/combine.mri\n"
+- . "\t\$(RANLIB) $out\n";
+my @requirements = qw(libbrotlidec libbrotlienc);
+my $libs = '';
+my $inc = '';
-
--if ($Config{myuname} =~ /strawberry/i || $Config{osname} =~ /MSWin/i ) {
-- if ($Config{cc} =~ /gcc/i) {
-- $cmake_options = ' -G "MinGW Makefiles" ';
-- } elsif ($Config{cc} =~ /cl/i) {
-- $cmake_options = ' -G "NMake Makefiles" ';
-- $myextlib = 'brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT)';
-- } else {
-- $cmake_options = '';
-- $myextlib = 'brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT)';
-- }
++
+my %pkgcfg;
+foreach my $req (@requirements) {
+ eval{
@@ -37,14 +75,16 @@ diff -u -r IO-Compress-Brotli-0.019.orig/Makefile.PL IO-Compress-Brotli-0.019/Ma
+ $inc .= $pkgcfg{cflags}.' ';
}
-+
WriteMakefile(
- NAME => 'IO::Compress::Brotli',
- VERSION_FROM => 'lib/IO/Compress/Brotli.pm',
-@@ -33,29 +33,12 @@
- 'Getopt::Long' => '0',
- 'Time::HiRes' => '0',
- },
+@@ -65,34 +27,12 @@
+ LICENSE => 'perl',
+ SIGN => 1,
+ EXE_FILES => [ 'bin/bro-perl' ],
+- PREREQ_PM => {
+- 'File::Slurper' => '0',
+- 'Getopt::Long' => '0',
+- 'Time::HiRes' => '0',
+- },
- CONFIGURE_REQUIRES => {
- 'Alien::cmake3' => '0',
- },
@@ -53,8 +93,7 @@ diff -u -r IO-Compress-Brotli-0.019.orig/Makefile.PL IO-Compress-Brotli-0.019/Ma
- },
- INC => '-Ibrotli/c/include',
- MYEXTLIB => $myextlib,
-- EXTRALIBS => ' brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT) ',
-- clean => { FILES => "brotli/Makefile $myextlib brotli/CMakeCache.txt brotli/CMakeFiles/* brotli/CTestTestfile.cmake brotli/DartConfiguration.tcl brotli/brotli* brotli/cmake_install.cmake brotli/libbrotlicommon.pc brotli/libbrotlidec.pc brotli/libbrotlienc.pc" },
+- clean => { FILES => "brotli/Makefile $myextlib $parts_str brotli/combine.mri brotli/CMakeCache.txt brotli/CMakeFiles/* brotli/CTestTestfile.cmake brotli/DartConfiguration.tcl brotli/brotli* brotli/cmake_install.cmake brotli/libbrotlicommon.pc brotli/libbrotlidec.pc brotli/libbrotlienc.pc" },
META_ADD => {
dynamic_config => 0,
resources => {
@@ -69,8 +108,9 @@ diff -u -r IO-Compress-Brotli-0.019.orig/Makefile.PL IO-Compress-Brotli-0.019/Ma
-sub MY::postamble {
- my @dirs = Alien::cmake3->bin_dir;
- my $cmake = defined $dirs[0] ? catfile($dirs[0] , Alien::cmake3->exe) : Alien::cmake3->exe;
--'
--$(MYEXTLIB): brotli/CMakeLists.txt
-- cd brotli && "' . $cmake . '"' . $cmake_options . ' -DCMAKE_MAKE_PROGRAM=$(MAKE) -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed . && $(MAKE)
--'
+- return <<"POSTAMBLE";
+-\$(MYEXTLIB): brotli/CMakeLists.txt
+-\tcd brotli && "$cmake"$cmake_options -DCMAKE_MAKE_PROGRAM=\$(MAKE) -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed . && \$(MAKE)
+-$merge_cmds
+-POSTAMBLE
-}
diff --git a/perl-IO-Compress-Brotli.rpmlintrc b/perl-IO-Compress-Brotli.rpmlintrc
new file mode 100644
index 0000000..adf4c7c
--- /dev/null
+++ b/perl-IO-Compress-Brotli.rpmlintrc
@@ -0,0 +1,2 @@
+addFilter('-tests\.noarch: W: no-documentation')
+addFilter('-tests\.noarch: E: zero-length /usr/libexec/perl-IO-Compress-Brotli/brotli/tests/testdata/empty')
diff --git a/perl-IO-Compress-Brotli.spec b/perl-IO-Compress-Brotli.spec
index 6714d2f..c08632b 100644
--- a/perl-IO-Compress-Brotli.spec
+++ b/perl-IO-Compress-Brotli.spec
@@ -1,7 +1,7 @@
-%global cpan_version 0.019
+%global cpan_version 0.023
Name: perl-IO-Compress-Brotli
Version: %{cpan_version}000
-Release: 4%{?dist}
+Release: 1%{?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/
@@ -59,6 +59,12 @@ for F in `find brotli -type f | grep -v testdata`; do
perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST
done
+# Help generators to recognize Perl scripts
+for F in t/*.t; do
+ perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
+ chmod +x "$F"
+done
+
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
@@ -93,6 +99,9 @@ make test
%{_libexecdir}/%{name}
%changelog
+* Tue Oct 27 2026 Michal Josef Špaček <mspacek@redhat.com> - 0.023000-1
+- 0.023 bump
+
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.019000-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
diff --git a/sources b/sources
index 204df09..888da67 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (IO-Compress-Brotli-0.019.tar.gz) = d81fb94dfbdae24af3985349ccccfac9d5a863452b173542f7718e3a1ffcf18819b4456e2e0c305afabe0eeb336c0ad648d4d3f0fdb1f6229e82e0fad4751628
+SHA512 (IO-Compress-Brotli-0.023.tar.gz) = e1e0d22013cd514da82241ded6b46153a7c94b88489aa3cb3d8a1c0c948dfe3b51c9fd3e10162f62b47d72ee57563436d48c5d58383507affffce01f656169fe
reply other threads:[~2026-10-30 10:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179335657139.1.700306404571733571.rpms-perl-IO-Compress-Brotli-ef86940d30d0@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox