| 1 | Name: perl-WWW-Curl
|
|---|
| 2 | Version: 4.17
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Perl extension interface for libcurl
|
|---|
| 5 | License: MIT
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 | URL: http://search.cpan.org/dist/WWW-Curl/
|
|---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
|
|---|
| 10 | Patch0: WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch
|
|---|
| 11 | #BuildRequires: perl-interpreter
|
|---|
| 12 | BuildRequires: perl-devel
|
|---|
| 13 | BuildRequires: perl-generators
|
|---|
| 14 | BuildRequires: perl(inc::Module::Install)
|
|---|
| 15 | BuildRequires: perl(Carp)
|
|---|
| 16 | BuildRequires: perl(Exporter)
|
|---|
| 17 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 18 | BuildRequires: perl(File::Temp)
|
|---|
| 19 | %{?_with_network_tests: BuildRequires: perl(lib) }
|
|---|
| 20 | #BuildRequires: perl(strict)
|
|---|
| 21 | BuildRequires: perl(Test::More)
|
|---|
| 22 | # Test::Pod is optional
|
|---|
| 23 | #BuildRequires: perl(warnings)
|
|---|
| 24 | #BuildRequires: perl(XSLoader)
|
|---|
| 25 | #BuildRequires: libcurl-devel
|
|---|
| 26 | Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|---|
| 27 |
|
|---|
| 28 | %{?perl_default_filter}
|
|---|
| 29 |
|
|---|
| 30 | %description
|
|---|
| 31 | WWW::Curl is a Perl extension interface for libcurl.
|
|---|
| 32 |
|
|---|
| 33 | %prep
|
|---|
| 34 | %setup -q -n WWW-Curl-%{version}
|
|---|
| 35 | %patch0 -p1
|
|---|
| 36 | rm -rf inc && sed -i -e '/^inc\//d' MANIFEST
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|---|
| 40 | make %{?_smp_mflags}
|
|---|
| 41 | make manifypods
|
|---|
| 42 |
|
|---|
| 43 | %install
|
|---|
| 44 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 45 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|---|
| 46 | find $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
|
|---|