2007-01-16 00:32:26 +01:00
|
|
|
#
|
2011-03-17 12:27:05 +01:00
|
|
|
# spec file for package perl-libwww-perl
|
2007-01-16 00:32:26 +01:00
|
|
|
#
|
2011-03-17 12:27:05 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:32:26 +01:00
|
|
|
#
|
2008-10-06 17:20:21 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:32:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-03-21 15:15:12 +01:00
|
|
|
|
|
|
|
|
2007-01-16 00:32:26 +01:00
|
|
|
Name: perl-libwww-perl
|
2010-12-02 07:31:58 +01:00
|
|
|
%define cpan_name libwww-perl
|
2011-03-17 12:27:05 +01:00
|
|
|
Summary: The World-Wide-Web library for Perl
|
|
|
|
Version: 6.01
|
2011-03-31 13:37:36 +02:00
|
|
|
Release: 2
|
2011-03-17 12:27:05 +01:00
|
|
|
License: GPL+ or Artistic
|
2010-12-02 07:31:58 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2011-03-17 12:27:05 +01:00
|
|
|
Url: http://search.cpan.org/dist/libwww-perl/
|
|
|
|
#Source: http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-%{version}.tar.gz
|
2009-07-29 17:13:37 +02:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2010-12-02 07:31:58 +01:00
|
|
|
# PATCH-FIX-OPENSUSE -- disable one perl requires that would be created automatically and we're unable to provide
|
|
|
|
Patch0: disable-ghttp.diff
|
2011-03-29 13:53:57 +02:00
|
|
|
Patch1: libwww-perl-6.01-systemca.diff
|
2010-12-02 07:31:58 +01:00
|
|
|
BuildArch: noarch
|
2011-03-17 12:27:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2009-07-29 17:13:37 +02:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
2011-03-17 12:27:05 +01:00
|
|
|
BuildRequires: perl(Encode) >= 2.12
|
|
|
|
BuildRequires: perl(Encode::Locale)
|
|
|
|
BuildRequires: perl(File::Listing) >= 6
|
|
|
|
BuildRequires: perl(HTML::Entities)
|
|
|
|
BuildRequires: perl(HTML::HeadParser)
|
|
|
|
BuildRequires: perl(HTTP::Cookies) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Daemon) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Date) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Negotiate) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Request) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Request::Common) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Response) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Status) >= 6
|
|
|
|
BuildRequires: perl(IO::Select)
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
BuildRequires: perl(LWP::MediaTypes) >= 6
|
|
|
|
BuildRequires: perl(MIME::Base64) >= 2.1
|
|
|
|
BuildRequires: perl(Net::FTP) >= 2.58
|
|
|
|
BuildRequires: perl(Net::HTTP) >= 6
|
2010-07-07 16:22:41 +02:00
|
|
|
BuildRequires: perl(URI) >= 1.10
|
2011-03-17 12:27:05 +01:00
|
|
|
BuildRequires: perl(URI::Escape)
|
|
|
|
BuildRequires: perl(WWW::RobotRules) >= 6
|
|
|
|
#
|
2009-07-29 17:13:37 +02:00
|
|
|
Requires: perl(Digest::MD5)
|
2011-03-17 12:27:05 +01:00
|
|
|
Requires: perl(Encode) >= 2.12
|
|
|
|
Requires: perl(Encode::Locale)
|
|
|
|
Requires: perl(File::Listing) >= 6
|
|
|
|
Requires: perl(HTML::Entities)
|
|
|
|
Requires: perl(HTML::HeadParser)
|
|
|
|
Requires: perl(HTTP::Cookies) >= 6
|
|
|
|
Requires: perl(HTTP::Daemon) >= 6
|
|
|
|
Requires: perl(HTTP::Date) >= 6
|
|
|
|
Requires: perl(HTTP::Negotiate) >= 6
|
|
|
|
Requires: perl(HTTP::Request) >= 6
|
|
|
|
Requires: perl(HTTP::Request::Common) >= 6
|
|
|
|
Requires: perl(HTTP::Response) >= 6
|
|
|
|
Requires: perl(HTTP::Status) >= 6
|
|
|
|
Requires: perl(IO::Select)
|
|
|
|
Requires: perl(IO::Socket)
|
|
|
|
Requires: perl(LWP::MediaTypes) >= 6
|
|
|
|
Requires: perl(MIME::Base64) >= 2.1
|
|
|
|
Requires: perl(Net::FTP) >= 2.58
|
|
|
|
Requires: perl(Net::HTTP) >= 6
|
2010-07-07 16:22:41 +02:00
|
|
|
Requires: perl(URI) >= 1.10
|
2011-03-17 12:27:05 +01:00
|
|
|
Requires: perl(URI::Escape)
|
|
|
|
Requires: perl(WWW::RobotRules) >= 6
|
|
|
|
%{perl_requires}
|
|
|
|
#
|
|
|
|
Recommends: perl(Authen::NTML) >= 2.12
|
|
|
|
Recommends: perl(Data::Dump)
|
|
|
|
Recommends: perl(IO::Socket::SSL) >= 1.38
|
|
|
|
Recommends: perl(Mozilla::CA) >= 20110101
|
|
|
|
Recommends: perl(Net::HTTPS) >= 6
|
2007-01-16 00:32:26 +01:00
|
|
|
|
|
|
|
%description
|
2009-07-29 17:13:37 +02:00
|
|
|
The libwww-perl collection is a set of Perl modules which provides a
|
2011-03-17 12:27:05 +01:00
|
|
|
simple and consistent application programming interface to the
|
|
|
|
World-Wide Web. The main focus of the library is to provide classes
|
|
|
|
and functions that allow you to write WWW clients. The library also
|
|
|
|
contain modules that are of more general use and even classes that
|
|
|
|
help you implement simple HTTP servers.
|
2010-07-07 16:22:41 +02:00
|
|
|
|
2007-01-16 00:32:26 +01:00
|
|
|
%prep
|
2009-07-29 17:13:37 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-12-02 07:31:58 +01:00
|
|
|
%patch0 -p1
|
2011-03-29 13:53:57 +02:00
|
|
|
%patch1 -p1
|
2007-01-16 00:32:26 +01:00
|
|
|
|
|
|
|
%build
|
2010-07-07 16:22:41 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2007-07-27 02:05:39 +02:00
|
|
|
|
|
|
|
%check
|
2011-03-17 12:27:05 +01:00
|
|
|
%{__mv} t/live/jigsaw-chunk.t t/live/jigsaw-chunk.tt
|
|
|
|
%{__mv} t/live/jigsaw-md5.t t/live/jigsaw-md5.tt
|
|
|
|
%{__mv} t/live/jigsaw-md5-get.t t/live/jigsaw-md5-get.tt
|
2009-07-29 17:13:37 +02:00
|
|
|
%{__make} test
|
2007-01-16 00:32:26 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2011-03-17 12:27:05 +01:00
|
|
|
%perl_process_packlist
|
2009-07-29 17:13:37 +02:00
|
|
|
%perl_gen_filelist
|
2007-01-16 00:32:26 +01:00
|
|
|
|
|
|
|
%clean
|
2010-12-02 07:31:58 +01:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-01-16 00:32:26 +01:00
|
|
|
|
2010-07-07 16:22:41 +02:00
|
|
|
%files -f %{name}.files
|
2011-03-17 12:27:05 +01:00
|
|
|
%defattr(644,root,root,755)
|
2010-07-07 16:22:41 +02:00
|
|
|
%doc AUTHORS Changes README README.SSL talk-to-ourself
|
2011-03-17 12:27:05 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/*
|
2008-04-09 21:48:30 +02:00
|
|
|
|
2007-07-27 02:05:39 +02:00
|
|
|
%changelog
|