define mod_name to opitomize the specfile

Signed-off-by: 胡宇彪 <huyubiao@huawei.com>
This commit is contained in:
胡宇彪 2022-10-25 03:16:10 +00:00 committed by Gitee
parent 473629ddcc
commit 81c111c6b5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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