SPECS: jsmin.spec (NEW) - new
glen
glen at pld-linux.org
Wed Jun 27 14:37:37 CEST 2007
Author: glen Date: Wed Jun 27 12:37:37 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
jsmin.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/jsmin.spec
diff -u /dev/null SPECS/jsmin.spec:1.1
--- /dev/null Wed Jun 27 14:37:37 2007
+++ SPECS/jsmin.spec Wed Jun 27 14:37:32 2007
@@ -0,0 +1,48 @@
+# $Revision$, $Date$
+%define _rel 0.1
+Summary: The JavaScript Minifier
+Name: jsmin
+Version: 0
+Release: 0.20070522.%{_rel}
+License: Freeware
+Group: Applications
+Source0: http://www.crockford.com/javascript/%{name}.c
+# Source0-md5: e764a543ec870d1ede2478236ecd7e98
+URL: http://javascript.crockford.com/jsmin.html
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JSMin is a filter which removes comments and unnecessary whitespace
+from JavaScript files. It typically reduces filesize by half,
+resulting in faster downloads. It also encourages a more expressive
+programming style because it eliminates the download cost of clean,
+literate self-documentation.
+
+%prep
+%setup -qcT
+cp -a %{SOURCE0} .
+
+%build
+%{__cc} %{rpmcflags} jsmin.c -o jsmin
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install jsmin $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/jsmin
+
+%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 2007/06/27 12:37:32 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list