| 1 |
# |
| 2 |
# Spec file for package Dolphin Emulator |
| 3 |
# |
| 4 |
# Copyright © 2014 Markus S. <[email protected]> |
| 5 |
# |
| 6 |
# This program is free software: you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation, either version 2 of the License, or |
| 9 |
# (at your option) any later version. |
| 10 |
# |
| 11 |
# This program is distributed in the hope that it will be useful, |
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
# GNU General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU General Public License |
| 17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
Name: dolphin-emu |
| 20 |
Summary: Dolphin Emulator |
| 21 |
Version: 5.0 |
| 22 |
Release: 0%{?dist} |
| 23 |
Group: System/Emulators/Other |
| 24 |
License: GPL-2.0 |
| 25 |
URL: https://dolphin-emu.org/ |
| 26 |
BuildArch: x86_64 armv7l aarch64 |
| 27 |
|
| 28 |
# For this spec file to work, the Dolphin Emulator sources must be located |
| 29 |
# in a directory named dolphin-emu-5.0 (with "5.0" being the version |
| 30 |
# number defined above). |
| 31 |
# If the sources are compressed in another format than .tar.xz, change the |
| 32 |
# file extension accordingly. |
| 33 |
Source0: %{name}-%{version}.tar.xz |
| 34 |
|
| 35 |
# Package names verified with, CentOS, Fedora and openSUSE. |
| 36 |
# Should the packages in your distro be named differently, |
| 37 |
# see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto |
| 38 |
# |
| 39 |
# All other distros should work as well as Dolphin bundles |
| 40 |
# its dependencies for static linking. |
| 41 |
|
| 42 |
BuildRequires: desktop-file-utils |
| 43 |
BuildRequires: cmake >= 2.8 |
| 44 |
BuildRequires: gcc-c++ |
| 45 |
BuildRequires: gtk2-devel |
| 46 |
BuildRequires: pkgconfig(alsa) |
| 47 |
BuildRequires: pkgconfig(ao) |
| 48 |
BuildRequires: pkgconfig(bluez) |
| 49 |
BuildRequires: pkgconfig(libpulse) |
| 50 |
BuildRequires: pkgconfig(xrandr) |
| 51 |
BuildRequires: pkgconfig(zlib) |
| 52 |
|
| 53 |
%if 0%{?fedora} |
| 54 |
BuildRequires: libusb-devel |
| 55 |
BuildRequires: lzo-devel |
| 56 |
# Disable miniupnpc in OBS for F20 |
| 57 |
BuildRequires: miniupnpc-devel |
| 58 |
BuildRequires: openal-soft-devel |
| 59 |
#polarssl is now mbedtls: |
| 60 |
BuildRequires: mbedtls-devel |
| 61 |
BuildRequires: SDL2-devel |
| 62 |
BuildRequires: SFML-devel |
| 63 |
%endif |
| 64 |
|
| 65 |
%if 0%{?suse_version} |
| 66 |
BuildRequires: libminiupnpc-devel |
| 67 |
BuildRequires: libSDL2-devel |
| 68 |
BuildRequires: lzo-devel |
| 69 |
BuildRequires: openal-devel |
| 70 |
BuildRequires: sfml-devel |
| 71 |
BuildRequires: update-desktop-files |
| 72 |
%endif |
| 73 |
|
| 74 |
# Use bundled wxGTK 3 except under the following distros: |
| 75 |
%if 0%{?fedora_version} > 20 |
| 76 |
BuildRequires: wxGTK3-devel |
| 77 |
%endif |
| 78 |
|
| 79 |
%description |
| 80 |
Dolphin is an emulator for two Nintendo video game consoles, GameCube and the Wii. |
| 81 |
It allows PC gamers to enjoy games for these two consoles in full HD with several |
| 82 |
enhancements such as compatibility with all PC controllers, turbo speed, |
| 83 |
networked multiplayer, and more. |
| 84 |
Most games run perfectly or with minor bugs. |
| 85 |
|
| 86 |
# ------------------------------------------------------ |
| 87 |
|
| 88 |
%package lang |
| 89 |
Summary: Translations for Dolphin Emulator |
| 90 |
BuildArch: noarch |
| 91 |
|
| 92 |
%description lang |
| 93 |
Translations into various languages for Dolphin Emulator |
| 94 |
|
| 95 |
%files lang |
| 96 |
%{_datadir}/locale |
| 97 |
|
| 98 |
# ------------------------------------------------------ |
| 99 |
|
| 100 |
%package nogui |
| 101 |
Summary: Dolphin Emulator without a graphical user interface |
| 102 |
|
| 103 |
%description nogui |
| 104 |
Dolphin Emulator without a graphical user interface |
| 105 |
|
| 106 |
%files nogui |
| 107 |
%{_bindir}/%{name}-nogui |
| 108 |
%{_mandir}/man6/%{name}-nogui.* |
| 109 |
|
| 110 |
# ------------------------------------------------------ |
| 111 |
|
| 112 |
%prep |
| 113 |
%setup -q |
| 114 |
|
| 115 |
%build |
| 116 |
export CCFLAGS='%{optflags}' |
| 117 |
cmake . -DCMAKE_INSTALL_PREFIX=/usr |
| 118 |
make %{?_smp_mflags} |
| 119 |
|
| 120 |
%install |
| 121 |
export CCFLAGS='%{optflags}' |
| 122 |
make %{?_smp_mflags} install DESTDIR="%{?buildroot}" |
| 123 |
|
| 124 |
%if 0%{?suse_version} |
| 125 |
# Replace desktop file category 'Game;Emulator;' with 'System;Emulator;' |
| 126 |
# under openSUSE or else build fails. |
| 127 |
%suse_update_desktop_file -c %name Dolphin 'GameCube and Wii emulator' %{name} %{name} 'System;Emulator;' |
| 128 |
%endif |
| 129 |
|
| 130 |
%files |
| 131 |
%defattr(-,root,root,-) |
| 132 |
%doc license.txt Readme.md |
| 133 |
%{_bindir}/%{name} |
| 134 |
%{_datadir}/%{name} |
| 135 |
%{_datadir}/icons/hicolor/48x48/apps/%{name}.* |
| 136 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.* |
| 137 |
%{_datadir}/applications/%{name}.desktop |
| 138 |
%{_mandir}/man6/%{name}.* |
| 139 |
|
| 140 |
%clean |
| 141 |
rm -rf %{buildroot} |
| 142 |
|
| 143 |
%changelog |