packages: jshint/jshint.spec, jshint/jshint.sh (NEW) - run via rhino

glen glen at pld-linux.org
Tue May 24 08:13:38 CEST 2011


Author: glen                         Date: Tue May 24 06:13:38 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- run via rhino

---- Files affected:
packages/jshint:
   jshint.spec (1.2 -> 1.3) , jshint.sh (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/jshint/jshint.spec
diff -u packages/jshint/jshint.spec:1.2 packages/jshint/jshint.spec:1.3
--- packages/jshint/jshint.spec:1.2	Tue May 24 08:07:35 2011
+++ packages/jshint/jshint.spec	Tue May 24 08:13:33 2011
@@ -1,6 +1,4 @@
 # $Revision$, $Date$
-# TODO
-# - add something to run it with, bindir wrapper
 %define		subver	2011-04-16
 %define		ver		%(echo %{subver} | tr -d -)
 Summary:	JSHint, A JavaScript Code Quality Tool
@@ -11,7 +9,10 @@
 Group:		Development/Tools
 URL:		http://www.jshint.com/
 Source0:	https://github.com/jshint/jshint/tarball/%{subver}#/%{name}-%{version}.tgz
+Source1:	%{name}.sh
 # Source0-md5:	5bfdc95c06e0ceefd9f185e421432424
+Requires:	java-rhino
+Requires:	jpackage-utils
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -30,8 +31,9 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_appdir}
-install -p jshint.js $RPM_BUILD_ROOT%{_appdir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -p jshint.js $RPM_BUILD_ROOT%{_appdir}
 cp -a env $RPM_BUILD_ROOT%{_appdir}
 
 %clean
@@ -40,6 +42,7 @@
 %files
 %defattr(644,root,root,755)
 %doc README.markdown CHANGELOG
+%attr(755,root,root) %{_bindir}/jshint
 %{_appdir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -48,6 +51,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2011/05/24 06:13:33  glen
+- run via rhino
+
 Revision 1.2  2011/05/24 06:07:35  glen
 - use tarball from github, noarch package
 

================================================================
Index: packages/jshint/jshint.sh
diff -u /dev/null packages/jshint/jshint.sh:1.1
--- /dev/null	Tue May 24 08:13:38 2011
+++ packages/jshint/jshint.sh	Tue May 24 08:13:33 2011
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/java/js.jar /usr/share/jshint/env/rhino.js "$@"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jshint/jshint.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list