From 51c0909b3501df1f9052a23e7b24548741094324 Mon Sep 17 00:00:00 2001 From: shenxiangwei Date: Mon, 24 Oct 2022 19:31:59 +0800 Subject: [PATCH] add mod_name marco --- perl-Time-HiRes.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/perl-Time-HiRes.spec b/perl-Time-HiRes.spec index 7cb9d5a..41b3a4c 100644 --- a/perl-Time-HiRes.spec +++ b/perl-Time-HiRes.spec @@ -1,12 +1,13 @@ %global base_version 1.9764 -Name: perl-Time-HiRes +%define mod_name Time-HiRes +Name: perl-%{mod_name} Epoch: 4 Version: 1.9767 -Release: 2 +Release: 3 Summary: High resolution time, sleep, and alarm for perl License: GPL+ or Artistic -URL: https://metacpan.org/release/Time-HiRes -Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Time-HiRes-%{base_version}.tar.gz +URL: https://metacpan.org/release/%{mod_name} +Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{mod_name}-%{base_version}.tar.gz Patch6000: backport-Time-HiRes-1.9764-Upgrade-to-1.9767.patch @@ -23,7 +24,7 @@ to implement time, sleep, and alarm that know about non-integral seconds. %package_help %prep -%autosetup -n Time-HiRes-%{base_version} -p1 +%autosetup -n %{mod_name}-%{base_version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" @@ -53,6 +54,9 @@ make test %{_mandir}/man3/* %changelog +* Mon Oct 24 2022 hongjinghao 4:1.9767-3 +- add mod_name marco + * Mon Apr 18 2022 liudabo 4:1.9767-2 - Modify Epoch to ensure upgrade continuity