packages: paintown/paintown.spec - add '#!/usr/bin/java -jar' shebang to ed...

pawelz pawelz at pld-linux.org
Mon Jan 18 21:35:06 CET 2010


Author: pawelz                       Date: Mon Jan 18 20:35:06 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add '#!/usr/bin/java -jar' shebang to editor.jar install it directly in
  %{_bindir} and get rid of shell wrapper.

---- Files affected:
packages/paintown:
   paintown.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: packages/paintown/paintown.spec
diff -u packages/paintown/paintown.spec:1.18 packages/paintown/paintown.spec:1.19
--- packages/paintown/paintown.spec:1.18	Sun Jan 17 22:17:47 2010
+++ packages/paintown/paintown.spec	Mon Jan 18 21:35:00 2010
@@ -85,6 +85,7 @@
 
 cd ../editor
 ant
+sed -i '1i#!%{_bindir}/java -jar' editor.jar
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -96,9 +97,7 @@
 install -d $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
 
-install editor/editor.jar $RPM_BUILD_ROOT%{_datadir}/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
-
+install editor/editor.jar $RPM_BUILD_ROOT%{_bindir}/%{name}-editor
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -115,7 +114,6 @@
 %files editor
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/%{name}-editor
-%{_datadir}/%{name}/editor.jar
 
 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -123,6 +121,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2010/01/18 20:35:00  pawelz
+- add '#!/usr/bin/java -jar' shebang to editor.jar install it directly in
+  %{_bindir} and get rid of shell wrapper.
+
 Revision 1.18  2010/01/17 21:17:47  pawelz
 - unify java package (BRs, R: jre-X11, not java-sun-jre-X11)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/paintown/paintown.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list