File perl-Travel-Status-MOTIS.spec of Package perl-Travel-Status-MOTIS
#
# spec file for package perl-Travel-Status-MOTIS
#
# Copyright (c) 2025 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 Travel-Status-MOTIS
Name: perl-Travel-Status-MOTIS
Version: 0.03
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: An interface to the MOTIS routing service
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DE/DERF/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor) >= 0.16
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::ISO8601)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Module::Build) >= 0.400000
BuildRequires: perl(Test::Compile)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(URI)
Requires: perl(Class::Accessor) >= 0.16
Requires: perl(DateTime)
Requires: perl(DateTime::Format::ISO8601)
Requires: perl(JSON)
Requires: perl(LWP::Protocol::https)
Requires: perl(LWP::UserAgent)
Requires: perl(URI)
Recommends: perl(Cache::File)
Recommends: perl(GIS::Distance)
%{perl_requires}
%description
Travel::Status::MOTIS is an interface to the departures and trips provided
by MOTIS routing services
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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 Changelog Dockerfile README.md shell.nix
%license COPYING
%changelog