!5 【轻量级 PR】:define mod_name to opitomize the specfile
From: @ZhouShuiQing Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
c9a56990ef
@ -1,10 +1,11 @@
|
|||||||
Name: perl-Module-Load-Conditional
|
%define mod_name Module-Load-Conditional
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Version: 0.74
|
Version: 0.74
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Looking up module information / loading at runtime
|
Summary: Looking up module information / loading at runtime
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Module-Load-Conditional
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Load-Conditional-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl-generators perl coreutils perl-interpreter perl(ExtUtils::MakeMaker) perl(Carp) perl(version)
|
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
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Module-Load-Conditional-%{version} -p1
|
%autosetup -n %{mod_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
@ -48,6 +49,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 0.74-1
|
||||||
- upgrade version to 0.74
|
- upgrade version to 0.74
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user