1 | # Run optional test
|
---|
2 | #%if ! (0%{?rhel})
|
---|
3 | #%bcond_without perl_Sub_Install_enables_optional_test
|
---|
4 | #%else
|
---|
5 | #%bcond_with perl_Sub_Install_enables_optional_test
|
---|
6 | #%endif
|
---|
7 |
|
---|
8 | Name: perl-Sub-Install
|
---|
9 | Version: 0.928
|
---|
10 | Release: 1%{?dist}
|
---|
11 | Summary: Install subroutines into packages easily
|
---|
12 | License: GPL+ or Artistic
|
---|
13 | Group: Development/Libraries
|
---|
14 | URL: http://search.cpan.org/dist/Sub-Install/
|
---|
15 | Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz
|
---|
16 | BuildArch: noarch
|
---|
17 | # ================= Module Build ============================
|
---|
18 | #BuildRequires: perl-interpreter
|
---|
19 | BuildRequires: perl-generators
|
---|
20 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
---|
21 | BuildRequires: perl(strict)
|
---|
22 | BuildRequires: perl(warnings)
|
---|
23 | # ================= Run-time ================================
|
---|
24 | BuildRequires: perl(B)
|
---|
25 | BuildRequires: perl(Carp)
|
---|
26 | BuildRequires: perl(Scalar::Util)
|
---|
27 | # ================= Test Suite ==============================
|
---|
28 | #BuildRequires: perl(Test::More) >= 0.88
|
---|
29 | #%if %{with perl_Sub_Install_enables_optional_test} && !%{defined perl_bootstrap}
|
---|
30 | # ================= Optional Tests ==========================
|
---|
31 | # Test::Output -> Sub::Exporter -> Sub::Install
|
---|
32 | #BuildRequires: perl(Test::Output)
|
---|
33 | #%endif
|
---|
34 | # ================= Run-time ================================
|
---|
35 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
36 | Requires: perl(B)
|
---|
37 |
|
---|
38 | %description
|
---|
39 | This module makes it easy to install subroutines into packages without the
|
---|
40 | unsightly mess of no strict or typeglobs lying about where just anyone
|
---|
41 | can see them.
|
---|
42 |
|
---|
43 | %prep
|
---|
44 | %setup -q -n Sub-Install-%{version}
|
---|
45 |
|
---|
46 | %build
|
---|
47 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
48 | make %{?_smp_mflags}
|
---|
49 | make manifypods
|
---|
50 |
|
---|
51 | %install
|
---|
52 | rm -rf %{buildroot}
|
---|
53 | make pure_install DESTDIR=%{buildroot}
|
---|
54 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
55 | %{_fixperms} %{buildroot}
|
---|
56 |
|
---|
57 | %check
|
---|
58 | #make test
|
---|
59 |
|
---|
60 | %files
|
---|
61 | %doc Changes LICENSE README
|
---|
62 | %{perl_vendorlib}/Sub/
|
---|
63 | %{_mandir}/man3/*.3pm*
|
---|
64 |
|
---|
65 | %changelog
|
---|
66 | * Wed May 16 2018 Elbert Pol <elbert.pol@gmail.com> - 0.928-1
|
---|
67 | - initial rpm for OS2
|
---|
68 |
|
---|