1 |
%define oname PlayOnLinux |
2 |
|
3 |
Summary: Play your Windows games on Linux |
4 |
Name: playonlinux |
5 |
Version: 3.8.12 |
6 |
Release: %mkrel 2 |
7 |
License: GPLv3 |
8 |
Group: Games/Other |
9 |
Url: http://www.playonlinux.com |
10 |
Source0: http://www.playonlinux.com/script_files/%{oname}/%{version}/%{oname}_%{version}.tar.gz |
11 |
Source1: playonlinux |
12 |
BuildRequires: desktop-file-utils |
13 |
Requires: wxPythonGTK |
14 |
Requires: imagemagick |
15 |
Requires: wget |
16 |
Requires: gettext |
17 |
Requires: unzip |
18 |
Requires: cabextract |
19 |
Requires: lzma |
20 |
Requires: xterm |
21 |
Requires: wine-full |
22 |
Requires: glxinfo |
23 |
# for ar |
24 |
Requires: binutils |
25 |
ExclusiveArch: %{ix86} |
26 |
|
27 |
%description |
28 |
PlayOnLinux is a piece of sofware which allow you to install |
29 |
and use easily numerous games and software designed to run |
30 |
with Microsoft(R)'s Windows(R). Indeed, currently, still few |
31 |
games are compatible with GNU/Linux, and it could be a factor |
32 |
preventing from migrating to this system. PlayOnLinux brings an |
33 |
accessible and efficient solution to this problem, cost-free |
34 |
and respectful of the free software. |
35 |
|
36 |
%prep |
37 |
%setup -q -n %{name} |
38 |
|
39 |
%install |
40 |
rm -rf %{buildroot} |
41 |
mkdir %{buildroot} |
42 |
mkdir -p %{buildroot}%{_bindir}/ |
43 |
mkdir -p %{buildroot}%{_datadir}/%{name} |
44 |
mkdir -p %{buildroot}%{_datadir}/desktop-directories |
45 |
mkdir -p %{buildroot}%{_datadir}/applications |
46 |
mkdir -p %{buildroot}%{_datadir}/pixmaps |
47 |
|
48 |
cp -a * %{buildroot}%{_datadir}/%{name} |
49 |
|
50 |
install -p %{SOURCE1} %{buildroot}%{_bindir}/ |
51 |
cp etc/PlayOnLinux.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop |
52 |
cp %{buildroot}%{_datadir}/%{name}/etc/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png |
53 |
cp %{buildroot}%{_datadir}/%{name}/etc/PlayOnLinux.directory %{buildroot}%{_datadir}/desktop-directories/%{oname}.directory |
54 |
|
55 |
desktop-file-install \ |
56 |
--add-category="Game" \ |
57 |
--remove-category="%{oname}" \ |
58 |
--remove-key="Encoding" \ |
59 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* |
60 |
|
61 |
%clean |
62 |
rm -rf %{buildroot} |
63 |
|
64 |
%files |
65 |
%defattr(-,root,root) |
66 |
%doc LICENCE CHANGELOG |
67 |
%{_bindir}/%{name} |
68 |
%{_datadir}/%{name} |
69 |
%{_datadir}/applications/%{oname}.desktop |
70 |
%{_datadir}/pixmaps/%{name}.png |
71 |
%{_datadir}/desktop-directories/%{oname}.directory |