public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-String-Similarity] epel10.3: Modernize a spec file
@ 2026-09-09  8:53 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-09  8:53 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-String-Similarity
Branch : epel10.3
Commit : bcf3affcdac77d5699278991888eda0040f95f12
Author : Petr Písař <ppisar@redhat.com>
Date   : 2024-12-09T12:40:51+01:00
Stats  : +29/-17 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-String-Similarity/c/bcf3affcdac77d5699278991888eda0040f95f12?branch=epel10.3

Log:
Modernize a spec file

---
diff --git a/perl-String-Similarity.spec b/perl-String-Similarity.spec
index 1d47d69..58656e0 100644
--- a/perl-String-Similarity.spec
+++ b/perl-String-Similarity.spec
@@ -1,16 +1,25 @@
 Name:           perl-String-Similarity
 Version:        1.04
-Release:        44%{?dist}
-Summary:        Calculates the similarity of two strings
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
+Release:        45%{?dist}
+Summary:        Calculate the similarity of two strings
 License:        GPL-2.0-or-later
 URL:            https://metacpan.org/release/String-Similarity
 Source0:        https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/String-Similarity-%{version}.tar.gz
-BuildRequires: make
+BuildRequires:  coreutils
+BuildRequires:  findutils
 BuildRequires:  gcc
+BuildRequires:  make
 BuildRequires:  perl-devel
 BuildRequires:  perl-generators
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl-interpreter
+BuildRequires:  perl(:VERSION) >= 5.8
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Run-time:
+BuildRequires:  perl(DynaLoader)
+BuildRequires:  perl(Exporter)
+# Tests:
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(utf8)
 
 %{?perl_default_filter}
 
@@ -24,28 +33,31 @@ and describes the amount of similarity between the strings.
 %setup -q -n String-Similarity-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
-make %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
+%{make_build}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
+%{make_install}
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
+export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
 make test
 
 %files
-%doc Changes COPYING README
-%{perl_vendorarch}/auto/*
-%{perl_vendorarch}/String*
-%{_mandir}/man3/*
+%license COPYING
+%doc Changes README
+%dir %{perl_vendorarch}/auto/String
+%{perl_vendorarch}/auto/String/Similarity
+%dir %{perl_vendorarch}/String
+%{perl_vendorarch}/String/Similarity.pm
+%{_mandir}/man3/String::Similarity.*
 
 %changelog
+* Mon Dec 09 2024 Petr Pisar <ppisar@redhat.com> - 1.04-45
+- Modernize a spec file
+
 * Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 1.04-44
 - convert license to SPDX
 

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

only message in thread, other threads:[~2026-09-09  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09  8:53 [rpms/perl-String-Similarity] epel10.3: Modernize a spec file 

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