1 | # TODO: BR: perl(B::C) when available
|
---|
2 |
|
---|
3 | Name: perl-Sub-Name
|
---|
4 | Version: 0.21
|
---|
5 | Release: 1%{?dist}
|
---|
6 | Summary: Name - or rename - a sub
|
---|
7 | License: GPL+ or Artistic
|
---|
8 | Vendor: bww bitwise works GmbH
|
---|
9 | URL: http://search.cpan.org/dist/Sub-Name/
|
---|
10 | Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Sub-Name-%{version}.tar.gz
|
---|
11 | # Module Build
|
---|
12 | BuildRequires: coreutils
|
---|
13 | BuildRequires: findutils
|
---|
14 | BuildRequires: gcc
|
---|
15 | BuildRequires: make
|
---|
16 | #BuildRequires: perl-interpreter
|
---|
17 | BuildRequires: perl-devel
|
---|
18 | BuildRequires: perl-generators
|
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
20 | # Module Runtime
|
---|
21 | BuildRequires: perl(Exporter) >= 5.57
|
---|
22 | BuildRequires: perl(strict)
|
---|
23 | BuildRequires: perl(warnings)
|
---|
24 | BuildRequires: 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
|
---|
37 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
38 |
|
---|
39 | # Don't "provide" private perl objects
|
---|
40 | %{?perl_default_filter}
|
---|
41 |
|
---|
42 | %description
|
---|
43 | This module allows one to "name" or rename subroutines, including anonymous
|
---|
44 | ones.
|
---|
45 |
|
---|
46 | Note that this is mainly for aid in debugging; you still cannot call the sub
|
---|
47 | by the new name (without some deep magic).
|
---|
48 |
|
---|
49 | %prep
|
---|
50 | %setup -q -n Sub-Name-%{version}
|
---|
51 |
|
---|
52 | %build
|
---|
53 | perl Makefile.PL INSTALLDIRS=vendor optimize="%{optflags}"
|
---|
54 | make %{?_smp_mflags}
|
---|
55 | make manifypods
|
---|
56 |
|
---|
57 | %install
|
---|
58 | make pure_install DESTDIR=%{buildroot}
|
---|
59 | find %{buildroot} -type f -name .packlist -delete
|
---|
60 | find %{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
|
---|