1 | # Test suite needs patching if we have Test::More < 0.88
|
---|
2 | %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION) < 0.88 ? 1 : 0);' 2>/dev/null || echo 0)
|
---|
3 |
|
---|
4 | Name: perl-File-Slurp-Tiny
|
---|
5 | Version: 0.004
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: A simple, sane and efficient file slurper
|
---|
8 | Group: Development/Libraries
|
---|
9 | License: GPL+ or Artistic
|
---|
10 | Vendor: bww bitwise works GmbH
|
---|
11 | URL: http://search.cpan.org/dist/File-Slurp-Tiny/
|
---|
12 | Source0: http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/File-Slurp-Tiny-%{version}.tar.gz
|
---|
13 | #Patch0: File-Slurp-Tiny-0.003-old-Test::More.patch
|
---|
14 | BuildArch: noarch
|
---|
15 | # Build
|
---|
16 | BuildRequires: coreutils
|
---|
17 | BuildRequires: findutils
|
---|
18 | BuildRequires: make
|
---|
19 | #BuildRequires: perl-interpreter
|
---|
20 | BuildRequires: perl-generators
|
---|
21 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
22 | # Module
|
---|
23 | BuildRequires: perl(Carp)
|
---|
24 | BuildRequires: perl(Exporter) >= 5.57
|
---|
25 | BuildRequires: perl(File::Spec::Functions)
|
---|
26 | BuildRequires: perl(FileHandle)
|
---|
27 | BuildRequires: perl(strict)
|
---|
28 | BuildRequires: perl(warnings)
|
---|
29 | # Test Suite
|
---|
30 | BuildRequires: perl(File::Temp)
|
---|
31 | BuildRequires: perl(Test::More)
|
---|
32 | # Runtime
|
---|
33 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
34 |
|
---|
35 | %description
|
---|
36 | This module provides functions for fast and correct slurping and spewing
|
---|
37 | of files.
|
---|
38 |
|
---|
39 | %prep
|
---|
40 | %setup -q -n File-Slurp-Tiny-%{version}
|
---|
41 |
|
---|
42 | # Test suite needs patching if we have Test::More < 0.88
|
---|
43 | #%if %{old_test_more}
|
---|
44 | #%patch0
|
---|
45 | #%endif
|
---|
46 |
|
---|
47 | %build
|
---|
48 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
49 | make %{?_smp_mflags}
|
---|
50 | make manifypods
|
---|
51 |
|
---|
52 | %install
|
---|
53 | rm -rf %{buildroot}
|
---|
54 | make pure_install DESTDIR=%{buildroot}
|
---|
55 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
---|
56 | %{_fixperms} %{buildroot}
|
---|
57 |
|
---|
58 | %check
|
---|
59 | #make test
|
---|
60 |
|
---|
61 | %files
|
---|
62 | %if 0%{?_licensedir:1}
|
---|
63 | %license LICENSE
|
---|
64 | %else
|
---|
65 | %doc LICENSE
|
---|
66 | %endif
|
---|
67 | %doc Changes README
|
---|
68 | %{perl_vendorlib}/File/
|
---|
69 | #%{_mandir}/man3/File::Slurp::Tiny.3*
|
---|
70 | %{_mandir}/man3/*.3*
|
---|
71 |
|
---|
72 | %changelog
|
---|
73 | * Thu Mar 06 2018 Elbert Pol <elbert.pol@gmail.com> - 0.004-1
|
---|
74 | - initial rpm for OS2
|
---|