[1369] | 1 | # Run optional test
|
---|
| 2 | #%bcond_without perl_Ref_Util_enables_optional_test
|
---|
| 3 |
|
---|
| 4 | Name: perl-Ref-Util
|
---|
| 5 | Version: 0.203
|
---|
| 6 | Release: 1%{?dist}
|
---|
| 7 | Summary: Utility functions for checking references
|
---|
| 8 | License: MIT
|
---|
| 9 | URL: http://search.cpan.org/dist/Ref-Util/
|
---|
| 10 | Source0: http://search.cpan.org/CPAN/authors/id/A/AR/ARC/Ref-Util-%{version}.tar.gz
|
---|
| 11 | BuildArch: noarch
|
---|
| 12 | # Build
|
---|
| 13 | BuildRequires: coreutils
|
---|
| 14 | BuildRequires: findutils
|
---|
| 15 | BuildRequires: make
|
---|
| 16 | #BuildRequires: perl-interpreter
|
---|
| 17 | BuildRequires: perl-generators
|
---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
| 19 | BuildRequires: perl(lib)
|
---|
| 20 | BuildRequires: perl(Text::ParseWords)
|
---|
| 21 | # Dependencies of bundled ExtUtils::HasCompiler
|
---|
| 22 | BuildRequires: gcc
|
---|
| 23 | BuildRequires: perl-devel
|
---|
| 24 | BuildRequires: perl(base)
|
---|
| 25 | BuildRequires: perl(Config)
|
---|
| 26 | BuildRequires: perl(DynaLoader)
|
---|
| 27 | BuildRequires: perl(File::Basename)
|
---|
| 28 | BuildRequires: perl(File::Spec::Functions)
|
---|
| 29 | BuildRequires: perl(File::Temp)
|
---|
| 30 | # Module
|
---|
| 31 | BuildRequires: perl(Carp)
|
---|
| 32 | BuildRequires: perl(constant)
|
---|
| 33 | BuildRequires: perl(Exporter) >= 5.57
|
---|
| 34 | BuildRequires: perl(Scalar::Util)
|
---|
| 35 | BuildRequires: perl(strict)
|
---|
| 36 | BuildRequires: perl(warnings)
|
---|
| 37 | # Test Suite
|
---|
| 38 | #BuildRequires: perl(File::Find)
|
---|
| 39 | #BuildRequires: perl(File::Spec)
|
---|
| 40 | #BuildRequires: perl(IPC::Open2)
|
---|
| 41 | #BuildRequires: perl(Ref::Util::XS)
|
---|
| 42 | #BuildRequires: perl(Test::More) >= 0.96
|
---|
| 43 | #%if %{with perl_Ref_Util_enables_optional_test}
|
---|
| 44 | # Optional Tests
|
---|
| 45 | #BuildRequires: perl(B::Concise)
|
---|
| 46 | #BuildRequires: perl(CPAN::Meta) >= 2.120900
|
---|
| 47 | #BuildRequires: perl(Readonly)
|
---|
| 48 | #%endif
|
---|
| 49 | # Runtime
|
---|
| 50 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
| 51 | Requires: perl(Ref::Util::XS)
|
---|
| 52 |
|
---|
| 53 | %description
|
---|
| 54 | Ref::Util introduces several functions to help identify references in a faster
|
---|
| 55 | and smarter way.
|
---|
| 56 |
|
---|
| 57 | %prep
|
---|
| 58 | %setup -q -n Ref-Util-%{version}
|
---|
| 59 |
|
---|
| 60 | %build
|
---|
| 61 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
| 62 | make %{?_smp_mflags}
|
---|
| 63 | make manifypods
|
---|
| 64 |
|
---|
| 65 | %install
|
---|
| 66 | make pure_install DESTDIR=%{buildroot}
|
---|
| 67 | find %{buildroot} -type f -name .packlist -delete
|
---|
| 68 | %{_fixperms} -c %{buildroot}
|
---|
| 69 |
|
---|
| 70 | %check
|
---|
| 71 | #make test
|
---|
| 72 |
|
---|
| 73 | %files
|
---|
| 74 | %if 0%{?_licensedir:1}
|
---|
| 75 | %license LICENSE
|
---|
| 76 | %else
|
---|
| 77 | %doc LICENSE
|
---|
| 78 | %endif
|
---|
| 79 | %doc Changes README
|
---|
| 80 | %{perl_vendorlib}/Ref/
|
---|
| 81 | #%{_mandir}/man3/Ref::Util.3*
|
---|
| 82 | %{_mandir}/man3/*.3*
|
---|
| 83 |
|
---|
| 84 | %changelog
|
---|
| 85 | * Thu Mar 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.203-1
|
---|
| 86 | - initial rpm for OS2
|
---|