From a3f1d60a3c3104ba467a3f50573fb6b4143aea92 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Sun, 3 Jan 2021 01:21:17 +0100 Subject: [PATCH] Update to 0.11 --- .gitignore | 1 + perl-CSS-Minifier-XS.spec | 29 +++++++++++++++++------------ sources | 2 +- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 6f04c87..b6e408b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ CSS-Minifier-XS-0.04.tar.gz CSS-Minifier-XS-0.07.tar.gz /CSS-Minifier-XS-0.08.tar.gz /CSS-Minifier-XS-0.09.tar.gz +/CSS-Minifier-XS-0.11.tar.gz diff --git a/perl-CSS-Minifier-XS.spec b/perl-CSS-Minifier-XS.spec index 670b693..77663f3 100644 --- a/perl-CSS-Minifier-XS.spec +++ b/perl-CSS-Minifier-XS.spec @@ -1,12 +1,12 @@ Name: perl-CSS-Minifier-XS -Version: 0.09 -Release: 22%{?dist} +Version: 0.11 +Release: 1%{?dist} # lib/CSS/Minifier/XS.pm -> GPL+ or Artistic License: GPL+ or Artistic Summary: XS based CSS minifier Source: https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/CSS-Minifier-XS-%{version}.tar.gz Url: https://metacpan.org/release/CSS-Minifier-XS -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version)) BuildRequires: findutils BuildRequires: make @@ -14,7 +14,7 @@ BuildRequires: gcc BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(CSS::Minifier) -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) @@ -34,27 +34,32 @@ in XS and not just pure Perl. %setup -q -n CSS-Minifier-XS-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -make %{?_smp_mflags} +/usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' - +%{make_install} %{_fixperms} %{buildroot}/* %check -make test +%{make_build} test %files %doc Changes README +%license LICENSE %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_mandir}/man3/*.3* %changelog +* Sun Jan 03 2021 Emmanuel Seyman - 0.11-1 +- Update to 0.11 +- Replace calls to %%{__perl} with /usr/bin/perl +- Pass NO_PACKLIST and NO_PERLLOCAL to Makefile.PL +- Use %%{make_install} instead of "make pure_install" +- Use %%{make_install} instead of make +- Add %%license macro + * Tue Jul 28 2020 Fedora Release Engineering - 0.09-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index ba6c7ec..cc2aaf3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -583722bcd6175fcafaff63c769accc6f CSS-Minifier-XS-0.09.tar.gz +SHA512 (CSS-Minifier-XS-0.11.tar.gz) = deb3cb3b095c4f3266378b165b4879984dbfd3d251730d724e6343347866878884cab4bd16d1234489e8ac12d9dbcc2ed59f4cb7759a7775483f974efac89f99