2022-10-26 16:53:16 +08:00
|
|
|
%define mod_name Params-Check
|
|
|
|
|
|
|
|
|
|
Name: perl-%{mod_name}
|
2019-09-30 11:12:59 -04:00
|
|
|
Epoch: 1
|
|
|
|
|
Version: 0.38
|
2022-10-26 16:53:16 +08:00
|
|
|
Release: 419
|
2019-09-30 11:12:59 -04:00
|
|
|
Summary: Generic input parsing/checking mechanism
|
|
|
|
|
License: GPL+ or Artistic
|
2022-10-26 16:53:16 +08:00
|
|
|
URL: https://metacpan.org/release/%{mod_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
|
2019-09-30 11:12:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(strict)
|
|
|
|
|
|
|
|
|
|
#for test
|
|
|
|
|
BuildRequires: perl(constant) perl(Test::More)
|
|
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Params::Check
|
|
|
|
|
|
|
|
|
|
Allows for generic input checking and validating using a powerfull
|
|
|
|
|
templating system, providing default values and so on.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Man pages and other related documents for cronie
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Man pages and other related documents for cronie.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-10-26 16:53:16 +08:00
|
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
2019-09-30 11:12:59 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test TEST_VERBOSE=1
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc CHANGES
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-10-26 16:53:16 +08:00
|
|
|
* Wed Oct 26 2022 wangyuhang <wangyuhang27@huawei.com> - 1:0.38-419
|
|
|
|
|
- define mod_name to opitomize the specfile
|
|
|
|
|
|
2019-09-30 11:12:59 -04:00
|
|
|
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.38-418
|
|
|
|
|
- Package init
|
|
|
|
|
|