33448bd
Name:           perl-WWW-Curl
Petr Šabata 997f71e
Version:        4.17
Petr Šabata cf915a6
Release:        1%{?dist}
33448bd
Summary:        Perl extension interface for libcurl
Petr Šabata 997f71e
License:        MIT
33448bd
Group:          Development/Libraries
33448bd
URL:            http://search.cpan.org/dist/WWW-Curl/
59b8c1f
Source0:        http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
e66a958
BuildRequires:  perl
c40c4f8
BuildRequires:  perl(inc::Module::Install)
c40c4f8
BuildRequires:  perl(Carp)
c40c4f8
BuildRequires:  perl(Exporter)
33448bd
BuildRequires:  perl(ExtUtils::MakeMaker)
c40c4f8
BuildRequires:  perl(File::Temp)
Petr Šabata cf915a6
%{?_with_network_tests: BuildRequires:  perl(lib) }
e66a958
BuildRequires:  perl(strict)
c40c4f8
BuildRequires:  perl(Test::More)
e66a958
# Test::Pod is optional
e66a958
BuildRequires:  perl(warnings)
c40c4f8
BuildRequires:  perl(XSLoader)
33448bd
BuildRequires:  libcurl-devel
Petr Šabata cf915a6
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
33448bd
b795224
%{?perl_default_filter}
b795224
33448bd
%description
33448bd
WWW::Curl is a Perl extension interface for libcurl.
33448bd
33448bd
%prep
33448bd
%setup -q -n WWW-Curl-%{version}
Petr Šabata cf915a6
rm -rf inc && sed -i -e '/^inc\//d' MANIFEST
33448bd
33448bd
%build
Petr Šabata cf915a6
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
33448bd
make %{?_smp_mflags}
33448bd
33448bd
%install
e66a958
make pure_install DESTDIR=$RPM_BUILD_ROOT
33448bd
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
33448bd
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
33448bd
%{_fixperms} $RPM_BUILD_ROOT/*
33448bd
33448bd
%check
59b8c1f
# These tests require network, use "--with network_tests" to execute them
33448bd
%{?!_with_network_tests: rm t/01basic.t }
33448bd
%{?!_with_network_tests: rm t/02callbacks.t }
33448bd
%{?!_with_network_tests: rm t/04abort-test.t }
33448bd
%{?!_with_network_tests: rm t/05progress.t }
649cf86
%{?!_with_network_tests: rm t/08ssl.t }
33448bd
%{?!_with_network_tests: rm t/09times.t }
33448bd
%{?!_with_network_tests: rm t/14duphandle.t }
33448bd
%{?!_with_network_tests: rm t/15duphandle-callback.t }
33448bd
%{?!_with_network_tests: rm t/18twinhandles.t }
73ade22
%{?!_with_network_tests: rm t/19multi.t }
bfd9a8a
%{?!_with_network_tests: rm t/21write-to-scalar.t }
33448bd
make test
33448bd
33448bd
%files
33448bd
%doc Changes LICENSE README
33448bd
%{perl_vendorarch}/auto/*
33448bd
%{perl_vendorarch}/WWW*
33448bd
%{_mandir}/man3/*
33448bd
33448bd
%changelog
Petr Šabata 997f71e
* Wed Feb 26 2014 Petr Šabata <contyk@redhat.com> - 4.17-1
Petr Šabata 997f71e
- 4.17 bump, license change
Petr Šabata 997f71e
Petr Šabata cf915a6
* Fri Feb 21 2014 Petr Šabata <contyk@redhat.com> - 4.16-1
Petr Šabata cf915a6
- 4.16 bump
Petr Šabata cf915a6
ba6c949
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.15-12
ba6c949
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ba6c949
b37773d
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 4.15-11
b37773d
- Perl 5.18 rebuild
b37773d
e66a958
* Sun Jul 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 4.15-10
e66a958
- Update dependencies
e66a958
- Use DESTDIR rather than PERL_INSTALL_ROOT
e66a958
- Remove buildroot cleaning
e66a958
562f258
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.15-9
562f258
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
562f258
c40c4f8
* Thu Aug 16 2012 Jitka Plesnikova <jplesnik@redhat.com> - 4.15-8
c40c4f8
- Specify all dependencies
c40c4f8
- Modernize spec file
c40c4f8
4600625
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.15-7
4600625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4600625
6712cf3
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 4.15-6
6712cf3
- Perl 5.16 rebuild
6712cf3
177d2dc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.15-5
177d2dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
177d2dc
b795224
* Sun Jul 24 2011 Iain Arnell <iarnell@gmail.com> 4.15-4
b795224
- use perl_default_filter
b795224
60d9b10
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.15-3
60d9b10
- Perl mass rebuild
60d9b10
84b5640
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.15-2
84b5640
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
84b5640
c037982
* Tue Nov 30 2010 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.15-1
c037982
- Update to 4.15
a620270
* Thu Oct 28 2010 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.14-1
a620270
- Update to 4.14
a620270
- Add a filter provide to avoid private-shared-object-provides error
9870b9f
* Sun Sep  5 2010 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.13-1
9870b9f
- Update to 4.13
6f12716
* Wed Aug 25 2010 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.12-1
6f12716
- Update to 4.12
4a019f6
* Thu Jun  3 2010 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.11-3
562f4e4
- Remove test 19 because it requires network
6f12716
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 4.11-2
6f12716
- Mass rebuild with perl-5.12.0
59b8c1f
* Fri Dec 18 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.11-1
59b8c1f
- Update to 4.11
b582938
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 4.09-3
b582938
- rebuild against perl 5.10.1
39f8726
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.09-2
39f8726
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2cc04a9
* Sat Jul 11 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.09-1
2cc04a9
- Rebuild for 4.09
b0f3d79
* Mon Jun  1 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.07-1
b0f3d79
- Rebuild for 4.07
f028574
* Sat Apr 18 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.06-1
f028574
- Step to 4.06
9732f82
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.05-5
9732f82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
33448bd
* Wed Jan 14 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.05-4
33448bd
- Licence update
33448bd
* Wed Jan 14 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.05-3
33448bd
- README.Win32 file removed
33448bd
* Wed Jan 14 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.05-2
33448bd
- Timestamp preserved
33448bd
- changelog format fix
33448bd
- README.Win32 file removed
33448bd
* Thu Dec 11 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.05-1
33448bd
- Initial build with cpan2spec