2016-06-25 06:23:06 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Net-Curl
|
|
|
|
#
|
2025-01-30 22:25:20 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-06-25 06:23:06 +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.
|
|
|
|
|
2019-09-03 09:33:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-25 06:23:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-05-20 09:33:27 +00:00
|
|
|
%define cpan_name Net-Curl
|
2016-06-25 06:23:06 +00:00
|
|
|
Name: perl-Net-Curl
|
2025-01-30 22:25:20 +00:00
|
|
|
Version: 0.570.0
|
2016-06-25 06:23:06 +00:00
|
|
|
Release: 0
|
2025-01-30 22:25:20 +00:00
|
|
|
# 0.57 -> normalize -> 0.570.0
|
|
|
|
%define cpan_version 0.57
|
2016-06-25 06:23:06 +00:00
|
|
|
License: MIT
|
2022-02-20 11:35:12 +00:00
|
|
|
Summary: Perl interface for libcurl
|
2020-06-03 15:24:07 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-09-28 10:54:22 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SY/SYP/%{cpan_name}-%{cpan_version}.tar.gz
|
2017-05-30 14:30:08 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:56 +02:00
|
|
|
Source100: README.md
|
2023-09-28 10:54:22 +00:00
|
|
|
Patch0: fix-curl.diff
|
2016-06-25 06:23:06 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2024-05-14 11:56:14 +00:00
|
|
|
Provides: perl(Net::Curl) = %{version}
|
2025-01-30 22:25:20 +00:00
|
|
|
Provides: perl(Net::Curl::Compat) = 4.150.0
|
2024-05-14 11:56:14 +00:00
|
|
|
Provides: perl(Net::Curl::Easy) = %{version}
|
2023-09-28 10:54:22 +00:00
|
|
|
Provides: perl(Net::Curl::Easy::Code)
|
2024-05-14 11:56:14 +00:00
|
|
|
Provides: perl(Net::Curl::Form) = %{version}
|
2023-09-28 10:54:22 +00:00
|
|
|
Provides: perl(Net::Curl::Form::Code)
|
2024-05-14 11:56:14 +00:00
|
|
|
Provides: perl(Net::Curl::Multi) = %{version}
|
2023-09-28 10:54:22 +00:00
|
|
|
Provides: perl(Net::Curl::Multi::Code)
|
2024-05-14 11:56:14 +00:00
|
|
|
Provides: perl(Net::Curl::Share) = %{version}
|
2023-09-28 10:54:22 +00:00
|
|
|
Provides: perl(Net::Curl::Share::Code)
|
2024-03-08 22:54:39 +00:00
|
|
|
%undefine __perllib_provides
|
2016-06-25 06:23:06 +00:00
|
|
|
Recommends: perl(ExtUtils::PkgConfig)
|
|
|
|
%{perl_requires}
|
2017-05-30 14:30:08 +00:00
|
|
|
# MANUAL BEGIN
|
2019-09-03 09:33:29 +00:00
|
|
|
BuildRequires: perl(ExtUtils::PkgConfig) curl-devel
|
2017-05-30 14:30:08 +00:00
|
|
|
# MANUAL END
|
2016-06-25 06:23:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains some static functions and version-releated constants.
|
|
|
|
It does not export by default anything, but constants can be exported upon
|
|
|
|
request.
|
|
|
|
|
|
|
|
use Net::Curl qw(:constants);
|
|
|
|
|
|
|
|
To perform any request you want Net::Curl::Easy.
|
|
|
|
|
|
|
|
%prep
|
2023-09-28 10:54:22 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2016-06-25 06:23:06 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-03 09:33:29 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2021-05-20 09:33:27 +00:00
|
|
|
%make_build
|
2016-06-25 06:23:06 +00:00
|
|
|
|
|
|
|
%check
|
2019-09-03 09:33:29 +00:00
|
|
|
make test
|
2016-06-25 06:23:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-05-30 14:30:08 +00:00
|
|
|
%doc Changes Curl_Easy.xsh Curl_Form.xsh Curl_Multi.xsh Curl_Share.xsh examples README
|
|
|
|
%license LICENSE
|
2016-06-25 06:23:06 +00:00
|
|
|
|
|
|
|
%changelog
|