Name: perl-Mojolicious-Plugin-RequestBase Version: 0.3 Release: 1%{?dist} Summary: Support setting base in frontend proxy License: Artistic 2.0 Group: Development/Libraries URL: http://search.cpan.org/dist/Mojolicious-Plugin-RequestBase/ Source0: http://www.cpan.org/authors/id/M/MR/MRAMBERG/Mojolicious-Plugin-RequestBase-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Mojolicious) >= 6.00 BuildRequires: perl(Test::More) >= 0.90 BuildRequires: perl(Test::Mojo) Requires: perl(Mojolicious) >= 6.00 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Simple plugin to support Request Base header. Just load it and set X-Request- Base in your Frontend Proxy. For instance, if you are using nginx you could use it like this: %prep %setup -q -n Mojolicious-Plugin-RequestBase-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes cpanfile META.json README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Aug 13 2019 Michal Ingeli 0.3-1 - Specfile autogenerated by cpanspec 1.78.