packages: PlayOnLinux/PlayOnLinux.spec - improved silly wrapper scripts - B...

sparky sparky at pld-linux.org
Thu Feb 3 00:07:01 CET 2011


Author: sparky                       Date: Wed Feb  2 23:07:01 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- improved silly wrapper scripts
- BR: rpm-pythonprov

---- Files affected:
packages/PlayOnLinux:
   PlayOnLinux.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/PlayOnLinux/PlayOnLinux.spec
diff -u packages/PlayOnLinux/PlayOnLinux.spec:1.1 packages/PlayOnLinux/PlayOnLinux.spec:1.2
--- packages/PlayOnLinux/PlayOnLinux.spec:1.1	Wed Feb  2 23:54:56 2011
+++ packages/PlayOnLinux/PlayOnLinux.spec	Thu Feb  3 00:06:56 2011
@@ -9,6 +9,7 @@
 # Source0-md5:	1bc12abd0a3d2426ea35e6887e9d3bd5
 Source1:	%{name}.desktop
 URL:		http://www.playonlinux.com/en/
+BuildRequires:	rpm-pythonprov
 Requires:	python-wxPython
 Requires:	wine
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -21,22 +22,19 @@
 %prep
 %setup -q -n playonlinux
 
-%build
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}}
 cp -r * $RPM_BUILD_ROOT%{_datadir}/%{name}
-install %SOURCE1 $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/{CHANGELOG,LICENCE}
 
 for exec in playonlinux*; do
-(cat << EOF
-#!/bin/bash
-%{_datadir}/%{name}/$exec $@
-
+	cat > $RPM_BUILD_ROOT%{_bindir}/$exec <<-EOF
+	#!/bin/sh
+	exec %{_datadir}/%{name}/$exec \${1+"\$@"}
 EOF
-) > $RPM_BUILD_ROOT%{_bindir}/$exec
+	chmod +x $RPM_BUILD_ROOT%{_bindir}/$exec
 done
 
 %clean
@@ -64,6 +62,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/02/02 23:06:56  sparky
+- improved silly wrapper scripts
+- BR: rpm-pythonprov
+
 Revision 1.1  2011/02/02 22:54:56  uzsolt
 - initial
-
================================================================

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



More information about the pld-cvs-commit mailing list