!4 【轻量级 PR】:define mod_name to opitomize the specfile
From: @huyubiao Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
70d7d5b3b3
@ -1,10 +1,11 @@
|
||||
Name: perl-Module-Metadata
|
||||
%define mod_name Module-Metadata
|
||||
Name: perl-%{mod_name}
|
||||
Version: 1.000037
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Gather package and POD information from perl module files
|
||||
License: GPLv1+ or Artistic
|
||||
URL: https://metacpan.org/release/Module-Metadata
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Module-Metadata-%{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
|
||||
|
||||
BuildRequires: findutils make perl perl-generators
|
||||
@ -27,7 +28,7 @@ BuildArch: noarch
|
||||
This package provide %{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n Module-Metadata-%{version}
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||
@ -50,6 +51,9 @@ make test
|
||||
%{_mandir}/man3/Module::Metadata.3*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 huyubiao <huyubiao@huawei.com> - 1.000037-2
|
||||
- define mod_name to opitomize the specfile
|
||||
|
||||
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.000037-1
|
||||
- Upgrade to 1.000037
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user