define mod_name to opitomize the specfile
Signed-off-by: Mingtai <yangmingtai@huawei.com>
This commit is contained in:
parent
52e726132d
commit
92eee0ed71
@ -1,10 +1,11 @@
|
|||||||
Name: perl-Env
|
%define mod_name Env
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Version: 1.04
|
Version: 1.04
|
||||||
Release: 397
|
Release: 398
|
||||||
Summary: Perl module that imports environment variables as scalars or arrays
|
Summary: Perl module that imports environment variables as scalars or arrays
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/Env/
|
URL: http://search.cpan.org/dist/%{mod_name}/
|
||||||
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Env-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/%{mod_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl-interpreter perl-generators
|
BuildRequires: perl-interpreter perl-generators
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
||||||
@ -20,7 +21,7 @@ variables to be treated as scalar or array variables.
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Env-%{version} -p1
|
%autosetup -n %{mod_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||||
@ -43,6 +44,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.04-398
|
||||||
|
- define mod_name to opitomize the specfile
|
||||||
|
|
||||||
* Sun Sep 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.04-397
|
* Sun Sep 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.04-397
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user