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