Update to 2.10

f38
Emmanuel Seyman 4 years ago
parent 5244765daf
commit 99bbbd9037

1
.gitignore vendored

@ -33,3 +33,4 @@
/Mojolicious-Plugin-AssetPack-2.07.tar.gz
/Mojolicious-Plugin-AssetPack-2.08.tar.gz
/Mojolicious-Plugin-AssetPack-2.09.tar.gz
/Mojolicious-Plugin-AssetPack-2.10.tar.gz

@ -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)

@ -1 +1 @@
SHA512 (Mojolicious-Plugin-AssetPack-2.09.tar.gz) = c37715b5d144851fbdfc8d8387a709556ba91c276352dce60aa0b823c4e923a70bc597503eb522c0db6cfe44fc9964f58912ce8f0d2d5dfdf49ba60233f9bd3a
SHA512 (Mojolicious-Plugin-AssetPack-2.10.tar.gz) = 3472c57ff96d2b7987061e6557d3f71e461641ed26ae58869c5dd18b465bad3b4fbf0c870cb604dab2c669ccf6834ce440d1bc934c5bb6136de93ada701ecf72

Loading…
Cancel
Save