public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-String-Similarity] epel10.3: Modernize a spec file
Date: Wed, 09 Sep 2026 08:53:06 GMT [thread overview]
Message-ID: <178894398627.1.4213530466580187436.rpms-perl-String-Similarity-bcf3affcdac7@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-09 8:53 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=178894398627.1.4213530466580187436.rpms-perl-String-Similarity-bcf3affcdac7@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