2020-10-16 10:24:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTTP-Tinyish
|
|
|
|
#
|
2024-04-06 12:52:43 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-10-16 10:24:51 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-06-27 10:02:00 +00:00
|
|
|
%define cpan_name HTTP-Tinyish
|
2020-10-16 10:24:51 +00:00
|
|
|
Name: perl-HTTP-Tinyish
|
2024-04-06 12:52:43 +00:00
|
|
|
Version: 0.190.0
|
2020-10-16 10:24:51 +00:00
|
|
|
Release: 0
|
2024-04-06 12:52:43 +00:00
|
|
|
# 0.19 -> normalize -> 0.190.0
|
|
|
|
%define cpan_version 0.19
|
2020-10-16 10:24:51 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-06-27 10:02:00 +00:00
|
|
|
Summary: HTTP::Tiny compatible HTTP client wrappers
|
2020-10-16 10:24:51 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-04-06 12:52:43 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz
|
2022-06-27 10:02:00 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:43 +02:00
|
|
|
Source100: README.md
|
2020-10-16 10:24:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(File::Which)
|
|
|
|
BuildRequires: perl(HTTP::Tiny) >= 0.055
|
|
|
|
BuildRequires: perl(IPC::Run3)
|
|
|
|
BuildRequires: perl(JSON::PP)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
Requires: perl(File::Which)
|
|
|
|
Requires: perl(HTTP::Tiny) >= 0.055
|
|
|
|
Requires: perl(IPC::Run3)
|
|
|
|
Requires: perl(parent)
|
2024-04-06 12:52:43 +00:00
|
|
|
Provides: perl(HTTP::Tinyish) = %{version}
|
|
|
|
Provides: perl(HTTP::Tinyish::Base)
|
|
|
|
Provides: perl(HTTP::Tinyish::Curl)
|
|
|
|
Provides: perl(HTTP::Tinyish::HTTPTiny)
|
|
|
|
Provides: perl(HTTP::Tinyish::LWP)
|
|
|
|
Provides: perl(HTTP::Tinyish::Wget)
|
|
|
|
%undefine __perllib_provides
|
2020-10-16 10:24:51 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
HTTP::Tinyish is a wrapper module for HTTP client modules LWP, HTTP::Tiny
|
|
|
|
and HTTP client software 'curl' and 'wget'.
|
|
|
|
|
|
|
|
It provides an API compatible to HTTP::Tiny, and the implementation has
|
|
|
|
been extracted out of App::cpanminus. This module can be useful in a
|
|
|
|
restrictive environment where you need to be able to download CPAN modules
|
|
|
|
without an HTTPS support in built-in HTTP library.
|
|
|
|
|
|
|
|
%prep
|
2024-04-06 12:52:43 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2020-10-16 10:24:51 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2022-06-27 10:02:00 +00:00
|
|
|
%make_build
|
2020-10-16 10:24:51 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|