From 31db54450890d4c908800ebb1be369dcf60ee2fc2b62f82fefe94cc20eb1a17a Mon Sep 17 00:00:00 2001
From: Duarte Pousa <pousaduarte@gmail.com>
Date: Sat, 8 May 2021 20:43:18 +0000
Subject: [PATCH] Accepting request 888324 from home:iDesmI

- Update to version 0.0.15~git20210424
- Fixed and polished the build requirements

I tested this build result and haven't encountered issues.

OBS-URL: https://build.opensuse.org/request/show/888324
OBS-URL: https://build.opensuse.org/package/show/Emulators/rpcs3?expand=0&rev=32
---
 _service                         |  22 ++-
 _servicedata                     |   8 +-
 rpcs3-0.0.15~git20210307.tar.xz  |   3 -
 rpcs3-0.0.15~git20210424.obscpio |   3 +
 rpcs3.changes                    | 301 +++++++++++++++++++++++++++++++
 rpcs3.obsinfo                    |   5 +
 rpcs3.spec                       |  99 +++++-----
 7 files changed, 380 insertions(+), 61 deletions(-)
 delete mode 100644 rpcs3-0.0.15~git20210307.tar.xz
 create mode 100644 rpcs3-0.0.15~git20210424.obscpio
 create mode 100644 rpcs3.obsinfo

diff --git a/_service b/_service
index d1237e6..80e9f7d 100644
--- a/_service
+++ b/_service
@@ -1,15 +1,23 @@
 <services>  
-  <service name="tar_scm" mode="localonly">
+  <service name="obs_scm" mode="localonly">
     <param name="scm">git</param>
-    <param name="url">https://github.com/RPCS3/rpcs3.git</param>
+    <param name="url">git://github.com/RPCS3/rpcs3</param>
     <param name="filename">rpcs3</param>
     <param name="versionformat">@PARENT_TAG@~git%cd</param>
-    <param name="versionrewrite-pattern">v(.*)</param>
+    <param name="versionrewrite-pattern">v(.*)\-(.*)\-(.*)</param>
+    <param name="versionrewrite-replacement">\1\2\3</param>
     <param name="changesgenerate">enable</param>
