File perl-WWW-Bund.spec of Package perl-WWW-Bund

#
# spec file for package perl-WWW-Bund
#
# 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 WWW-Bund
Name:           perl-WWW-Bund
Version:        0.002
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Perl client for German Federal Government APIs (bund.dev)
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/G/GE/GETTY/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(File::ShareDir)
BuildRequires:  perl(File::ShareDir::Install) >= 0.06
BuildRequires:  perl(File::ShareDir::ProjectDistDir)
BuildRequires:  perl(HTTP::Request)
BuildRequires:  perl(JSON::MaybeXS)
BuildRequires:  perl(LWP::Protocol::https)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(Log::Any)
BuildRequires:  perl(Moo)
BuildRequires:  perl(MooX::Cmd)
BuildRequires:  perl(MooX::Options)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(URI::Escape)
BuildRequires:  perl(YAML::PP)
BuildRequires:  perl(namespace::clean)
Requires:       perl(File::ShareDir)
Requires:       perl(File::ShareDir::ProjectDistDir)
Requires:       perl(HTTP::Request)
Requires:       perl(JSON::MaybeXS)
Requires:       perl(LWP::Protocol::https)
Requires:       perl(LWP::UserAgent)
Requires:       perl(Log::Any)
Requires:       perl(Moo)
Requires:       perl(MooX::Cmd)
Requires:       perl(MooX::Options)
Requires:       perl(URI::Escape)
Requires:       perl(YAML::PP)
Requires:       perl(namespace::clean)
%{perl_requires}

%description
WWW::Bund provides a Perl client for German Federal Government APIs
available through https://bund.dev. It includes 16 implemented APIs with 78
endpoints, covering traffic, weather, news, water levels, parliament data,
and more.

The module provides both a generic 'call' interface and type-safe API
adapters for commonly-used APIs. All responses are automatically cached on
disk with configurable TTLs, and rate-limiting is enforced per API.

%prep
%autosetup  -n %{cpan_name}-%{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 API_CLEANUP_SUMMARY.md Changes CLAUDE.md NEW_APIS_SUMMARY.md README README.md
%license LICENSE

%changelog
openSUSE Build Service is sponsored by