Author: mmaslano
Update of /cvs/pkgs/rpms/perl-JavaScript-Minifier/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26180
Modified Files:
.cvsignore sources
Added Files:
perl-JavaScript-Minifier.spec
Log Message:
* Wed Apr 29 2009 Marcela Mašláňová <mmaslano(a)redhat.com> 1.05-1
- Specfile autogenerated by cpanspec 1.78.
--- NEW FILE perl-JavaScript-Minifier.spec ---
Name: perl-JavaScript-Minifier
Version: 1.05
Release: 1%{?dist}
Summary: Perl extension for minifying JavaScript code
License: GPL+ or Artistic
Group: Development/Libraries
URL:
http://search.cpan.org/dist/JavaScript-Minifier/
Source0:
http://www.cpan.org/authors/id/P/PM/PMICHAUX/JavaScript-Minifier-%{versio...
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
%description
This module removes unnecessary whitespace from JavaScript code. The
primary requirement developing this module is to not break working
code: if working JavaScript is in input then working JavaScript is
output. It is ok if the input has missing semi-colons, snips like '++
+' or '12 .toString()', for example. Internet Explorer conditional
comments are copied to the output but the code inside these comments
will not be minified.
%prep
%setup -q -n JavaScript-Minifier-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Wed Apr 29 2009 Marcela Mašláňová <mmaslano(a)redhat.com> 1.05-1
- Specfile autogenerated by cpanspec 1.78.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-JavaScript-Minifier/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 1 May 2009 21:00:38 -0000 1.1
+++ .cvsignore 4 May 2009 07:24:59 -0000 1.2
@@ -0,0 +1 @@
+JavaScript-Minifier-1.05.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-JavaScript-Minifier/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 1 May 2009 21:00:38 -0000 1.1
+++ sources 4 May 2009 07:24:59 -0000 1.2
@@ -0,0 +1 @@
+14c1fa2fcf76c97de4d0fe0d8d7fc145 JavaScript-Minifier-1.05.tar.gz