- improved silly wrapper scripts
authorsparky <sparky@pld-linux.org>
Wed, 2 Feb 2011 23:06:56 +0000 (23:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- BR: rpm-pythonprov

Changed files:
    PlayOnLinux.spec -> 1.2

PlayOnLinux.spec

index 884764d..c330148 100644 (file)
@@ -8,6 +8,7 @@ Source0:        http://www.playonlinux.com/script_files/PlayOnLinux/%{version}/%{name}_
 # 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)
@@ -20,22 +21,19 @@ Windows.
 %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
This page took 0.089321 seconds and 4 git commands to generate.