1 | # We need to patch the test suite if we have an old version of Test::More
|
---|
2 | #%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
---|
3 | # Run extra test
|
---|
4 | #%if ! (0%{?rhel})
|
---|
5 | #%bcond_without perl_Package_Generator_enables_extra_test
|
---|
6 | #%else
|
---|
7 | #%bcond_with perl_Package_Generator_enables_extra_test
|
---|
8 | #%endif
|
---|
9 |
|
---|
10 | Name: perl-Package-Generator
|
---|
11 | Version: 1.106
|
---|
12 | Release: 1%{?dist}
|
---|
13 | Summary: Generate new packages quickly and easily
|
---|
14 | License: GPL+ or Artistic
|
---|
15 | Group: Development/Libraries
|
---|
16 | Vendor: bww bitwise works GmbH
|
---|
17 | URL: http://search.cpan.org/dist/Package-Generator/
|
---|
18 | Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Package-Generator-%{version}.tar.gz
|
---|
19 | #Patch1: Package-Generator-1.106-old-Test::More.patch
|
---|
20 | BuildArch: noarch
|
---|
21 | # Module Build
|
---|
22 | BuildRequires: perl-generators
|
---|
23 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
---|
24 | # Module
|
---|
25 | BuildRequires: perl(Carp)
|
---|
26 | BuildRequires: perl(Scalar::Util)
|
---|
27 | # Test Suite
|
---|
28 | #BuildRequires: perl(Params::Util) >= 0.11
|
---|
29 | #BuildRequires: perl(Test::More) >= 0.47
|
---|
30 | #%if %{with perl_Package_Generator_enables_extra_test}
|
---|
31 | # Extra Tests
|
---|
32 | #BuildRequires: perl(Test::Pod)
|
---|
33 | #%endif
|
---|
34 | # Runtime
|
---|
35 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
36 |
|
---|
37 | %description
|
---|
38 | This module lets you quickly and easily construct new packages. It gives
|
---|
39 | them unused names and sets up their package data, if provided.
|
---|
40 |
|
---|
41 | %prep
|
---|
42 | %setup -q -n Package-Generator-%{version}
|
---|
43 |
|
---|
44 | # We need to patch the test suite if we have an old version of Test::More
|
---|
45 | #%if %{old_test_more}
|
---|
46 | #%patch1
|
---|
47 | #%endif
|
---|
48 |
|
---|
49 | %build
|
---|
50 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
51 | make %{?_smp_mflags}
|
---|
52 | make manifypods
|
---|
53 |
|
---|
54 | %install
|
---|
55 | rm -rf %{buildroot}
|
---|
56 | make pure_install DESTDIR=%{buildroot}
|
---|
57 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
58 | %{_fixperms} %{buildroot}
|
---|
59 |
|
---|
60 | %check
|
---|
61 | #make test
|
---|
62 | #%if %{with perl_Package_Generator_enables_extra_test}
|
---|
63 | #make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
---|
64 | #%endif
|
---|
65 |
|
---|
66 | %files
|
---|
67 | %doc Changes LICENSE README
|
---|
68 | %{perl_vendorlib}/Package/
|
---|
69 | #%{_mandir}/man3/Package::Generator.3pm*
|
---|
70 | #%{_mandir}/man3/Package::Reaper.3pm*
|
---|
71 | %{_mandir}/man3/*.3pm*
|
---|
72 |
|
---|
73 | %changelog
|
---|
74 | * Wed May 16 2018 Elbert Pol <elbert.pol@gmail.com> - 1.106-1
|
---|
75 | - initial rpm for OS2
|
---|