|
|
|
@ -1,18 +1,27 @@
|
|
|
|
|
Name: perl-JavaScript-Minifier-XS
|
|
|
|
|
Version: 0.09
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Version: 0.11
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: XS based JavaScript minifier
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/JavaScript-Minifier-XS/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/JavaScript-Minifier-XS-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildRequires: perl(Module::Build) > 0.35
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Run-time
|
|
|
|
|
BuildRequires: perl(DynaLoader)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
# Tests
|
|
|
|
|
BuildRequires: perl(Benchmark)
|
|
|
|
|
BuildRequires: perl(File::Slurp)
|
|
|
|
|
BuildRequires: perl(File::Which)
|
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
|
BuildRequires: perl(IPC::Run)
|
|
|
|
|
BuildRequires: perl(JavaScript::Minifier)
|
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
BuildRequires: perl(Test::LeakTrace)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
@ -25,32 +34,28 @@ files without breaking the JavaScript.
|
|
|
|
|
%setup -q -n JavaScript-Minifier-XS-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
|
|
|
|
|
perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
|
|
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
./Build test --test_files="xt/*.t"
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
|
%{perl_vendorarch}/JavaScript*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jan 29 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-1
|
|
|
|
|
- 0.11 bump, update BRs
|
|
|
|
|
- Modernize spec file
|
|
|
|
|
|
|
|
|
|
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.09-12
|
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
|
|