SPECS: yuicompressor.spec (NEW) - new

glen glen at pld-linux.org
Tue Feb 19 15:19:53 CET 2008


Author: glen                         Date: Tue Feb 19 14:19:53 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   yuicompressor.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/yuicompressor.spec
diff -u /dev/null SPECS/yuicompressor.spec:1.1
--- /dev/null	Tue Feb 19 15:19:53 2008
+++ SPECS/yuicompressor.spec	Tue Feb 19 15:19:48 2008
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
+Summary:	YUI Compressor - JavaScript compressor
+Name:		yuicompressor
+Version:	2.3.4
+Release:	0.1
+License:	BSD
+Group:		Applications/WWW
+Source0:	http://www.julienlecomte.net/yuicompressor/%{name}-%{version}.zip
+# Source0-md5:	be8b31389b40f28c5c7250a076dcfba5
+URL:		http://www.julienlecomte.net/yuicompressor/
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+Requires:	jre >= 1.4
+Requires:	jpackage-utils
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The YUI Compressor is a JavaScript minifier.
+
+Its level of compaction is higher than the Dojo compressor, and it is
+as safe as JSMin.
+
+Tests on the YUI library have shown savings of about 18% compared to
+JSMin and 10% compared to the Dojo compressor (these respectively
+become 10% and 5% after HTTP compression)
+
+%prep
+%setup -q
+
+cat <<'EOF' >> %{name}
+#!/bin/sh
+exec java -jar %{_javadir}/%{name}.jar ${1:+"$@"}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
+install %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+# jars
+cp -a build/yuicompressor-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/*
+%attr(755,root,root) %{_bindir}/%{name}
+%{_javadir}/*.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-02-19 14:19:48  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list