1 | # Run optional test
|
---|
2 | #%bcond_without perl_Sub_Identify_enables_optional_test
|
---|
3 |
|
---|
4 | Name: perl-Sub-Identify
|
---|
5 | Version: 0.14
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: Retrieve names of code references
|
---|
8 | License: GPL+ or Artistic
|
---|
9 | Vendor: bww bitwise works GmbH
|
---|
10 | URL: http://search.cpan.org/dist/Sub-Identify/
|
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Sub-Identify-%{version}.tar.gz
|
---|
12 | # Module Build
|
---|
13 | BuildRequires: coreutils
|
---|
14 | BuildRequires: findutils
|
---|
15 | BuildRequires: gcc
|
---|
16 | BuildRequires: make
|
---|
17 | #BuildRequires: perl-interpreter
|
---|
18 | BuildRequires: perl-devel
|
---|
19 | BuildRequires: perl-generators
|
---|
20 | BuildRequires: perl(Config)
|
---|
21 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
22 | # Module Runtime
|
---|
23 | BuildRequires: perl(B)
|
---|
24 | BuildRequires: perl(Exporter)
|
---|
25 | BuildRequires: perl(strict)
|
---|
26 | BuildRequires: perl(XSLoader)
|
---|
27 | # Test Suite
|
---|
28 | # feature required with perl ⥠5.020
|
---|
29 | #%if 0%{?fedora} > 21 || 0%{?rhel} > 7
|
---|
30 | #BuildRequires: perl(feature)
|
---|
31 | #%endif
|
---|
32 | BuildRequires: perl(List::Util)
|
---|
33 | BuildRequires: perl(Test::More)
|
---|
34 | BuildRequires: perl(warnings)
|
---|
35 | #%if %{with perl_Sub_Identify_enables_optional_test}
|
---|
36 | # Optional tests
|
---|
37 | #BuildRequires: perl(Test::Pod) >= 1.14
|
---|
38 | #%endif
|
---|
39 | # Runtime
|
---|
40 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
41 | Requires: perl(B)
|
---|
42 | Requires: perl(XSLoader)
|
---|
43 |
|
---|
44 | # Don't provide private perl libs
|
---|
45 | %{?perl_default_filter}
|
---|
46 |
|
---|
47 | %description
|
---|
48 | Sub::Identify allows you to retrieve the real name of code references. For
|
---|
49 | this, it uses Perl's introspection mechanism, provided by the B module.
|
---|
50 |
|
---|
51 | %prep
|
---|
52 | %setup -q -n Sub-Identify-%{version}
|
---|
53 |
|
---|
54 | # Fix script interpreters
|
---|
55 | #perl -MConfig -pi -e 's|^#!perl|$Config{startperl}|' t/*
|
---|
56 |
|
---|
57 | %build
|
---|
58 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
---|
59 | make %{?_smp_mflags}
|
---|
60 | make manifypods
|
---|
61 |
|
---|
62 | %install
|
---|
63 | make pure_install DESTDIR=%{buildroot}
|
---|
64 | find %{buildroot} -type f -name .packlist -delete
|
---|
65 | find %{buildroot} -type f -name '*.bs' -empty -delete
|
---|
66 | %{_fixperms} -c %{buildroot}
|
---|
67 |
|
---|
68 | %check
|
---|
69 | #make test
|
---|
70 |
|
---|
71 | %files
|
---|
72 | %doc Changes README.mdown TODO.mdown t/
|
---|
73 | %{perl_vendorarch}/auto/Sub/
|
---|
74 | %{perl_vendorarch}/Sub/
|
---|
75 | %{_mandir}/man3/*.3*
|
---|
76 |
|
---|
77 | %changelog
|
---|
78 | * Mon Mar 12 2018 Elbert Pol <elbert.pol@gmail.com> - 0.14-1
|
---|
79 | - initial rpm for OS2
|
---|