| 1 | # Run optional tests
|
|---|
| 2 | #%bcond_without perl_Ref_Util_XS_enables_optional_test
|
|---|
| 3 |
|
|---|
| 4 | Name: perl-Ref-Util-XS
|
|---|
| 5 | Version: 0.117
|
|---|
| 6 | Release: 1%{?dist}
|
|---|
| 7 | Summary: Utility functions for checking references
|
|---|
| 8 | License: MIT
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | URL: http://search.cpan.org/dist/Ref-Util-XS/
|
|---|
| 11 | Source0: http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/Ref-Util-XS-%{version}.tar.gz
|
|---|
| 12 | # Build
|
|---|
| 13 | BuildRequires: coreutils
|
|---|
| 14 | BuildRequires: findutils
|
|---|
| 15 | BuildRequires: gcc
|
|---|
| 16 | BuildRequires: make
|
|---|
| 17 | BuildRequires: perl-devel
|
|---|
| 18 | BuildRequires: perl-generators
|
|---|
| 19 | #BuildRequires: perl-interpreter
|
|---|
| 20 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 21 | # Module
|
|---|
| 22 | BuildRequires: perl(Exporter) >= 5.57
|
|---|
| 23 | BuildRequires: perl(strict)
|
|---|
| 24 | BuildRequires: perl(warnings)
|
|---|
| 25 | BuildRequires: perl(XSLoader)
|
|---|
| 26 | # Test Suite
|
|---|
| 27 | #BuildRequires: perl(constant)
|
|---|
| 28 | #BuildRequires: perl(File::Spec)
|
|---|
| 29 | #BuildRequires: perl(Test::More) >= 0.94
|
|---|
| 30 | #%if %{with perl_Ref_Util_XS_enables_optional_test}
|
|---|
| 31 | # Optional Tests
|
|---|
| 32 | #BuildRequires: perl(B::Concise)
|
|---|
| 33 | #BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|---|
| 34 | #BuildRequires: perl(Readonly)
|
|---|
| 35 | #%endif
|
|---|
| 36 | # Runtime
|
|---|
| 37 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 38 |
|
|---|
| 39 | # Avoid provides for private objects
|
|---|
| 40 | %{?perl_default_filter}
|
|---|
| 41 |
|
|---|
| 42 | %description
|
|---|
| 43 | Ref::Util::XS introduces several functions to help identify references in a
|
|---|
| 44 | faster and smarter way.
|
|---|
| 45 |
|
|---|
| 46 | %prep
|
|---|
| 47 | %setup -q -n Ref-Util-XS-%{version}
|
|---|
| 48 |
|
|---|
| 49 | %build
|
|---|
| 50 | perl Makefile.PL INSTALLDIRS=vendor
|
|---|
| 51 | make %{?_smp_mflags}
|
|---|
| 52 | make manifypods
|
|---|
| 53 |
|
|---|
| 54 | %install
|
|---|
| 55 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 56 | find %{buildroot} -type f -name .packlist -delete
|
|---|
| 57 | find %{buildroot} -type f -name '*.bs' -empty -delete
|
|---|
| 58 | %{_fixperms} -c %{buildroot}
|
|---|
| 59 |
|
|---|
| 60 | %check
|
|---|
| 61 | #make test
|
|---|
| 62 |
|
|---|
| 63 | %files
|
|---|
| 64 | %license LICENSE
|
|---|
| 65 | %doc Changes README
|
|---|
| 66 | %{perl_vendorarch}/auto/Ref/
|
|---|
| 67 | %{perl_vendorarch}/Ref/
|
|---|
| 68 | %{_mandir}/man3/*.3*
|
|---|
| 69 |
|
|---|
| 70 | %changelog
|
|---|
| 71 | * Thu Mar 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.117-1
|
|---|
| 72 | - initial rpm for OS2
|
|---|