|
|
|
@ -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 <emmanuel@seyman.fr> - 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 <releng@fedoraproject.org> - 0.09-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|