1 Summary: GUI for managing Windows and DOS programs under linux
6 Group: X11/Applications/Games
7 Source0: http://www.playonlinux.com/script_files/PlayOnLinux/%{version}/%{name}_%{version}.tar.gz
8 # Source0-md5: 1bc12abd0a3d2426ea35e6887e9d3bd5
9 Source1: %{name}.desktop
10 URL: http://www.playonlinux.com/en/
11 BuildRequires: rpm-pythonprov
14 Requires: python-wxPython
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 PlayOnLinux is a piece of sofware which allows you to easily install
22 and use numerous games and apps designed to run with Microsoft®
26 %setup -q -n playonlinux
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}}
31 cp -r * $RPM_BUILD_ROOT%{_datadir}/%{name}
32 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
33 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/{CHANGELOG,LICENCE}
35 for exec in playonlinux*; do
36 cat > $RPM_BUILD_ROOT%{_bindir}/$exec <<-EOF
38 exec %{_datadir}/%{name}/$exec \${1+"\$@"}
40 chmod +x $RPM_BUILD_ROOT%{_bindir}/$exec
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %dir %{_datadir}/%{name}
50 %attr(755,root,root) %{_bindir}/playonlinux*
51 %attr(755,root,root) %{_datadir}/%{name}/playonlinux*
52 %{_datadir}/%{name}/bash
53 %{_datadir}/%{name}/etc
54 %{_datadir}/%{name}/lang
55 %{_datadir}/%{name}/lib
56 %{_datadir}/%{name}/plugins
57 %{_datadir}/%{name}/python
58 %{_datadir}/%{name}/themes
59 %{_desktopdir}/%{name}.desktop