source: spec/trunk/SPECS/perl-WWW-Curl.spec@ 1566

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

spec: perl-WWW-Curl: Release version 4.17-1.

File size: 2.3 KB
Line 
1Name: perl-WWW-Curl
2Version: 4.17
3Release: 1%{?dist}
4Summary: Perl extension interface for libcurl
5License: MIT
6Group: Development/Libraries
7Vendor: bww bitwise works GmbH
8URL: http://search.cpan.org/dist/WWW-Curl/
9Source0: http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
10Patch0: WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch
11#BuildRequires: perl-interpreter
12BuildRequires: perl-devel
13BuildRequires: perl-generators
14BuildRequires: perl(inc::Module::Install)
15BuildRequires: perl(Carp)
16BuildRequires: perl(Exporter)
17BuildRequires: perl(ExtUtils::MakeMaker)
18BuildRequires: perl(File::Temp)
19%{?_with_network_tests: BuildRequires: perl(lib) }
20#BuildRequires: perl(strict)
21BuildRequires: perl(Test::More)
22# Test::Pod is optional
23#BuildRequires: perl(warnings)
24#BuildRequires: perl(XSLoader)
25#BuildRequires: libcurl-devel
26Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
27
28%{?perl_default_filter}
29
30%description
31WWW::Curl is a Perl extension interface for libcurl.
32
33%prep
34%setup -q -n WWW-Curl-%{version}
35%patch0 -p1
36rm -rf inc && sed -i -e '/^inc\//d' MANIFEST
37
38%build
39perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
40make %{?_smp_mflags}
41make manifypods
42
43%install
44make pure_install DESTDIR=$RPM_BUILD_ROOT
45find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
46find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
47%{_fixperms} $RPM_BUILD_ROOT/*
48
49%check
50# These tests require network, use "--with network_tests" to execute them
51#%{?!_with_network_tests: rm t/01basic.t }
52#%{?!_with_network_tests: rm t/02callbacks.t }
53#%{?!_with_network_tests: rm t/04abort-test.t }
54#%{?!_with_network_tests: rm t/05progress.t }
55#%{?!_with_network_tests: rm t/08ssl.t }
56#%{?!_with_network_tests: rm t/09times.t }
57#%{?!_with_network_tests: rm t/14duphandle.t }
58#%{?!_with_network_tests: rm t/15duphandle-callback.t }
59#%{?!_with_network_tests: rm t/18twinhandles.t }
60#%{?!_with_network_tests: rm t/19multi.t }
61#%{?!_with_network_tests: rm t/21write-to-scalar.t }
62#make test
63
64%files
65%doc Changes LICENSE README
66%{perl_vendorarch}/auto/*
67%{perl_vendorarch}/WWW*
68%{_mandir}/man3/*
69
70%changelog
71* Fri May 04 2018 Elbert Pol <elbert.pol@gmail.com> - 4.17-1
72- initial rpm for OS2
Note: See TracBrowser for help on using the repository browser.