File perl-Mojolicious.spec of Package perl-Mojolicious

#
# spec file for package perl-Mojolicious
#
# Copyright (c) 2025 Andreas Vögele <andreas@andreasvoegele.com>
#
# 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 send bugfixes or comments to the author.
#


Name:           perl-Mojolicious
Version:        9.41
Release:        0
Summary:        Real-time web framework
License:        Artistic-2.0
URL:            https://metacpan.org/dist/Mojolicious
Source:         https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-%{version}.tar.gz
BuildArch:      noarch
AutoProv:       1
AutoReq:        0
# Build:
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl
%if 0%{?fedora} > 0 || 0%{?rhel} > 0
BuildRequires:  perl-generators
Requires:       perl-libs
%endif
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Runtime:
BuildRequires:  perl(IO::Socket::IP)
BuildRequires:  perl(Sub::Util)
# Tests:
BuildRequires:  perl(Test::More)
Requires:       perl(IO::Socket::IP)
Requires:       perl(Sub::Util)
%{?perl_requires}

%{?perl_default_filter}

%description
An amazing real-time web framework built on top of the powerful Mojo web
development toolkit. With support for RESTful routes, plugins, commands,
Perl-ish templates, content negotiation, session management, form
validation, testing framework, static file server, CGI/PSGI detection,
first class Unicode support and much more for you to discover.

%prep
%autosetup -n Mojolicious-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%{make_install}
%{_fixperms} %{buildroot}/*
find %{buildroot} \
    \( -name perllocal.pod -o -name .packlist -o -type d -empty \) \
    -delete

%check
make test

%files
%defattr(-, root, root)
%license LICENSE
%doc Changes README.md
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

%changelog
openSUSE Build Service is sponsored by