|
|
|
Name: perl-JavaScript-Minifier-XS
|
|
|
|
Version: 0.06
|
|
|
|
Release: 3%{?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)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(JavaScript::Minifier)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
%description
|
|
|
|
JavaScript::Minifier::XS is a JavaScript "minifier"; it's designed
|
|
|
|
to remove un-necessary whitespace and comments from JavaScript
|
|
|
|
files without breaking the JavaScript.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n JavaScript-Minifier-XS-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__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
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
%{perl_vendorarch}/JavaScript*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-3
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.06-2
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
|
|
|
* Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.06-1
|
|
|
|
- update filtering
|
|
|
|
- auto-update to 0.06 (by cpan-spec-update 0.01)
|
|
|
|
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue May 5 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.05-2
|
|
|
|
- add BR, remove useless provides
|
|
|
|
|
|
|
|
* Wed Apr 29 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.05-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|