Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Maddie:emulation
dolphin-emu
dolphin-emu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dolphin-emu.spec of Package dolphin-emu
# # spec file for package dolphin-emu # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define commit b92e354389bb7c0bd114a8631b8af110d3cb3a14 Name: dolphin-emu Version: 2409 Release: 0 Summary: Dolphin, a GameCube and Wii Emulator License: (Apache-2.0 OR MIT) AND BSD-2-Clause AND libpng-2.0 AND GPL-2.0-or-later URL: https://dolphin-emu.org # n=dolphin-emu && v=2409 && d=$n-$v && f=$d.tar.xz && cd /tmp && git clone https://github.com/$n/dolphin.git $n && pushd $n && git checkout $v && git submodule && git submodule update --init --recursive Externals/VulkanMemoryAllocator Externals/cubeb/cubeb Externals/enet/enet Externals/gtest Externals/implot/implot Externals/libspng/libspng Externals/minizip-ng/minizip-ng Externals/rcheevos/rcheevos Externals/tinygltf/tinygltf Externals/zlib-ng/zlib-ng && git submodule status && rm -rf .??* && popd && mv $n $d && tar c --remove-files "$d" | xz -9e > "$f" Source0: %{name}-%{version}.tar.xz BuildRequires: cmake %if 0%{?use_clang} BuildRequires: clang-devel #BuildRequires: npth-devel %endif %if 0%{?use_lld} BuildRequires: lld %endif BuildRequires: fdupes BuildRequires: glslang-devel BuildRequires: hicolor-icon-theme BuildRequires: mbedtls-devel < 3 BuildRequires: ninja BuildRequires: picojson-devel BuildRequires: pkgconfig BuildRequires: qt6-gui-private-devel BuildRequires: spirv-headers BuildRequires: spirv-tools BuildRequires: spirv-tools-devel BuildRequires: pkgconfig(Qt6Svg) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(ao) BuildRequires: pkgconfig(bluez) BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(fmt) = 10.2.1 BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(hidapi-hidraw) BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavdevice) BuildRequires: pkgconfig(libavfilter) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libevdev) BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libswscale) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libxxhash) BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(lzo2) BuildRequires: pkgconfig(miniupnpc) BuildRequires: pkgconfig(portaudio-2.0) BuildRequires: pkgconfig(pugixml) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sfml-network) BuildRequires: pkgconfig(sfml-system) BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(soundtouch) BuildRequires: pkgconfig(speexdsp) BuildRequires: pkgconfig(vulkan) BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(xrandr) Requires: nintendo-gamecube-wiimote-udev-rules ExclusiveArch: x86_64 aarch64 %if 0%{?sle_version} > 150000 && 0%{?sle_version} < 160000 BuildRequires: gcc13 BuildRequires: gcc13-c++ %endif %description Dolphin is an emulator for two Nintendo video game consoles, GameCube and the Wii. It allows PC gamers to enjoy games for these two consoles in full HD with several enhancements such as compatibility with all PC controllers, turbo speed, networked multiplayer, and more. Most games run perfectly or with minor bugs. %package -n nintendo-gamecube-wiimote-udev-rules Summary: Udev rules for Nintendo GameCube and Wiimote game controllers Requires: udev BuildArch: noarch %description -n nintendo-gamecube-wiimote-udev-rules This package contains udev rules for Nintendo GameCube and Wiimote game controllers. %lang_package %prep %autosetup -p1 #Allow building with cmake macro sed -i '/CMAKE_C.*_FLAGS/d' CMakeLists.txt #Font license, drop the install directory into thie file echo "%{_datadir}/%{name}/Sys/GC:" > font-licenses.txt cat Data/Sys/GC/font-licenses.txt >> font-licenses.txt #Fix for newer vulkan sed -i "s/VK_PRESENT_MODE_RANGE_SIZE_KHR/(VkPresentModeKHR)("` `"VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1)/" \ Source/Core/VideoBackends/Vulkan/VKSwapChain.h %build %define _lto_cflags %{nil} # FIXME: you should use the %%cmake macros export CFLAGS="march=x86-64-v3 -O3" export CXXFLAGS="march=x86-64-v3 -O3" cmake . -LA \ -DCMAKE_BUILD_TYPE=Release \ %if 0%{?use_clang} -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ %endif -DCMAKE_C_FLAGS="%{optflags}" \ -DCMAKE_CXX_FLAGS="%{optflags}" \ -DUSE_PULSE=ON -DUSE_JACK=ON \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DDISTRIBUTOR="openSUSE OBS (Maddie)" \ -DDOLPHIN_WC_BRANCH=HEAD \ -DDOLPHIN_WC_REVISION=%{commit} \ -DENABLE_ANALYTICS=OFF \ -DENABLE_LTO=ON \ -DUSE_DISCORD_PRESENCE=OFF \ -DUSE_MGBA=OFF \ -DUSE_RETRO_ACHIEVEMENTS=ON \ -DUSE_SANITIZERS=OFF \ -DENABLE_AUTOUPDATE=OFF \ -DENABLE_TESTS=OFF \ -DXXHASH_FOUND=ON \ -Wno-dev \ -G Ninja ninja -v %install DESTDIR=%{buildroot} ninja install sed -i 's/^Exec=.*/Exec=%{name}/' %{buildroot}%{_datadir}/applications/%{name}.desktop install -Dpm0644 Data/51-usb-device.rules %{buildroot}%{_udevrulesdir}/51-nintendo-gamecube-wiimote.rules %fdupes -s %{buildroot} %find_lang %{name} %files lang -f %{name}.lang %files %defattr(0644,root,root,-) %license COPYING %doc Readme.md %attr(0755,root,root) %{_bindir}/%{name}* %attr(0755,root,root) %{_bindir}/dolphin-tool %{_datadir}/%{name} %{_datadir}/icons/hicolor/*/apps/%{name}.{png,svg} %{_datadir}/applications/%{name}.desktop %{_mandir}/man6/%{name}*.6%{?ext_man} %files -n nintendo-gamecube-wiimote-udev-rules %{_udevrulesdir}/51-nintendo-gamecube-wiimote.rules %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor