perl-Module-Load-Conditional/perl-Module-Load-Conditional.spec

63 lines
2.0 KiB
RPMSpec
Raw Normal View History

%define mod_name Module-Load-Conditional
Name: perl-%{mod_name}
2021-01-26 15:49:37 +08:00
Version: 0.74
Release: 2
2019-09-30 11:12:53 -04:00
Summary: Looking up module information / loading at runtime
License: GPL+ or Artistic
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:53 -04:00
BuildArch: noarch
2020-07-25 15:56:25 +08:00
BuildRequires: perl-generators perl coreutils perl-interpreter perl(ExtUtils::MakeMaker) perl(Carp) perl(version)
2019-09-30 11:12:53 -04:00
BuildRequires: perl(Config) perl(constant) perl(Exporter) perl(File::Spec) perl(FileHandle) perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::CoreList) perl(Module::Load) perl(Module::Metadata) perl(Params::Check) perl(strict) perl(vars)
#tests
BuildRequires: perl(FindBin) perl(lib) perl(Test::More) perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Config) perl(Module::CoreList) perl(Module::Load) perl(Module::Metadata) perl(version)
%description
Module::Load::Conditional provides simple ways to query and possibly load
any of the modules you have installed on your system during runtime. It is
able to load multiple modules at once or none at all if one of them was not
able to load. It also takes care of any error checking and so forth.
%package_help
%prep
%autosetup -n %{mod_name}-%{version} -p1
2019-09-30 11:12:53 -04:00
%build
2020-07-25 15:56:25 +08:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2019-09-30 11:12:53 -04:00
%install
2020-07-25 15:56:25 +08:00
%{make_install}
2019-09-30 11:12:53 -04:00
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root)
%doc README CHANGES
%{perl_vendorlib}/*
%files help
%defattr(-,root,root)
%{_mandir}/man3/*
%changelog
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 0.74-2
- define mod_name to opitomize the specfile
2021-01-26 15:49:37 +08:00
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 0.74-1
- upgrade version to 0.74
2020-07-25 15:56:25 +08:00
* Sat Jul 25 2020 zhanzhimin <zhanzhimin@huawei.com> - 0.72-1
- Bump to version 0.72
2019-09-30 11:12:53 -04:00
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.68-418
- Package init