rpcs3/rpcs3.spec

176 lines
4.8 KiB
RPMSpec
Raw Normal View History

Accepting request 1230908 from home:regularhunter:branches:Emulators - Update to version 0.0.34~git20241213: * cellGem: Improve mouse handler orientation * PS Move: fix calibration logging * PS Move: Disable Fusion gain (no more drift) * move tracker: ignore sporadic shape and position changes * move tracker: ignore sporadic invalid results * cellGem: lock tracker mutex in get_info * Qt 6.8.1 * cellGem: implement quaternion transformation * cellGem: try to map accelerometer and gyro * sys_rsx_context_attribute: Improve errors - Update to version 0.0.34~git20241207: * Welcome Dialog: Reject users that reject our TOS * fix dark theme switching on initial welcome dialog (#16373) * PRX: Do not check exported function code address * PPU: Notify SPUs while waiting for its own state * CELL: Rewrite reservation notification postponing * cellGem: fix HUE_NOT_SET * cellGem: calculate distance from sphere to camera * Debugger: Dump related thread information on crash * System.cpp: Do not hold on fs::dir handle * fs: Minor fix of fs::dir::open * Emu: Fixup * System.cpp: Fix Kill() on bad app startup * Add some asserts for g_fxo->init<> * System.cpp: Add system_state::loading * Fix Emulation boot recursion * Qt: Deprecate processEvents() part 2 * util/types.hpp: Rewrite narrow<> * Qt: Deprecate proccessEvents() usage * rsx: Use strict bounds testing when replacing memory via blit engine * rsx/texture-cache: Rework invalidation cause object to have more granular controls * rsx/util: Change the filter function to an in-place erase-if operation * Migrate Savestates Home Menu (#16340) * LLVM: Implement Recursive Intrinsics * VS: add quotes around paths * cellDmuxPamf: add module + stubs * cellAdec: make AdecContext and AdecFrame trivial classes * Invalidate savestates * cellAdec: review + warning fixes * cellAdec implementation part 1: abstraction layer * Fix HLE PPU callback stack arguments * sys_net: Remove lingering ppu_to_awake from queue on timeout * Qt 6.8.0 * Fix some warnings * Qt: Use inplace image mirroring in video sink * Make error message for temporary and archive translatable (#16331) * lockless.h: Fox * lockless.h: Fixup addressing * lockless.h: Fixup lf_array assert * Progress: Dialog: Fixup memory management OBS-URL: https://build.opensuse.org/request/show/1230908 OBS-URL: https://build.opensuse.org/package/show/Emulators/rpcs3?expand=0&rev=129
2024-12-14 07:51:16 +01:00
#
# spec file for package rpcs3
#
# 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/
#
Name: rpcs3
Version: 0.0.34~git20241213
Release: 0
Summary: PS3 emulator/debugger
License: GPL-2.0-only
URL: https://rpcs3.net
Source0: %{name}-%{version}.tar.xz
Source1: intel-ittapi.tar.xz
Patch1: fix-test-files.patch
Patch2: fix-toolbar-color.patch
BuildRequires: gcc-c++
BuildRequires: llvm-devel >= 17
BuildRequires: cmake(x86-64) >= 3.14.1
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libedit)
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(yaml-cpp)
BuildRequires: pkgconfig(zlib)
#graphics backend dependencies:
#-------------------------------------------------
##opengl:
BuildRequires: pkgconfig(glew) >= 1.13.0
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(sdl2)
##vulkan:
BuildRequires: pkgconfig(vulkan) >= 1.1.126
#-------------------------------------------------
#audio backend dependencies:
#-------------------------------------------------
##alsa:
BuildRequires: pkgconfig(alsa)
##pulseaudio:
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(libpulse-simple)
##openal:
BuildRequires: pkgconfig(openal)
##faudio:
BuildRequires: pkgconfig(sdl2)
#-------------------------------------------------
#ffmpeg dependencies
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libswscale)
#qt dependencies
BuildRequires: pkgconfig(Qt6Concurrent)
BuildRequires: qt6-base-private-devel
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6DBus)
BuildRequires: pkgconfig(Qt6Multimedia)
BuildRequires: pkgconfig(Qt6MultimediaWidgets)
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6Qml)
BuildRequires: pkgconfig(Qt6Svg)
BuildRequires: pkgconfig(Qt6Widgets)
ExclusiveArch: x86_64
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
# Xbox One/Series controller wireless driver
Recommends: xpadneo
%description
An open-source PlayStation 3 emulator/debugger written in C++.
%prep
%autosetup -p1 -a 1
#Generate Version Strings
GIT_VERSION=$(echo %{version} | sed 's|.*git|git~|g')
echo "// This is a generated file.
#define RPCS3_GIT_VERSION \"$GIT_VERSION\"
#define RPCS3_GIT_BRANCH \"master\"
#define RPCS3_GIT_FULL_BRANCH \"RPCS3/rpcs3/master\"
// If you don't want this file to update/recompile, change to 1.
#define RPCS3_GIT_VERSION_NO_UPDATE 1
" > %{name}/git-version.h
%build
## llvm intel-ittapi workarounds
# Work around git revision issues
#sed -i -e 's:FATAL_ERROR:WARNING:g' llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt
# Fix paths
mv intel-ittapi ittapi && mkdir intel-ittapi && mv ittapi intel-ittapi/
export ITTAPI_DIR="$(pwd)/intel-ittapi"
mkdir ../%{name}_build
cd ../%{name}_build
# FIXME: you should use the %%cmake macros
%__cmake ../%{name}-%{version} \
-DITTAPI_SOURCE_DIR="${ITTAPI_DIR}" \
-DUSE_PCH=OFF \
-DENABLE_PCH=OFF \
-DSKIP_PRECOMPILE_HEADERS=ON \
-DUSE_PRECOMPILED_HEADERS=OFF \
-DUSE_SYSTEM_CURL=ON \
-DUSE_SYSTEM_FFMPEG=ON \
-DUSE_SYSTEM_LIBPNG=ON \
-DUSE_SYSTEM_LIBUSB=ON \
-DUSE_SYSTEM_SDL=ON \
-DUSE_SYSTEM_ZLIB=ON \
-DUSE_NATIVE_INSTRUCTIONS=OFF \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DCMAKE_INSTALL_LIBEXEC="%{_libexecdir}" \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_SKIP_RPATH="YES"
%make_jobs
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%install
cd ../%{name}_build
%make_install
%files
%doc README.md
%license LICENSE
%attr(755, root, root) %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/%{name}
%{_datadir}/metainfo/%{name}.metainfo.xml
%changelog