]>
Commit | Line | Data |
---|---|---|
aa48a886 ZU |
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/ | |
a2be40f0 | 11 | BuildRequires: rpm-pythonprov |
aa48a886 ZU |
12 | Requires: python-wxPython |
13 | Requires: wine | |
245e1d44 | 14 | BuildArch: noarch |
aa48a886 ZU |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | PlayOnLinux is a piece of sofware which allows you to easily install | |
19 | and use numerous games and apps designed to run with Microsoft® | |
20 | Windows. | |
21 | ||
22 | %prep | |
23 | %setup -q -n playonlinux | |
24 | ||
aa48a886 ZU |
25 | %install |
26 | rm -rf $RPM_BUILD_ROOT | |
27 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}} | |
28 | cp -r * $RPM_BUILD_ROOT%{_datadir}/%{name} | |
a2be40f0 | 29 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
aa48a886 ZU |
30 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/{CHANGELOG,LICENCE} |
31 | ||
32 | for exec in playonlinux*; do | |
a2be40f0 | 33 | cat > $RPM_BUILD_ROOT%{_bindir}/$exec <<-EOF |
34 | #!/bin/sh | |
35 | exec %{_datadir}/%{name}/$exec \${1+"\$@"} | |
aa48a886 | 36 | EOF |
a2be40f0 | 37 | chmod +x $RPM_BUILD_ROOT%{_bindir}/$exec |
aa48a886 ZU |
38 | done |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc CHANGELOG | |
46 | %dir %{_datadir}/%{name} | |
47 | %attr(755,root,root) %{_bindir}/playonlinux* | |
48 | %attr(755,root,root) %{_datadir}/%{name}/playonlinux* | |
49 | %{_datadir}/%{name}/bash | |
50 | %{_datadir}/%{name}/etc | |
51 | %{_datadir}/%{name}/lang | |
52 | %{_datadir}/%{name}/lib | |
53 | %{_datadir}/%{name}/plugins | |
54 | %{_datadir}/%{name}/python | |
55 | %{_datadir}/%{name}/themes | |
56 | %{_desktopdir}/%{name}.desktop |