| 1 | Name: perl-Params-Util
|
|---|
| 2 | Version: 1.07
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Simple standalone parameter-checking functions
|
|---|
| 5 | License: GPL+ or Artistic
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 | URL: http://search.cpan.org/dist/Params-Util/
|
|---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-%{version}.tar.gz
|
|---|
| 10 |
|
|---|
| 11 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|---|
| 12 | Requires: perl(Scalar::Util) >= 1.18
|
|---|
| 13 |
|
|---|
| 14 | #BuildRequires: perl-interpreter
|
|---|
| 15 | BuildRequires: perl-devel
|
|---|
| 16 | BuildRequires: perl-generators
|
|---|
| 17 | BuildRequires: perl(Config)
|
|---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
|---|
| 19 | BuildRequires: perl(File::Spec) >= 0.82
|
|---|
| 20 | BuildRequires: perl(File::Temp)
|
|---|
| 21 | BuildRequires: perl(strict)
|
|---|
| 22 | # Run-time:
|
|---|
| 23 | BuildRequires: perl(DynaLoader)
|
|---|
| 24 | BuildRequires: perl(Exporter)
|
|---|
| 25 | BuildRequires: perl(overload)
|
|---|
| 26 | BuildRequires: perl(Scalar::Util) >= 1.18
|
|---|
| 27 | BuildRequires: perl(vars)
|
|---|
| 28 | # Tests:
|
|---|
| 29 | #BuildRequires: perl(Test::More) >= 0.47
|
|---|
| 30 | #BuildRequires: perl(File::Spec::Functions)
|
|---|
| 31 |
|
|---|
| 32 | %{?perl_default_filter}
|
|---|
| 33 |
|
|---|
| 34 | # Remove under-specified dependencies
|
|---|
| 35 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scalar::Util\\)$
|
|---|
| 36 |
|
|---|
| 37 | %description
|
|---|
| 38 | Params::Util provides a basic set of importable functions that
|
|---|
| 39 | makes checking parameters a hell of a lot easier.
|
|---|
| 40 |
|
|---|
| 41 | %prep
|
|---|
| 42 | %setup -q -n Params-Util-%{version}
|
|---|
| 43 |
|
|---|
| 44 | %build
|
|---|
| 45 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
|
|---|
| 46 | make %{?_smp_mflags}
|
|---|
| 47 | make manifypods
|
|---|
| 48 |
|
|---|
| 49 | %install
|
|---|
| 50 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 51 | find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|---|
| 52 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|---|
| 53 | chmod -R u+w $RPM_BUILD_ROOT/*
|
|---|
| 54 |
|
|---|
| 55 | %check
|
|---|
| 56 | #make test AUTOMATED_TESTING=1
|
|---|
| 57 |
|
|---|
| 58 | %files
|
|---|
| 59 | %doc Changes
|
|---|
| 60 | %license LICENSE
|
|---|
| 61 | %{perl_vendorarch}/auto/*
|
|---|
| 62 | %{perl_vendorarch}/Params
|
|---|
| 63 |
|
|---|
| 64 | %{_mandir}/man3/*
|
|---|
| 65 |
|
|---|
| 66 | %changelog
|
|---|
| 67 | * Mon Mar 12 2018 Elbert Pol <elbert.pol@gmail.com> - 1.07-1
|
|---|
| 68 | - initial rpm for OS2
|
|---|