-    <param name="exclude">ffmpeg</param>
-    <param name="exclude">wxWidgets</param>
+    <param name="exclude">*/ffmpeg/*</param>
+    <param name="exclude">*/3rdparty/curl/*</param>
+    <param name="exclude">*/3rdparty/libpng/*</param>
+    <param name="exclude">*/3rdparty/zlib/*</param>
+    <param name="exclude">*/3rdparty/XAudio2Redist/*</param>
+    <param name="exclude">*/wxWidgets/*</param>
+    <param name="exclude">*/.ci/*</param>
+    <param name="exclude">*.bat</param>
     <param name="exclude">*.cmd</param>
     <param name="exclude">*.dll</param>
+    <param name="exclude">*.vcproj</param>
     <param name="exclude">*.vcxproj</param>
     <param name="exclude">*.vcxproj.user</param>
     <param name="exclude">*.vcxproj.filters</param>
@@ -17,10 +25,12 @@
     <param name="exclude">*.props</param>
     <param name="exclude">*.sln</param>
   </service>
-    <service name="recompress" mode="localonly">
+  <service mode="buildtime" name="tar"/>
+  <service mode="buildtime" name="recompress">
     <param name="file">*.tar</param>
     <param name="compression">xz</param>
   </service>
   <service name="set_version" mode="localonly"/>
   <service name="download_files" mode="localonly"/>
 </services>
+
diff --git a/_servicedata b/_servicedata
index fa6c789..974d0c2 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,6 @@
 <servicedata>
-<service name="tar_scm">
-                <param name="url">https://github.com/RPCS3/rpcs3.git</param>
-              <param name="changesrevision">a3a4c0a9062ea9f5b708cd2d35647fb1698f2dc6</param></service></servicedata>
\ No newline at end of file
+  <service name="tar_scm">
+    <param name="url">git://github.com/RPCS3/rpcs3</param>
+    <param name="changesrevision">7197dd751a5049ab2cbfce232a5dc50a16a2411e</param>
+  </service>
+</servicedata>
\ No newline at end of file
diff --git a/rpcs3-0.0.15~git20210307.tar.xz b/rpcs3-0.0.15~git20210307.tar.xz
deleted file mode 100644
index df9d12b..0000000
--- a/rpcs3-0.0.15~git20210307.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0a6d4102112247134768671664602cb914fa35eac9756f326eb96d51d74db42b
-size 66337344
diff --git a/rpcs3-0.0.15~git20210424.obscpio b/rpcs3-0.0.15~git20210424.obscpio
new file mode 100644
index 0000000..6fb9207
--- /dev/null
+++ b/rpcs3-0.0.15~git20210424.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b37f12a618eec85d017ea2753fd039396111073497a70b1fcd06d3a8fe630d3a
+size 272373262
diff --git a/rpcs3.changes b/rpcs3.changes
index 0a06408..ae51514 100644
--- a/rpcs3.changes
+++ b/rpcs3.changes
@@ -1,3 +1,304 @@
+-------------------------------------------------------------------
+Sun Apr 25 05:40:39 UTC 2021 - idesmi@protonmail.com
+
+- Update to version 0.0.15~git20210424:
+  * Fcntl e0000025 (#10172)
+  * Mac OS build update and simplification, recent releases of macOS has clock_gettime support.
+  * Qt: fix window position of update dialog
+  * fix formatting (somehow broken by copy pasta)
+  * Move unspecific Emulator code out of System.cpp
+  * vk: Fix broken FBO swizzle for depth textures. WDB was basically broken for these.
+  * sys: more constants
+  * sys_prx: more constants
+  * Fix typo causing unreachable code
+  * some more constants
+
+-------------------------------------------------------------------
+Sat Apr 24 15:08:49 UTC 2021 - idesmi@protonmail.com
+
+- Update to version 0.0.15~git2021-04-24:
+  * Mac OS build update and simplification, recent releases of macOS has clock_gettime support.
+  * Qt: fix window position of update dialog
+  * fix formatting (somehow broken by copy pasta)
+  * Move unspecific Emulator code out of System.cpp
+  * vk: Fix broken FBO swizzle for depth textures. WDB was basically broken for these.
+  * sys: more constants
+  * sys_prx: more constants
+  * Fix typo causing unreachable code
+  * some more constants
+  * kernel-explorer: Show bound queue to port information
+
+-------------------------------------------------------------------
+Sat Apr 24 14:36:24 UTC 2021 - idesmi@protonmail.com
+
+- Update to version 0.0.15~git2021-04-24:
+  * Mac OS build update and simplification, recent releases of macOS has clock_gettime support.
+  * Qt: fix window position of update dialog
+  * fix formatting (somehow broken by copy pasta)
+  * Move unspecific Emulator code out of System.cpp
+  * vk: Fix broken FBO swizzle for depth textures. WDB was basically broken for these.
+  * sys: more constants
+  * sys_prx: more constants
+  * Fix typo causing unreachable code
+  * some more constants
+  * kernel-explorer: Show bound queue to port information
+  * Fix emulation restart
+
+-------------------------------------------------------------------
+Fri Apr 23 14:53:37 UTC 2021 - idesmi@protonmail.com
+
+- Update to version 0.0.15~git2021-04-23:
+  * Following up on MacOS build fix.
+  * Implement most of cellUserInfo
+  * named_thread: use concepts, improve constructors
+  * SPU LLVM: restore lost comment
+  * SPU LLVM: Absolute final fixes for icelake shufb paths - The constant mask was accessing bits in reverse order of what was expected
+  * SPU LLVM: Improve byteswap elimination - Use the data before it has been swapped rather than relying on a second byteswap to cancel out the first
+  * SPU LLVM: Remove icelake shufb paths for now
+  * moved cmake_modules to project root
+  * removed redundant cmake version check
+  * swap STREQUAL for MATCHES
+  * unified missmatched indentation in CMake files
+  * GUI: take out some unwise shortcuts
+  * SPU LLVM: Final fixup for icelake shufb paths - The cause of the problems was due to the constant mask for gf2p9affineqb being used as the first argument, instead of the second argument.
+  * overlays: hotfix for dialog interaction
+  * Input: avoid mouse events when unused
+  * Reduce precompilation failure log level (error -> notice)
+  * fix null chars in hostname log message
+  * Qt: Speed up Log Viewer
+  * Use requires syntax in more places
+  * Implement fill_array() utility
+  * MSVC: disable throwing new
+  * Qt: Fix initial gs_frame position on multi-monitor
+  * removed space between  and its opening parentheses
+  * FreeBSD/clang update proposal.
+  * MacOs build fix proposal. Made on Big Sur, removing few unnecessary old specifics. Build with LLVM homebrew.
+  * Add dev_flash2+3
+  * vm_native: document some unmap_critical behaviour (posix)
+  * vm_native: supply only one madvise flag at a time
+  * Qt: fix type mismatch crash of game grid items
+  * VM: FreeBSD c_madv_no_dump/dump constants support.
+  * bs_t<>: create BitSetEnum concept
+  * Fix condition for -Wno-attributes (regression)
+  * bs_t<>: fix/cleanup some operators
+  * replaced CMAKE_COMPILER_IS_GNUCXX with CMAKE_CXX_COMPILER_ID
+  * keyboard pads: release all keys on FocusOut event
+  * basic keyboard: release all keys on FocusOut event
+  * Replace simple_type with std::common_type
+  * Qt: unify some movie hover code and fix cellLeave
+  * overlays: fix dirty state of message dialog
+  * Qt: smoother scrolling in savedata manager
+  * Qt: remove uncritical deprecated notes and titles
+  * Qt: optimize game list repaint with new logic
+  * Qt: use gifs as icons on hover if available.
+  * SPU LLVM: add AVX-512 SPU verification - This is hidden behind a new setting, as some cpus may downclock agressively when executing 512 wide instructions
+  * fxo: add debug name to the typeinfo
+  * shared_ptr.hpp: use for fs::virtual_device
+  * Remove unnecessary default:breaks
+  * Skylander - Traptanium portal cleanup
+  * Skylander - Change portal version
+  * removed whitespace
+  * removed extra perentheses pair
+  * small collection of fixes
+  * lv2: Remove flags from IPC-supported objects
+  * Fix typo
+  * overlays: make auto-repeat buttons configurable
+  * overlays: implement OSK password mode
+  * overlays: fix osk placeholder
+  * misc: fix old some style casts and redundancies
+  * rsx: Handle rare rounding issue where position.w is very close to zero
+  * overlays: dynamically change dialog background
+  * Qt: Properly disable perfoverlay datapoint sliders
+  * Update BUILDING.md
+  *  added inline suggestion to patch_engine_version to prevent duplicate includes
+  * vk: Fix mip level packed pitch calculation
+  * rsx: Fix decompression of RB_RG textures.
+  * added pvs-studio artifacts to gitignore
+  * added inline suggestion to settings_location to prevent duplicate includes
+  * Minor fixups (removed unnecessary code)
+  * More random changes
+  * Cirrus warning fix
+  * Enforce backslash at the end of emulated drives paths
+  * Win32 FS: Improve fs::create_dir
+  * Implement "PPU LLVM Precompilation" control setting
+  * Cirrus build
+  * Qt: fix vfs dir remove button enabled state
+  * Log firmware after Emu was initialized
+  * Remove deprecated user management code
+  * Suggest adding RPCS3 to anti-virus whitelist on firmware/PKG installation failure
+  * Fix psf::load error for error::stream
+  * sceNp: fix rap file regression (#10084)
+  * Emu: some cleanup
+  * PSF: Fix string_view optimization
+  * Loader/cellGame: Do not crash on invalid PSF files
+  * Fix some warnings (deprecate enum arithmetics)
+  * shared_ptr.hpp: further fixes
+  * shared_ptr.hpp: minor optimization (GCC hotfix)
+  * DRM: Search all user directories for rap files
+  * Log error about HG games booted outside of /dev_hdd0
+  * Emulation: Fix boot path resolving
+  * Add -Werror=missing-noreturn (GCC, clang)
+  * shared_ptr.hpp: improve is_same_ptr<> trait
+  * Workaround: Skip progress_dialog during gameplay
+  * progress_dialog fixes
+  * moved build options to options.cmake
+  * vm: Flag names (refactoring)
+  * Update OpenSUSE dependencies
+  * core: Move IDM to FXO
+  * overlays: fix taskbar progress reset
+  * Fixup for progress dialog closing logic
+  * Minor progress dialog refactoring
+  * Fix some -Weffc++ warnings (part 2)
+  * Update commits
+  * Fix some typos
+  * hotfix: skip progr dialogs if msg dialogs are open
+  * Quick sys_sm_get_params implementation
+  * Implement _sys_prx_register_module loading imports/exports functionality
+  * Implement get_cellos_appname()
+  * Output all fatal log messages to Console/debugger as well
+  * Set userland firmware SPRX directory as the default PS3 decryption tool path
+  * cli: set user-id per command line
+  * Move system info to extra line
+  * debugger: Implement ability to pause entire emulation on breakpoint
+  * Fix #9879 and fix firmware confirmation dialog when auto-start is disabled
+  * Implement scoped_progress_dialog
+  * Fix some -Weffc++ warnings (part 1)
+  * Enable -Wdeprecated-copy
+  * Emu/overlay: ingame native overlay PPU compilation
+  * Qt: gs_frame position updates
+  * thread-pool: Fix default rounding mode
+  * rsx: Compile shaders when CELL is not running
+  * Fix Emulator::Stop race with IDM
+  * Emu: Do not obey auto-exit setting after creating firmware cache
+  * Fix Emulator::Pause race with IDM
+  * Fix Emulator::IsPaused()
+  * add AppIcon to fatal_error_dialog
+  * Get rid of non-LLVM build configurations (#10030)
+  * upgrade icons to a modern design
+  * Qt: Drop int for QT_SCALE_FACTOR_ROUNDING_POLICY
+  * Qt: Properly set QT_SCALE_FACTOR_ROUNDING_POLICY
+  * Qt: set find_dialog "next" button to default
+  * Qt: add option to hide the log prefix
+  * LLVM Clang-cl support and ninja build Also update the submodule
+  * Wording changes and tooltip fix for unsupported CPUs
+  * Qt: clean global cfg before adding custom cfgs
+  * Qt: don't show updater if booted with cli arg
+  * Scheduler overhaul
+  * Qt: Remove unused GUI entries when saving a config
+  * Qt: Fix debugger breakpoint deletion
+  * Qt: select target item in debugger list
+  * Qt: some cleanup in debugger
+  * Add and fix -Wredundant-decls (GCC)
+  * vm: fix reservation_update notification
+  * atomic.hpp: allow raw notify_all by pointer
+  * atomic.cpp: allow non-standard sizes in atomic wait (>16)
+  * atomic.cpp: remove raw_notify and simplify internal logic
+  * Add some warnings (GCC, clang)
+  * Improve ELF/Trophy loader's error checking
+  * debugger: Fix SPU memory viewing (#10007)
+  * VS: try to unbreak debug builds
+  * VS: fix release build
+  * Qt: prepare for removal of deprecated GUI settings
+  * VS: fix release Optimization
+  * VS: fix AdditionalIncludeDirectories
+  * Memory string searcher improvements
+  * Qt: Fix debugger step shortcuts
+  * Qt: Allow package installation through cli
+  * cfg: simplify get_nodes
+  * cfg: log unused config entries
+  * cfg: move get_name to _base
+  * Fix some minor shellcheck errors in github upload and windows build scripts
+  * Run shellcheck on all build scripts to ensure quality
+  * Make cli fw installation more foolproof
+  * Add command-line option to install firmware
+  * Fix NtSetTimerResolution in no-gui mode (Win32)
+  * Fix SPU mapped memory page size
+  * VS: move projects to 3rdParty
+  * GUI: Implement full extraction of PUP
+  * Improve firmware installation error handling
+  * Fix race in render_creator (#9939)
+  * cellSaveDataEnableOverlay
+  * Add commits
+  * Add supporters
+  * Rename and move g_tls_current_cpu_thread inside cpu_thread
+  * Fix sceNpTrophyGet(Trophy/Game)Icon
+  * Replace some log errors (#9980)
+  * Qt: make some scrollbars thicker.
+  * Implement lv2_mp_flag::cache
+  * Save all 8 syscall_args
+  * Fix sys_raw_spu_destroy
+  * Make gamedata installation atomic as real PS3
+  * PPU Debugger: Fixup for syscall arguments (#9932)
+  * Improve fs::container_stream::write (#9976)
+  * Qt: add bright arrows for tree views
+  * SPIRV: disable error on warnings
+  * Thread.cpp: Add missing newline
+  * sys_usbd: DJ Hero Turntable Emulation (#9965)
+  * Qt: dont scale small icons, deal with size instead
+  * Qt: Fix wide game icons (weird copy pasta error)
+  * Qt: Fix PaintedPixmap crash if icon is null
+  * workaround for clang compilation
+  * overlays: Fix aspect ratio of custom bakground images
+  * Qt: Fix game icon canvas size
+  * Qt: Import Custom Shader Loading Icons
+  * vk: Disable async streaming by default
+  * Enable -Wtautological-compare
+  * Enable -Wduplicated-cond (GCC)
+  * Enable -Wduplicated-branches (GCC)
+  * Continue fixing strict aliasing warnings
+  * SCE Decryption: Detect illegal RAP files
+  * GUI: Atomic RAP file installation
+  * GUI: Handle all PUP files in drag-and-drop
+  * GUI: Handle uppercase RAP file extension
+  * Qt: Fix square custom icons
+  * Qt: Option for Custom Icons
+  * Qt: Center Custom Icons
+  * Qt: Import Custom Icons
+  * Resolve minor typo 'verion'
+  * Fix sysutil_send_system_cmd at Emu.Stop()
+  * debugger: Fix PPU threads pausing
+  * Add asynchronous streaming to the GUI and auto-enable it
+  * vk: Check for uninitialized target before going into any scaling op
+  * vk: Solve GPU hang/reset due to waiting on events that are never signaled
+  * Basic fixups
+  * vk: Add options to system configuration
+  * vk: Add an alternate async queue scheduler
+  * vk: Tune event polling for higher throughput
+  * vk: Support new fxo usage pattern
+  * vk: Flip on async texture uploads
+  * vk: Optimization - avoid touching the mutex at all if possible even when there is no contention
+  * vk: Properly clean up async scheduler
+  * vk: Sync main pipe with async jobs if any
+  * vk: Lazy-initialize image resource on first use when owned by a separate queue
+  * vk: Add the async task scheduler
+  * Add information about unnamed/main threads in logs and fatal dialog
+  * Overlays: Implement individual pulse
+  * Loader: Log FNID of imported/exported functions
+  * Use maybe_unused macro for chip var
+  * Improve TAR loader (#9908)
+  * Fix std::bit_cast misuse
+  * Implement utils::bless (pointer cast)
+  * PPU interpreter hotfix
+  * Move code to cpp (#9938)
+  * Revert changes in BufferUtils.cpp
+  * Fixup write_gather (Linux, BSD)
+  * Add -Wnull-dereference (commented out)
+  * Workaround segfaults in Vulkan enumeration thread (#9935)
+  * Enable -Wstrict-aliasing=1 (GCC)
+  * Add -Wclobbered and -Wcast-function-type (no effect)
+  * Add/fix warning -Wignored-qualifiers (GCC/clang)
+  * Remove some redundant code
+  * fix colors for skyline (dark)
+  * fix colors for skyline (bright)
+  * fix debugger instr coloring
+  * make from_hdd0_game check lowercase
+  * Move sys_crashdump to it's own file and make it a module itself
+  * SPU LLVM: Rearange FM instruction for better performance - Doesn't eliminate any instructions, but allows for better out of order execution.
+  * Possible workaround for mobile Kepler chips
+  * patch_manager: expand first search results
+  * GUI: Implement MSELF extraction tool (#9909)
+  * Input/Qt: implement XInput battery level
+
 -------------------------------------------------------------------
 Sun Mar 07 00:15:59 UTC 2021 - pousaduarte@gmail.com
 
diff --git a/rpcs3.obsinfo b/rpcs3.obsinfo
new file mode 100644
index 0000000..79ad1d5
--- /dev/null
+++ b/rpcs3.obsinfo
@@ -0,0 +1,5 @@
+name: rpcs3
+version: 0.0.15~git20210424
+mtime: 1619289789
+commit: 7197dd751a5049ab2cbfce232a5dc50a16a2411e
+
diff --git a/rpcs3.spec b/rpcs3.spec
index 8aaae93..069c6f2 100644
--- a/rpcs3.spec
+++ b/rpcs3.spec
@@ -1,7 +1,7 @@
 #
-# spec file for package RPCS3
+# spec file for package rpcs3
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,78 +12,77 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           rpcs3
-Version:        0.0.15~git20210307
+Version:        0.0.15~git20210424
 Release:        0
 Summary:        PS3 emulator/debugger
-License:        GPL-2.0
-Url:            https://rpcs3.net/
+License:        GPL-2.0-only
+URL:            https://rpcs3.net
 Source0:        %{name}-%{version}.tar.xz
-ExclusiveArch:	x86_64
-
-BuildRequires:  gcc-c++
-
-BuildRequires:  cmake
-
+BuildRequires:  gcc-c++ >= 9
+BuildRequires:  cmake(x86-64) >= 3.14.1
+BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(libpng)
+BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(yaml-cpp)
+BuildRequires:  pkgconfig(zlib)
 BuildRequires:  pkgconfig(libevdev)
 BuildRequires:  pkgconfig(libudev)
-BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(libcurl)
+BuildRequires:  pkgconfig(libedit)
 BuildRequires:  -post-build-checks
 
 #graphics backend dependencies:
 #-------------------------------------------------
-#opengl:
-BuildRequires:  pkgconfig(glew)
+##opengl:
+BuildRequires:  pkgconfig(glew) >= 1.13.0
 BuildRequires:  pkgconfig(glu)
 
-#vulkan:
-BuildRequires:  vulkan-devel
+##vulkan:
+BuildRequires:  pkgconfig(vulkan) >= 1.1.126
 #-------------------------------------------------
 
 #audio backend dependencies:
 #-------------------------------------------------
-##faudio:
-BuildRequires:  pkgconfig(sdl2)
+##alsa:
+BuildRequires:  pkgconfig(alsa)
+
+##pulseaudio:
+BuildRequires:  pkgconfig(libpulse)
+BuildRequires:  pkgconfig(libpulse-mainloop-glib)
+BuildRequires:  pkgconfig(libpulse-simple)
 
 ##openal:
 BuildRequires:  pkgconfig(openal)
 
-##alsa:
-#BuildRequires:  pkgconfig(alsa)
-
-##pulseaudio:
-#BuildRequires:  pkgconfig(libpulse-simple)
+##faudio:
+BuildRequires:  pkgconfig(sdl2)
 #-------------------------------------------------
 
 #ffmpeg dependencies
 BuildRequires:  pkgconfig(libavcodec)
-BuildRequires:  pkgconfig(libswscale)
 BuildRequires:  pkgconfig(libavformat)
+BuildRequires:  pkgconfig(libavutil)
+BuildRequires:  pkgconfig(libswscale)
 
 #qt dependencies
-BuildRequires:  pkgconfig(Qt5Core)		>= 5.13
-BuildRequires:  pkgconfig(Qt5Widgets)	>= 5.13
-BuildRequires:  pkgconfig(Qt5DBus)		>= 5.13
-BuildRequires:  pkgconfig(Qt5Network)	>= 5.13
-BuildRequires:  pkgconfig(Qt5Qml) 	    >= 5.13
-BuildRequires:	libqt5-qtbase-private-headers-devel >= 5.13
+BuildRequires:  pkgconfig(Qt5Concurrent) >= 5.15.2
+BuildRequires:  pkgconfig(Qt5Core) >= 5.15.2
+BuildRequires:  pkgconfig(Qt5DBus) >= 5.15.2
+BuildRequires:  pkgconfig(Qt5Network) >= 5.15.2
+BuildRequires:  pkgconfig(Qt5Qml) >= 5.15.2
+BuildRequires:  pkgconfig(Qt5Widgets) >= 5.15.2
+BuildRequires:  libqt5-qtbase-private-headers-devel >= 5.15.2
 
-#LLVM dependencies
-#BuildRequires:  llvm4-devel
-#BuildRequires:  libLLVM4
-
-
-Requires(post):     hicolor-icon-theme
-Requires(postun):   hicolor-icon-theme
-Requires(post):     update-desktop-files
-Requires(postun):   update-desktop-files
+Requires(post): hicolor-icon-theme
+Requires(post): update-desktop-files
+Requires(postun): hicolor-icon-theme
+Requires(postun): update-desktop-files
+ExclusiveArch:  x86_64
 
 %description
 An open-source PlayStation 3 emulator/debugger written in C++.
@@ -109,19 +108,22 @@ echo "// This is a generated file.
 
 mkdir ../%{name}_build
 cd ../%{name}_build
-cmake ../%{name}-%{version} \
-        -DUSE_PCH=OFF -DENABLE_PCH=OFF \
-        -DENABLE_PRECOMPILED_HEADERS=OFF \
-        -DSKIP_PRECOMPILE_HEADERS=ON \
-        -DUSE_PRECOMPILED_HEADERS=OFF \
+# FIXME: you should use the %%cmake macros
+%__cmake ../%{name}-%{version} \
+        -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="OFF" \
+        -DUSE_SYSTEM_LIBPNG="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
@@ -137,7 +139,6 @@ cd ../%{name}_build
 %make_install
 
 %files
-%defattr(-,root,root)
 %doc README.md
 %license LICENSE
 
@@ -153,6 +154,6 @@ cd ../%{name}_build
 %exclude %{_bindir}/llvm-tblgen
 %exclude %{_bindir}/xxhsum
 %exclude %{_libdir}/libxxhash.a
-%exclude %{_datadir}/man/man1/xxhsum.1.gz
+%exclude %{_mandir}/man1/xxhsum.1.gz
 
 %changelog