Files
perl-Dancer-Logger-PSGI/perl-Dancer-Logger-PSGI.spec
2025-08-12 18:12:57 +02:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-Dancer-Logger-PSGI
#
# Copyright (c) 2024 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 Dancer-Logger-PSGI
Name: perl-Dancer-Logger-PSGI
Version: 1.0.1
Release: 0
# v1.0.1 -> normalize -> 1.0.1
%define cpan_version v1.0.1
License: MIT
Summary: PSGI Log handler for Dancer
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSIMOES/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Dancer) >= 1.305.900
BuildRequires: perl(Module::Build) >= 0.3601
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Plack::Loader)
BuildRequires: perl(Test::TCP)
Requires: perl(Dancer) >= 1.305.900
%{perl_requires}
%description
This class is an interface between your Dancer's application and
*psgix.logger*. Message will be logged in whatever logger you decided to
use in your Plack handler. If no logger is defined, nothing will be logged.
%prep
%autosetup -n %{cpan_name}-%{cpan_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 README
%license LICENSE
%changelog