public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Module-CPANTS-Analyse] f44: Use relative symlinks rather than absolute symlinks in test (GH#51)
Date: Wed, 24 Jun 2026 13:06:03 GMT	[thread overview]
Message-ID: <178230636319.1.14574320204230938926.rpms-perl-Module-CPANTS-Analyse-6230302cc36e@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/perl-Module-CPANTS-Analyse
            Branch : f44
            Commit : 6230302cc36e3f5c01c21cbcc5db9e74660e82c3
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2026-05-31T11:07:24+01:00
            Stats  : +34/-7 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/perl-Module-CPANTS-Analyse/c/6230302cc36e3f5c01c21cbcc5db9e74660e82c3?branch=f44

            Log:
            Use relative symlinks rather than absolute symlinks in test (GH#51)

This fixes FTBFS with perl-Archive-Tar 3.08 onwards

Also, use %{make_build} and %{make_install}

---
diff --git a/Module-CPANTS-Analyse-1.02-symlink.patch b/Module-CPANTS-Analyse-1.02-symlink.patch
new file mode 100644
index 0000000..4ada57a
--- /dev/null
+++ b/Module-CPANTS-Analyse-1.02-symlink.patch
@@ -0,0 +1,20 @@
+--- t/analyse/manifest.t
++++ t/analyse/manifest.t
+@@ -57,7 +57,7 @@ test_distribution {
+ MANIFEST
+ EOF
+ 
+-  eval { symlink "$dir/MANIFEST", "$dir/MANIFEST.lnk" };
++  eval { symlink "MANIFEST", "$dir/MANIFEST.lnk" };
+   if ($@) {
+     diag "symlink is not supported";
+     return;
+@@ -73,7 +73,7 @@ test_distribution {
+ MANIFEST
+ EOF
+ 
+-  eval { symlink "$dir/MANIFEST", "$dir/MANIFEST.lnk" };
++  eval { symlink "MANIFEST", "$dir/MANIFEST.lnk" };
+   if ($@) {
+     diag "symlink is not supported";
+     return;

diff --git a/perl-Module-CPANTS-Analyse.spec b/perl-Module-CPANTS-Analyse.spec
index 3791dd4..b85baca 100644
--- a/perl-Module-CPANTS-Analyse.spec
+++ b/perl-Module-CPANTS-Analyse.spec
@@ -1,18 +1,18 @@
 Name:           perl-Module-CPANTS-Analyse
 Version:        1.02
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Generate Kwalitee ratings for a distribution
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Module-CPANTS-Analyse
 Source0:        https://cpan.metacpan.org/modules/by-module/Module/Module-CPANTS-Analyse-%{version}.tar.gz
+Patch1:         Module-CPANTS-Analyse-1.02-symlink.patch
 BuildArch:      noarch
 # Module Build
 BuildRequires:  coreutils
-BuildRequires:  findutils
 BuildRequires:  make
 BuildRequires:  perl-generators
 BuildRequires:  perl-interpreter
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.58
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(ExtUtils::MakeMaker::CPANfile) >= 0.08
 # Module Runtime
 BuildRequires:  perl(Archive::Any::Lite) >= 0.06
@@ -86,13 +86,16 @@ metadata for all distributions on CPAN.
 %prep
 %setup -q -n Module-CPANTS-Analyse-%{version}
 
+# Use relative symlinks rather than absolute symlinks in test
+# https://github.com/cpants/Module-CPANTS-Analyse/pull/51
+%patch -P 1
+
 %build
-perl Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
 
 %install
-make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -delete
+%{make_install}
 %{_fixperms} -c %{buildroot}
 
 %check
@@ -126,6 +129,10 @@ make test
 %{_mandir}/man3/Module::CPANTS::Kwalitee::Version.3*
 
 %changelog
+* Sun May 31 2026 Paul Howarth <paul@city-fan.org> - 1.02-8
+- Use relative symlinks rather than absolute symlinks in test (GH#51)
+- Use %%{make_build} and %%{make_install}
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.02-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

                 reply	other threads:[~2026-06-24 13:06 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=178230636319.1.14574320204230938926.rpms-perl-Module-CPANTS-Analyse-6230302cc36e@fedoraproject.org \
    --to=paul@city-fan.org \
    --cc=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