From e2e72dfc674f943bd69829d0eeeae6134406791f Mon Sep 17 00:00:00 2001 From: hongjinghao Date: Mon, 31 Oct 2022 09:28:42 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0%{mod=5Fname}=E5=AE=8F=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0%{mod=5Fname}=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hongjinghao --- perl-Try-Tiny.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/perl-Try-Tiny.spec b/perl-Try-Tiny.spec index da60f5f..b08267a 100644 --- a/perl-Try-Tiny.spec +++ b/perl-Try-Tiny.spec @@ -1,12 +1,13 @@ %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/ +%define mod_name Try-Tiny Name: perl-Try-Tiny Summary: Minimal try/catch with proper preservation of $@ Version: 0.31 -Release: 1 +Release: 2 License: MIT -URL: https://metacpan.org/release/Try-Tiny -Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz +URL: https://metacpan.org/release/%{mod_name} +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{mod_name}-%{version}.tar.gz BuildArch: noarch @@ -21,7 +22,7 @@ This module provides bare bones try/catch statements that are designed to minimi eval blocks, and NOTHING else. %prep -%autosetup -n Try-Tiny-%{version} -p1 +%autosetup -n %{mod_name}-%{version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -41,6 +42,9 @@ make test %{_mandir}/man3/Try::Tiny.3* %changelog +* Mon Oct 31 2022 hongjinghao - 0.31-2 +- use %{mod_name} marco + * Tue Dec 7 2021 guozhaorui - 0.31-1 - update version to 0.31