public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Text-Bidi] rawhide: 3.01 bump
Date: Mon, 16 Nov 2026 17:07:12 GMT	[thread overview]
Message-ID: <179484883218.1.3648630396538229790.rpms-perl-Text-Bidi-23ad9e7c4bc2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Text-Bidi
Branch : rawhide
Commit : 23ad9e7c4bc255fd40a6212659a6aa3107e28ea1
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-11-16T18:06:13+01:00
Stats  : +94/-69 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Text-Bidi/c/23ad9e7c4bc255fd40a6212659a6aa3107e28ea1?branch=rawhide

Log:
3.01 bump

---
diff --git a/.gitignore b/.gitignore
index e868268..cff8989 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /Unicode-DFS-2016.txt
 /license.txt
 /Text-Bidi-2.18.tar.gz
+/Text-Bidi-3.01.tar.gz

diff --git a/Text-Bidi-2.18-Do-not-ignore-Swig-failures.patch b/Text-Bidi-2.18-Do-not-ignore-Swig-failures.patch
deleted file mode 100644
index 7451aa2..0000000
--- a/Text-Bidi-2.18-Do-not-ignore-Swig-failures.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From bb429eb1f018bb8d996fb6faa413af5a8025b194 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Fri, 20 Jan 2023 11:28:35 +0100
-Subject: [PATCH] Do not ignore Swig failures
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-If private.c and private.pm files need to be regenerated by Swig,
-failures of swig command were silently ignored.
-
-This patch fixes it by failing Makefile on swig error.
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- Makefile.PL | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile.PL b/Makefile.PL
-index a00d23b..f571f06 100644
---- a/Makefile.PL
-+++ b/Makefile.PL
-@@ -102,7 +102,7 @@ sub MY::postamble {
- pm_to_blib: lib/Text/Bidi/private.pm
- 
- private.c lib/Text/Bidi/private.pm: swig/fribidi.i
--	-/usr/bin/swig -perl -Wall -I/usr/include $cflags -outdir lib/Text/Bidi/ -o private.c \$<
-+	/usr/bin/swig -perl -Wall -I/usr/include $cflags -outdir lib/Text/Bidi/ -o private.c \$<
-  
- swig-clean: clean
- 	-rm private.c lib/Text/Bidi/private.pm
--- 
-2.39.1
-

diff --git a/Text-Bidi-3.01-Remove-a-check-for-not-loading-from-Perl-system-path.patch b/Text-Bidi-3.01-Remove-a-check-for-not-loading-from-Perl-system-path.patch
new file mode 100644
index 0000000..d62f15c
--- /dev/null
+++ b/Text-Bidi-3.01-Remove-a-check-for-not-loading-from-Perl-system-path.patch
@@ -0,0 +1,44 @@
+From 79b80d20fd9be56b27cd3be89de9999bcf1af4c8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Mon, 16 Nov 2026 17:24:31 +0100
+Subject: [PATCH] Remove a check for not loading from Perl system path
+
+---
+ t/ffi.t | 14 --------------
+ 1 file changed, 14 deletions(-)
+
+diff --git a/t/ffi.t b/t/ffi.t
+index 1739fd5..830667e 100644
+--- a/t/ffi.t
++++ b/t/ffi.t
+@@ -1,9 +1,6 @@
+ use 5.010;
+ use strict;
+ use warnings;
+-use File::Basename qw(dirname);
+-use File::Spec;
+-use lib File::Spec->catdir(dirname(__FILE__), '..', 'lib');
+ use Test::More;
+ use FFI::CheckLib qw(find_lib_or_die);
+ use IPC::Open3;
+@@ -13,17 +10,6 @@ use Cwd qw(abs_path);
+ use Text::Bidi qw(log2vis fribidi_version_num unicode_version);
+ use Text::Bidi::Constants;
+ 
+-# Runtime prerequisites can include an older Text::Bidi installation. Test this
+-# distribution even under plain prove or a release runner with a different @INC.
+-my $source_lib = File::Spec->catdir(dirname(__FILE__), '..', 'lib');
+-for my $module (qw(Text/Bidi.pm Text/Bidi/private.pm)) {
+-    my $expected = abs_path(File::Spec->catfile($source_lib, split m{/}, $module));
+-    my $loaded = abs_path($INC{$module});
+-    BAIL_OUT("$module was preloaded from $loaded; expected $expected. "
+-        . 'Run tests without preloading another Text::Bidi installation.')
+-        unless defined($loaded) && defined($expected) && $loaded eq $expected;
+-}
+-
+ like fribidi_version_num(), qr/^\d+\.\d+\.\d+$/, 'runtime library version';
+ like unicode_version(), qr/^\d+\.\d+\.\d+$/, 'runtime Unicode version';
+ 
+-- 
+2.56.1
+

diff --git a/perl-Text-Bidi.rpmlintrc b/perl-Text-Bidi.rpmlintrc
index 78da558..0e29a21 100644
--- a/perl-Text-Bidi.rpmlintrc
+++ b/perl-Text-Bidi.rpmlintrc
@@ -1,4 +1,8 @@
 addFilter('spelling-error .* libfribidi')
-addFilter('-tests\.noarch: W: no-documentation')
+addFilter('-tests\..*: W: no-documentation')
+# Tests contain a location of the urxvt plugin
+addFilter('perl-Text-Bidi-tests\..*: E: no-binary')
 # This is where urxvt stores plugins
 addFilter('perl-Text-Bidi-urxvt.*: W: only-non-binary-in-usr-lib')
+# And thus the main package must be fullarch
+addFilter('perl-Text-Bidi\..*: E: no-binary')

diff --git a/perl-Text-Bidi.spec b/perl-Text-Bidi.spec
index 972e112..660293a 100644
--- a/perl-Text-Bidi.spec
+++ b/perl-Text-Bidi.spec
@@ -1,9 +1,12 @@
 # Disable t/ucd.t, it consumes a lot of memory, CPAN RT#108739
 %bcond_with ucdtest
 
+# No noarch BuildArch because urxvt subpackage needs to be fullarch.
+%define debug_package %{nil}
+
 Name:           perl-Text-Bidi
-Version:        2.18
-Release:        19%{?dist}
+Version:        3.01
+Release:        1%{?dist}
 Summary:        Unicode bidirectional algorithm using libfribidi
 # LICENSE:          GPL-1.0-or-later OR Artistic-1.0-Perl
 # t/MirrorTest.txt: Unicode-DFS-2016 (a copy of
@@ -17,54 +20,57 @@ License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 SourceLicense:  (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-DFS-2016 AND Unicode-DFS-2015
 URL:            https://metacpan.org/release/Text-Bidi
 Source0:        https://cpan.metacpan.org/authors/id/K/KA/KAMENSKY/Text-Bidi-%{version}.tar.gz
+# This is a patch to make the installed tests working out of a build tree on
+# system-wide installed modules.
+Source1:        Text-Bidi-3.01-Remove-a-check-for-not-loading-from-Perl-system-path.patch
 # bidi is a plugin, CPAN RT#108737
 Patch0:         Text-Bidi-2.12-Remove-script-attributes-from-bidi.patch
-# Respect swig failures, proposed to the upstream,
-# <https://github.com/mkamensky/Text-Bidi/pull/13>
-Patch1:         Text-Bidi-2.18-Do-not-ignore-Swig-failures.patch
 # Adjust a test for an out-tree testing, not suitable for upstream
-Patch2:         Text-Bidi-2.16-Skip-nonexisting-scripts.patch
+Patch1:         Text-Bidi-2.16-Skip-nonexisting-scripts.patch
 BuildRequires:  coreutils
-BuildRequires:  findutils
-BuildRequires:  gcc
 BuildRequires:  make
-BuildRequires:  perl-devel
+BuildRequires:  patch
 BuildRequires:  perl-generators
 BuildRequires:  perl-interpreter
+BuildRequires:  perl(:VERSION) >= 5.10.0
 BuildRequires:  perl(Config)
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
-# Prefer pkgconfig for locating fribidi
-BuildRequires:  perl(ExtUtils::PkgConfig)
 BuildRequires:  perl(strict)
-BuildRequires:  perl(version) >= 0.77
 BuildRequires:  perl(warnings)
-BuildRequires:  pkgconfig(fribidi) >= 1.0.0
-BuildRequires:  swig
 # Run-time:
+BuildRequires:  fribidi >= 1.0.0
 BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(Config)
-BuildRequires:  perl(DynaLoader)
 BuildRequires:  perl(Encode)
 BuildRequires:  perl(Exporter)
+BuildRequires:  perl(FFI::CheckLib) >= 0.28
+BuildRequires:  perl(FFI::Platypus) >= 2.00
+BuildRequires:  perl(FFI::Platypus::Buffer)
 BuildRequires:  perl(Getopt::Long)
 BuildRequires:  perl(integer)
 BuildRequires:  perl(open)
 BuildRequires:  perl(overload)
 BuildRequires:  perl(Tie::Array)
+BuildRequires:  perl(version) >= 0.77
 # Tests:
 BuildRequires:  perl(blib)
 BuildRequires:  perl(charnames)
+BuildRequires:  perl(Cwd)
 %if %{with ucdtest}
 BuildRequires:  perl(Data::Dumper)
 %endif
+BuildRequires:  perl(File::Basename)
 BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(File::Temp)
 BuildRequires:  perl(IO::Handle)
 BuildRequires:  perl(IPC::Open3)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Symbol)
 BuildRequires:  perl(Test::More)
+BuildRequires:  perl(utf8)
 # Optional tests:
 # CPAN::Meta 2.120900 not useful
+Requires:       fribidi >= 1.0.0
 
 %description
 This Perl module provides basic support for the Unicode bidirectional (Bidi)
@@ -74,8 +80,9 @@ a SWIG interface file to the libfribidi library.
 
 %package urxvt
 Summary:        Unicode bidirectional text support for urxvt
-# Automatically converted from old format: GPL+ or Artistic - review is highly recommended.
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
+# No noarch BuildArch because of pluin installed into
+# rxvt-unicode's architecture specific path.
 Requires:       perl(Encode)
 Requires:       perl(Text::Bidi)
 Requires:       perl(Text::Bidi::Constants)
@@ -88,8 +95,9 @@ text (e.g., Hebrew or Arabic mixed with English) is displayed correctly.
 %package tests
 Summary:        Tests for %{name}
 License:        (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-DFS-2016%[%{with ucdtest}?" AND Unicode-DFS-2015":""]
-BuildArch:      noarch
+# FullArch because of _libdir stored into t/urxvt_selection.t.
 Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires:       %{name}-urxvt = %{?epoch:%{epoch}:}%{version}-%{release}
 Requires:       perl-Test-Harness
 
 %description tests
@@ -98,10 +106,6 @@ with "%{_libexecdir}/%{name}/test".
 
 %prep
 %autosetup -p1 -n Text-Bidi-%{version}
-# Delete SWIG-generated files to regenerate them
-rm private.c lib/Text/Bidi/private.pm
-perl -i -ne 'print $_ unless m{^private\.c}' MANIFEST
-perl -i -ne 'print $_ unless m{^lib/Text/Bidi/private\.pm}' MANIFEST
 # Remove a large unsed test file,
 # Disable t/ucd.t, it consumes a lot of memory, CPAN RT#108739
 for F in \
@@ -125,25 +129,30 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_
 
 %install
 %{make_install}
-find %{buildroot} -type f -name '*.bs' -size 0 -delete
-find %{buildroot} -type f -name '*.3pm' -size 0 -delete
 %{_fixperms} %{buildroot}/*
-install -d -m 0755 %{buildroot}%{_libdir}/urxvt/perl
-install -m 0644 -t %{buildroot}%{_libdir}/urxvt/perl misc/bidi
+%define urxvt_plugin_path %{_libdir}/urxvt/perl
+install -d -m 0755 %{buildroot}%{urxvt_plugin_path}
+install -m 0644 -t %{buildroot}%{urxvt_plugin_path} misc/bidi
 # Install tests
 mkdir -p %{buildroot}%{_libexecdir}/%{name}
 cp -a t %{buildroot}%{_libexecdir}/%{name}
+# Fix tests not to test that they run from a local build tree
+patch -p1 --no-backup-if-mismatch -d %{buildroot}%{_libexecdir}/%{name} <%{SOURCE1}
+rm %{buildroot}%{_libexecdir}/%{name}/t/ffi_search_path.t
+# Test urxvt plugin from a system location
+perl -i -pe 's{\Q./misc/\E}{%{urxvt_plugin_path}/}' \
+    %{buildroot}%{_libexecdir}/%{name}/t/urxvt_selection.t
 # Packaged with %%license
 rm %{buildroot}%{_libexecdir}/%{name}/t/license.txt
 cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
 #!/bin/sh
-unset PERL_COMPILE_TEST_DEBUG
+unset PERL_COMPILE_TEST_DEBUG TEXT_BIDI_FRIBIDI_LIB
 cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
 EOF
 chmod +x %{buildroot}%{_libexecdir}/%{name}/test
 
 %check
-unset PERL_COMPILE_TEST_DEBUG
+unset PERL_COMPILE_TEST_DEBUG TEXT_BIDI_FRIBIDI_LIB
 export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
 make test
 
@@ -151,11 +160,9 @@ make test
 %license LICENSE
 %doc Changes README
 %{_bindir}/fribidi.pl
-%dir %{perl_vendorarch}/auto/Text
-%{perl_vendorarch}/auto/Text/Bidi
-%dir %{perl_vendorarch}/Text
-%{perl_vendorarch}/Text/Bidi
-%{perl_vendorarch}/Text/Bidi.pm
+%dir %{perl_vendorlib}/Text
+%{perl_vendorlib}/Text/Bidi
+%{perl_vendorlib}/Text/Bidi.pm
 %{_mandir}/man1/fribidi.pl.1*
 %{_mandir}/man3/Text::Bidi.*
 %{_mandir}/man3/Text::Bidi::*
@@ -169,6 +176,9 @@ make test
 %{_libexecdir}/%{name}
 
 %changelog
+* Mon Nov 16 2026 Petr Pisar <ppisar@redhat.com> - 3.01-1
+- 3.01 bump
+
 * Wed Jul 22 2026 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-19
 - Perl 5.44 rebuild
 

diff --git a/sources b/sources
index 61ef92e..0354643 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Text-Bidi-2.18.tar.gz) = 07cb29eb4ecb2649b1327a486d6d52af025469762c1944291b35c5e17bde351308bc6aa070e3fd548307131e28c7d00cf231af457353dd683daa16adef1a45d1
+SHA512 (Text-Bidi-3.01.tar.gz) = bb758545f3138b80e54c44baf8b6efe31c87f579e780bbecc027160ff26ddaf62988225f2cfbd4431f4075f9459c007a021a3d7dd8560783916e782c04fdba0b

                 reply	other threads:[~2026-11-16 17:07 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=179484883218.1.3648630396538229790.rpms-perl-Text-Bidi-23ad9e7c4bc2@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