Name: perl-WWW-Curl Version: 4.17 Release: 1%{?dist} Summary: Perl extension interface for libcurl License: MIT Group: Development/Libraries Vendor: bww bitwise works GmbH URL: http://search.cpan.org/dist/WWW-Curl/ Source0: http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz Patch0: WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch #BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Temp) %{?_with_network_tests: BuildRequires: perl(lib) } #BuildRequires: perl(strict) BuildRequires: perl(Test::More) # Test::Pod is optional #BuildRequires: perl(warnings) #BuildRequires: perl(XSLoader) #BuildRequires: libcurl-devel Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %{?perl_default_filter} %description WWW::Curl is a Perl extension interface for libcurl. %prep %setup -q -n WWW-Curl-%{version} %patch0 -p1 rm -rf inc && sed -i -e '/^inc\//d' MANIFEST %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} make manifypods %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check # These tests require network, use "--with network_tests" to execute them #%{?!_with_network_tests: rm t/01basic.t } #%{?!_with_network_tests: rm t/02callbacks.t } #%{?!_with_network_tests: rm t/04abort-test.t } #%{?!_with_network_tests: rm t/05progress.t } #%{?!_with_network_tests: rm t/08ssl.t } #%{?!_with_network_tests: rm t/09times.t } #%{?!_with_network_tests: rm t/14duphandle.t } #%{?!_with_network_tests: rm t/15duphandle-callback.t } #%{?!_with_network_tests: rm t/18twinhandles.t } #%{?!_with_network_tests: rm t/19multi.t } #%{?!_with_network_tests: rm t/21write-to-scalar.t } #make test %files %doc Changes LICENSE README %{perl_vendorarch}/auto/* %{perl_vendorarch}/WWW* %{_mandir}/man3/* %changelog * Fri May 04 2018 Elbert Pol - 4.17-1 - initial rpm for OS2