Name: perl-Mojolicious-Plugin-RequestBase Version: 0.3 Release: 1%{?dist} Summary: Support setting base for Mojolicious in frontend proxy License: Artistic-2.0 URL: https://metacpan.org/pod/Mojolicious::Plugin::RequestBase Source0: https://cpan.metacpan.org/authors/id/M/MR/MRAMBERG/Mojolicious-Plugin-RequestBase-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(strict) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::Mojo) %{?perl_default_filter} %description This plugin allows to update Mojolicious generated URLs with a base path taken from the HTTP header "X-Request-Base". #------------------------------------------------------------------------------. %prep #------------------------------------------------------------------------------. %setup -q -n Mojolicious-Plugin-RequestBase-%{version} #------------------------------------------------------------------------------. %build #------------------------------------------------------------------------------. %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} #------------------------------------------------------------------------------. %install #------------------------------------------------------------------------------. make pure_install DESTDIR="${RPM_BUILD_ROOT}" %{_fixperms} "${RPM_BUILD_ROOT}"/* #------------------------------------------------------------------------------. %check #------------------------------------------------------------------------------. make test #------------------------------------------------------------------------------. %files #------------------------------------------------------------------------------. %doc Changes %{perl_vendorlib}/Mojolicious/Plugin/* %{_mandir}/man3/Mojolicious* #------------------------------------------------------------------------------. %changelog #------------------------------------------------------------------------------. * Sat Jun 22 2024 Patrick Monnerat 0.3-1 - Initial packaging.