|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: perl-Mojolicious-Plugin-AssetPack
|
|
|
|
|
Version: 2.09
|
|
|
|
|
Version: 2.10
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Compress and convert CSS, Less, Sass, JavaScript and CoffeeScript files
|
|
|
|
|
License: Artistic 2.0
|
|
|
|
@ -46,7 +46,7 @@ BuildRequires: perl(overload)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
Requires: perl(Imager::File::PNG)
|
|
|
|
|
Requires: perl(Mojo::UserAgent)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
@ -61,27 +61,34 @@ meaning you can save bandwidth and browser parsing time.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Mojolicious-Plugin-AssetPack-%{version}
|
|
|
|
|
for PL in not-found.pl sprites.pl rollup.pl; do
|
|
|
|
|
sed -i -e '1s,#!.*perl,#!%{__perl},' examples/"$PL"
|
|
|
|
|
sed -i -e '1s,#!.*perl,#!/usr/bin/perl,' examples/"$PL"
|
|
|
|
|
done
|
|
|
|
|
sed -i -e '1s,#!.*node,,' lib/Mojolicious/Plugin/AssetPack/Pipe/*.js
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
%{make_install}
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
%{make_build} test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes examples
|
|
|
|
|
%doc Changes examples README.md
|
|
|
|
|
%{perl_vendorlib}/Mojolicious*
|
|
|
|
|
%{_mandir}/man3/Mojolicious*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Dec 13 2020 Emmanuel Seyman <emmanuel@seyman.fr> - 2.10-1
|
|
|
|
|
- Update to 2.10
|
|
|
|
|
- Replace %%{__perl} with /usr/bin/perl
|
|
|
|
|
- Use %%{make_install} instead of "make pure_install"
|
|
|
|
|
- Use %%{make_build} instead of make
|
|
|
|
|
- Pass NO_PERLLOCAL to Makefile.PL
|
|
|
|
|
|
|
|
|
|
* Sun Oct 04 2020 Emmanuel Seyman <emmanuel@seyman.fr> - 2.09-1
|
|
|
|
|
- Update to 2.09 (#1876287)
|
|
|
|
|
- Drop nodejs-less dependency, no longer in Fedora (#1884161)
|
|
|
|
|