02dc321
Name:           perl-JavaScript-Minifier
02dc321
Version:        1.05
322444b
Release:        2%{?dist}
02dc321
Summary:        Perl extension for minifying JavaScript code
02dc321
License:        GPL+ or Artistic
02dc321
Group:          Development/Libraries
02dc321
URL:            http://search.cpan.org/dist/JavaScript-Minifier/
02dc321
Source0:        http://www.cpan.org/authors/id/P/PM/PMICHAUX/JavaScript-Minifier-%{version}.tar.gz
02dc321
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
02dc321
BuildArch:      noarch
02dc321
BuildRequires:  perl(ExtUtils::MakeMaker)
02dc321
BuildRequires:  perl(Test::More)
02dc321
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
02dc321
02dc321
%description
02dc321
This module removes unnecessary whitespace from JavaScript code. The
02dc321
primary requirement developing this module is to not break working
02dc321
code: if working JavaScript is in input then working JavaScript is
02dc321
output. It is ok if the input has missing semi-colons, snips like '++
02dc321
+' or '12 .toString()', for example. Internet Explorer conditional
02dc321
comments are copied to the output but the code inside these comments
02dc321
will not be minified.
02dc321
02dc321
%prep
02dc321
%setup -q -n JavaScript-Minifier-%{version}
02dc321
02dc321
%build
02dc321
%{__perl} Makefile.PL INSTALLDIRS=vendor
02dc321
make %{?_smp_mflags}
02dc321
02dc321
%install
02dc321
rm -rf $RPM_BUILD_ROOT
02dc321
02dc321
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
02dc321
02dc321
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
02dc321
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
02dc321
02dc321
%{_fixperms} $RPM_BUILD_ROOT/*
02dc321
02dc321
%check
02dc321
make test
02dc321
02dc321
%clean
02dc321
rm -rf $RPM_BUILD_ROOT
02dc321
02dc321
%files
02dc321
%defattr(-,root,root,-)
02dc321
%doc Changes README
02dc321
%{perl_vendorlib}/*
02dc321
%{_mandir}/man3/*
02dc321
02dc321
%changelog
322444b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-2
322444b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
322444b
02dc321
* Wed Apr 29 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.05-1
02dc321
- Specfile autogenerated by cpanspec 1.78.