source: spec/trunk/SPECS/perl-File-Slurp-Tiny.spec@ 1566

Last change on this file since 1566 was 1329, checked in by tellie, 8 years ago

spec: perl-File-Slurp-Tiny: Release version 0.004-7.

File size: 1.9 KB
Line 
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
4Name: perl-File-Slurp-Tiny
5Version: 0.004
6Release: 1%{?dist}
7Summary: A simple, sane and efficient file slurper
8Group: Development/Libraries
9License: GPL+ or Artistic
10Vendor: bww bitwise works GmbH
11URL: http://search.cpan.org/dist/File-Slurp-Tiny/
12Source0: 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
14BuildArch: noarch
15# Build
16BuildRequires: coreutils
17BuildRequires: findutils
18BuildRequires: make
19#BuildRequires: perl-interpreter
20BuildRequires: perl-generators
21BuildRequires: perl(ExtUtils::MakeMaker)
22# Module
23BuildRequires: perl(Carp)
24BuildRequires: perl(Exporter) >= 5.57
25BuildRequires: perl(File::Spec::Functions)
26BuildRequires: perl(FileHandle)
27BuildRequires: perl(strict)
28BuildRequires: perl(warnings)
29# Test Suite
30BuildRequires: perl(File::Temp)
31BuildRequires: perl(Test::More)
32# Runtime
33Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
34
35%description
36This module provides functions for fast and correct slurping and spewing
37of 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
48perl Makefile.PL INSTALLDIRS=vendor
49make %{?_smp_mflags}
50make manifypods
51
52%install
53rm -rf %{buildroot}
54make pure_install DESTDIR=%{buildroot}
55find %{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
Note: See TracBrowser for help on using the repository browser.