define mod_name to opitomize the specfile

This commit is contained in:
zhoushuiqing 2022-10-25 02:11:43 +00:00 committed by Gitee
parent 4e3cd9cf4d
commit ed42723f22
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,11 @@
Name: perl-Module-Load-Conditional
%define mod_name Module-Load-Conditional
Name: perl-%{mod_name}
Version: 0.74
Release: 1
Release: 2
Summary: Looking up module information / loading at runtime
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Load-Conditional
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Load-Conditional-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators perl coreutils perl-interpreter perl(ExtUtils::MakeMaker) perl(Carp) perl(version)
@ -25,7 +26,7 @@ able to load. It also takes care of any error checking and so forth.
%package_help
%prep
%autosetup -n Module-Load-Conditional-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -48,6 +49,9 @@ make test
%{_mandir}/man3/*
%changelog
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 0.74-2
- define mod_name to opitomize the specfile
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 0.74-1
- upgrade version to 0.74