source: spec/trunk/SPECS/perl-Sub-Identify.spec@ 1566

Last change on this file since 1566 was 1364, checked in by tellie, 8 years ago

spec: perl-Sub-Identify: Release version 0.14-1.

File size: 2.1 KB
Line 
1# Run optional test
2#%bcond_without perl_Sub_Identify_enables_optional_test
3
4Name: perl-Sub-Identify
5Version: 0.14
6Release: 1%{?dist}
7Summary: Retrieve names of code references
8License: GPL+ or Artistic
9Vendor: bww bitwise works GmbH
10URL: http://search.cpan.org/dist/Sub-Identify/
11Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Sub-Identify-%{version}.tar.gz
12# Module Build
13BuildRequires: coreutils
14BuildRequires: findutils
15BuildRequires: gcc
16BuildRequires: make
17#BuildRequires: perl-interpreter
18BuildRequires: perl-devel
19BuildRequires: perl-generators
20BuildRequires: perl(Config)
21BuildRequires: perl(ExtUtils::MakeMaker)
22# Module Runtime
23BuildRequires: perl(B)
24BuildRequires: perl(Exporter)
25BuildRequires: perl(strict)
26BuildRequires: 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
32BuildRequires: perl(List::Util)
33BuildRequires: perl(Test::More)
34BuildRequires: 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
40Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
41Requires: perl(B)
42Requires: perl(XSLoader)
43
44# Don't provide private perl libs
45%{?perl_default_filter}
46
47%description
48Sub::Identify allows you to retrieve the real name of code references. For
49this, 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
58perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
59make %{?_smp_mflags}
60make manifypods
61
62%install
63make pure_install DESTDIR=%{buildroot}
64find %{buildroot} -type f -name .packlist -delete
65find %{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
Note: See TracBrowser for help on using the repository browser.