source: spec/trunk/SPECS/perl-Package-Generator.spec@ 1407

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

spec: perl-Package-Generator: Release version 1.106-1.

File size: 2.1 KB
Line 
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
10Name: perl-Package-Generator
11Version: 1.106
12Release: 1%{?dist}
13Summary: Generate new packages quickly and easily
14License: GPL+ or Artistic
15Group: Development/Libraries
16Vendor: bww bitwise works GmbH
17URL: http://search.cpan.org/dist/Package-Generator/
18Source0: 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
20BuildArch: noarch
21# Module Build
22BuildRequires: perl-generators
23BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
24# Module
25BuildRequires: perl(Carp)
26BuildRequires: 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
35Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
36
37%description
38This module lets you quickly and easily construct new packages. It gives
39them 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
50perl Makefile.PL INSTALLDIRS=vendor
51make %{?_smp_mflags}
52make manifypods
53
54%install
55rm -rf %{buildroot}
56make pure_install DESTDIR=%{buildroot}
57find %{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
Note: See TracBrowser for help on using the repository browser.