- improved silly wrapper scripts
[packages/PlayOnLinux.git] / PlayOnLinux.spec
1 Summary:        GUI for managing Windows and DOS programs under linux
2 Name:           PlayOnLinux
3 Version:        3.8.8
4 Release:        0.2
5 License:        GPL v3
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
12 Requires:       python-wxPython
13 Requires:       wine
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 PlayOnLinux is a piece of sofware which allows you to easily install
18 and use numerous games and apps designed to run with Microsoft®
19 Windows.
20
21 %prep
22 %setup -q -n playonlinux
23
24 %install
25 rm -rf $RPM_BUILD_ROOT
26 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}}
27 cp -r * $RPM_BUILD_ROOT%{_datadir}/%{name}
28 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
29 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/{CHANGELOG,LICENCE}
30
31 for exec in playonlinux*; do
32         cat > $RPM_BUILD_ROOT%{_bindir}/$exec <<-EOF
33         #!/bin/sh
34         exec %{_datadir}/%{name}/$exec \${1+"\$@"}
35 EOF
36         chmod +x $RPM_BUILD_ROOT%{_bindir}/$exec
37 done
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc CHANGELOG
45 %dir %{_datadir}/%{name}
46 %attr(755,root,root) %{_bindir}/playonlinux*
47 %attr(755,root,root) %{_datadir}/%{name}/playonlinux*
48 %{_datadir}/%{name}/bash
49 %{_datadir}/%{name}/etc
50 %{_datadir}/%{name}/lang
51 %{_datadir}/%{name}/lib
52 %{_datadir}/%{name}/plugins
53 %{_datadir}/%{name}/python
54 %{_datadir}/%{name}/themes
55 %{_desktopdir}/%{name}.desktop
This page took 0.034816 seconds and 3 git commands to generate.