2007-01-16 00:32:26 +01:00
|
|
|
#
|
2010-09-21 11:57:19 +02:00
|
|
|
# spec file for package perl-libwww-perl (Version 5.837)
|
2007-01-16 00:32:26 +01:00
|
|
|
#
|
2010-01-14 17:06:37 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-07-19 21:06:38 +02:00
|
|
|
|
2007-01-16 00:32:26 +01:00
|
|
|
Name: perl-libwww-perl
|
2010-09-21 10:10:35 +02:00
|
|
|
Version: 5.837
|
2010-07-07 16:22:41 +02:00
|
|
|
Release: 1
|
|
|
|
License: GPL+, Artistic License
|
2010-12-02 07:31:58 +01:00
|
|
|
%define cpan_name libwww-perl
|
|
|
|
Summary: The World-Wide Web library for Perl
|
2010-07-07 16:22:41 +02:00
|
|
|
Url: http://search.cpan.org/dist/libwww-perl/
|
2010-12-02 07:31:58 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2010-07-07 16:22:41 +02:00
|
|
|
#Source: http://www.cpan.org/modules/by-module/libwww/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
|
2009-07-29 17:13:37 +02:00
|
|
|
BuildRequires: perl
|
2010-12-02 07:31:58 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2009-07-29 17:13:37 +02:00
|
|
|
BuildRequires: perl-macros
|
2010-07-11 13:08:54 +02:00
|
|
|
BuildRequires: perl(Compress::Raw::Zlib)
|
2010-12-02 07:31:58 +01:00
|
|
|
BuildRequires: perl(Crypt::SSLeay)
|
2009-07-29 17:13:37 +02:00
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
BuildRequires: perl(HTML::Parser) >= 3.33
|
2010-07-07 16:22:41 +02:00
|
|
|
BuildRequires: perl(HTML::Tagset)
|
2010-07-11 13:08:54 +02:00
|
|
|
BuildRequires: perl(IO::Compress::Deflate)
|
2010-12-02 07:31:58 +01:00
|
|
|
BuildRequires: perl(IO::Compress::Gzip)
|
2010-07-11 13:08:54 +02:00
|
|
|
BuildRequires: perl(IO::Uncompress::Gunzip)
|
|
|
|
BuildRequires: perl(IO::Uncompress::Inflate)
|
|
|
|
BuildRequires: perl(IO::Uncompress::RawInflate)
|
2010-07-07 16:22:41 +02:00
|
|
|
BuildRequires: perl(URI) >= 1.10
|
|
|
|
Requires: perl(Compress::Raw::Zlib)
|
|
|
|
Requires: perl(Crypt::SSLeay)
|
2009-07-29 17:13:37 +02:00
|
|
|
Requires: perl(Digest::MD5)
|
|
|
|
Requires: perl(HTML::Parser) >= 3.33
|
2010-07-07 16:22:41 +02:00
|
|
|
Requires: perl(HTML::Tagset)
|
2010-07-11 13:08:54 +02:00
|
|
|
Requires: perl(IO::Compress::Deflate)
|
2010-12-02 07:31:58 +01:00
|
|
|
Requires: perl(IO::Compress::Gzip)
|
2010-07-11 13:08:54 +02:00
|
|
|
Requires: perl(IO::Uncompress::Gunzip)
|
|
|
|
Requires: perl(IO::Uncompress::Inflate)
|
|
|
|
Requires: perl(IO::Uncompress::RawInflate)
|
2010-07-07 16:22:41 +02:00
|
|
|
Requires: perl(URI) >= 1.10
|
2010-12-02 07:31:58 +01:00
|
|
|
%{perl_requires}
|
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
|
2010-07-07 16:22:41 +02: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.
|
|
|
|
|
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
|
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
|
2007-01-16 00:32:26 +01:00
|
|
|
#disable test that require network connection
|
|
|
|
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
|
2010-07-07 16:22:41 +02:00
|
|
|
# remove .packlist file
|
2010-12-02 07:31:58 +01:00
|
|
|
%{__rm} -rf %{buildroot}%perl_vendorarch
|
2010-07-07 16:22:41 +02:00
|
|
|
# remove perllocal.pod file
|
2010-12-02 07:31:58 +01:00
|
|
|
%{__rm} -rf %{buildroot}%perl_archlib
|
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
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS Changes README README.SSL talk-to-ourself
|
2008-04-09 21:48:30 +02:00
|
|
|
|
2007-07-27 02:05:39 +02:00
|
|
|
%changelog
|