public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Module-CPANTS-Analyse] f43: Use relative symlinks rather than absolute symlinks in test (GH#51)
@ 2026-06-24 13:16 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-06-24 13:16 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/perl-Module-CPANTS-Analyse
            Branch : f43
            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=f43

            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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-24 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 13:16 [rpms/perl-Module-CPANTS-Analyse] f43: Use relative symlinks rather than absolute symlinks in test (GH#51) Paul Howarth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox