File perl-HTTP-Lite.spec of Package perl-HTTP-Lite
#
# spec file for package perl-HTTP-Lite
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-HTTP-Lite
Version: 2.3
Release: 0
Summary: Lightweight HTTP implementation
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/HTTP-Lite-%{version}.tar.gz
Url: http://search.cpan.org/dist/HTTP-Lite
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl = %{perl_version}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
%description
HTTP::Lite is a stand-alone lightweight HTTP/1.1 implementation
for perl.
It is not intended as a replacement for the fully-features LWP module. Instead,
it is intended for use in situations where it is desirable to install the
minimal number of modules to achieve HTTP support, or where LWP is not a good
candidate due to CPU overhead, such as slower processors.
HTTP::Lite is also significantly faster than LWP.
HTTP::Lite is ideal for CGI (or mod_perl) programs or for bundling for
redistribution with larger packages where only HTTP GET and POST functionality
are necessary.
%prep
%setup -q -n "HTTP-Lite-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%if 0%{?suse_version} >= 1130
%check
%__make test
%endif
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes LICENSE README
%dir %{perl_vendorlib}/HTTP
%{perl_vendorlib}/HTTP/Lite.pm
%dir %{perl_vendorarch}/auto/HTTP
%{perl_vendorarch}/auto/HTTP/Lite
%doc %{perl_man3dir}/HTTP::Lite.%{perl_man3ext}%{ext_man}
%changelog