2022-10-24 09:21:33 +00:00
|
|
|
%define mod_name Env
|
|
|
|
|
Name: perl-%{mod_name}
|
2019-09-30 11:12:07 -04:00
|
|
|
Version: 1.04
|
2022-10-24 09:21:33 +00:00
|
|
|
Release: 398
|
2019-09-30 11:12:07 -04:00
|
|
|
Summary: Perl module that imports environment variables as scalars or arrays
|
|
|
|
|
License: GPL+ or Artistic
|
2022-10-24 09:21:33 +00:00
|
|
|
URL: http://search.cpan.org/dist/%{mod_name}/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/%{mod_name}-%{version}.tar.gz
|
2019-09-30 11:12:07 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl-interpreter perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
|
|
BuildRequires: perl(strict) perl(warnings) perl(Config)
|
|
|
|
|
BuildRequires: perl(Tie::Array) perl(Test::More) perl(vars)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Perl maintains environment variables in a special hash named %%ENV. For when
|
|
|
|
|
this access method is inconvenient, the Perl module Env allows environment
|
|
|
|
|
variables to be treated as scalar or array variables.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-10-24 09:21:33 +00:00
|
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
2019-09-30 11:12:07 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc Changes
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-10-24 09:21:33 +00:00
|
|
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.04-398
|
|
|
|
|
- define mod_name to opitomize the specfile
|
|
|
|
|
|
2019-09-30 11:12:07 -04:00
|
|
|
* Sun Sep 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.04-397
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: revise spec file with new rules
|
|
|
|
|
|
|
|
|
|
* Sat Sep 14 2019 guiyao <guiyao@huawei.com> - 1.04-396
|
|
|
|
|
- Package init
|