File perl-WebService-Fastly.spec of Package perl-WebService-Fastly
#
# spec file for package perl-WebService-Fastly
#
# Copyright (c) 2026 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 WebService-Fastly
Name: perl-WebService-Fastly
Version: 14.01
Release: 0
License: MIT
Summary: An interface to most facets of the [Fastly API](https://www.fastly.com/d[cut]
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/F/FA/FASTLY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(DateTime)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Log::Any)
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: perl(URI::Query)
Requires: perl(Class::Accessor)
Requires: perl(Class::Data::Inheritable)
Requires: perl(DateTime)
Requires: perl(JSON::MaybeXS)
Requires: perl(LWP::Protocol::https)
Requires: perl(LWP::UserAgent)
Requires: perl(Log::Any)
Requires: perl(URI::Query)
%{perl_requires}
%description
Via the Fastly API you can perform any of the operations that are possible
within the management console, including creating services, domains, and
backends, configuring rules or uploading your own application code, as well
as account operations such as user administration and billing reports. The
API is organized into collections of endpoints that allow manipulation of
objects related to Fastly services and accounts. For the most accurate and
up-to-date API reference content, visit our [Developer
Hub](https://www.fastly.com/documentation/reference/api/)
The version of the API Spec document: 1.0.0
%prep
%autosetup -n %{cpan_name}-%{version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes docs README SECURITY.md sig.json
%license LICENSE
%changelog