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

Last change on this file since 1566 was 1406, checked in by tellie, 7 years ago

spec: perl-Sub-Install: Release version 0.928-1.

File size: 2.0 KB
Line 
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
8Name: perl-Sub-Install
9Version: 0.928
10Release: 1%{?dist}
11Summary: Install subroutines into packages easily
12License: GPL+ or Artistic
13Group: Development/Libraries
14URL: http://search.cpan.org/dist/Sub-Install/
15Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz
16BuildArch: noarch
17# ================= Module Build ============================
18#BuildRequires: perl-interpreter
19BuildRequires: perl-generators
20BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
21BuildRequires: perl(strict)
22BuildRequires: perl(warnings)
23# ================= Run-time ================================
24BuildRequires: perl(B)
25BuildRequires: perl(Carp)
26BuildRequires: 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 ================================
35Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
36Requires: perl(B)
37
38%description
39This module makes it easy to install subroutines into packages without the
40unsightly mess of no strict or typeglobs lying about where just anyone
41can see them.
42
43%prep
44%setup -q -n Sub-Install-%{version}
45
46%build
47perl Makefile.PL INSTALLDIRS=vendor
48make %{?_smp_mflags}
49make manifypods
50
51%install
52rm -rf %{buildroot}
53make pure_install DESTDIR=%{buildroot}
54find %{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
Note: See TracBrowser for help on using the repository browser.