source: spec/trunk/SPECS/perl-Sub-Name.spec@ 1504

Last change on this file since 1504 was 1371, checked in by tellie, 8 years ago

spec: perl-Sub-Name: Release version 0.21-1.

File size: 2.0 KB
Line 
1# TODO: BR: perl(B::C) when available
2
3Name: perl-Sub-Name
4Version: 0.21
5Release: 1%{?dist}
6Summary: Name - or rename - a sub
7License: GPL+ or Artistic
8Vendor: bww bitwise works GmbH
9URL: http://search.cpan.org/dist/Sub-Name/
10Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Sub-Name-%{version}.tar.gz
11# Module Build
12BuildRequires: coreutils
13BuildRequires: findutils
14BuildRequires: gcc
15BuildRequires: make
16#BuildRequires: perl-interpreter
17BuildRequires: perl-devel
18BuildRequires: perl-generators
19BuildRequires: perl(ExtUtils::MakeMaker)
20# Module Runtime
21BuildRequires: perl(Exporter) >= 5.57
22BuildRequires: perl(strict)
23BuildRequires: perl(warnings)
24BuildRequires: perl(XSLoader)
25# Test Suite
26#BuildRequires: perl(B)
27#BuildRequires: perl(B::Deparse)
28#BuildRequires: perl(Carp)
29#BuildRequires: perl(feature)
30#BuildRequires: perl(File::Spec)
31#BuildRequires: perl(if)
32#BuildRequires: perl(Test::More) >= 0.88
33# Optional Tests
34#BuildRequires: perl(CPAN::Meta) >= 2.120900
35#BuildRequires: perl(Devel::CheckBin)
36# Runtime
37Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
38
39# Don't "provide" private perl objects
40%{?perl_default_filter}
41
42%description
43This module allows one to "name" or rename subroutines, including anonymous
44ones.
45
46Note that this is mainly for aid in debugging; you still cannot call the sub
47by the new name (without some deep magic).
48
49%prep
50%setup -q -n Sub-Name-%{version}
51
52%build
53perl Makefile.PL INSTALLDIRS=vendor optimize="%{optflags}"
54make %{?_smp_mflags}
55make manifypods
56
57%install
58make pure_install DESTDIR=%{buildroot}
59find %{buildroot} -type f -name .packlist -delete
60find %{buildroot} -type f -name '*.bs' -empty -delete
61%{_fixperms} %{buildroot}
62
63%check
64#make test
65
66%files
67%if 0%{?_licensedir:1}
68%license LICENCE
69%else
70%doc LICENCE
71%endif
72%doc Changes CONTRIBUTING README
73%{perl_vendorarch}/auto/Sub/
74%{perl_vendorarch}/Sub/
75%{_mandir}/man3/*.3*
76
77%changelog
78* Thu Mar 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.21-1
79- initial rpm for OS2
Note: See TracBrowser for help on using the repository browser.