Files
perl-LWP-Protocol-http10/perl-LWP-Protocol-http10.spec

71 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-LWP-Protocol-http10
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name LWP-Protocol-http10
Name: perl-LWP-Protocol-http10
Version: 6.30.0
Release: 0
# 6.03 -> normalize -> 6.30.0
%define cpan_version 6.03
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Legacy HTTP/1.0 support for LWP
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{cpan_version}.tar.gz
2025-08-12 18:15:12 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTTP::Response) >= 6
BuildRequires: perl(HTTP::Status) >= 6
BuildRequires: perl(LWP::Protocol) >= 6
Requires: perl(HTTP::Response) >= 6
Requires: perl(HTTP::Status) >= 6
Requires: perl(LWP::Protocol) >= 6
Provides: perl(LWP::Protocol::http10) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
The LWP::Protocol::http10 module provide support for using HTTP/1.0
protocol with LWP. To use it you need to call LWP::Protocol::implementor()
to override the standard handler for http URLs.
This module used to be bundled with the libwww-perl, but it was unbundled
in v6.02 as part of the general cleanup for the 6-series.
LWP::Protocol::http10 is deprecated.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog