|
|
|
|
@ -1,8 +1,13 @@
|
|
|
|
|
# SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
|
# SPDX-FileCopyrightText: 2019-2025 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
|
# SPDX-License-Identifier: CC-BY-NC-ND-4.0
|
|
|
|
|
|
|
|
|
|
# NOTE: These package files are intended for your own personal/private use.
|
|
|
|
|
# You do not have permission to upload them independently to other package repositories.
|
|
|
|
|
#
|
|
|
|
|
# To build:
|
|
|
|
|
# git clone https://github.com/stenzek/duckstation.git
|
|
|
|
|
# rpmbuild -bb scripts/packaging/fedora/duckstation.spec
|
|
|
|
|
# sudo rpm -ivh ~/rpmbuild/RPMS/duckstation-*.rpm
|
|
|
|
|
|
|
|
|
|
Name: duckstation
|
|
|
|
|
Version: 0.0.0
|
|
|
|
|
@ -14,7 +19,7 @@ BuildRequires: alsa-lib-devel, clang, cmake, dbus-devel, egl-wayland-devel, extr
|
|
|
|
|
BuildRequires: extra-cmake-modules, freetype-devel, libavcodec-free-devel, libavformat-free-devel
|
|
|
|
|
BuildRequires: libavutil-free-devel, libcurl-devel, libevdev-devel, libswresample-free-devel
|
|
|
|
|
BuildRequires: libswscale-free-devel, libpng-devel, libwebp-devel, libX11-devel, libXrandr-devel
|
|
|
|
|
BuildRequires: libzip-devel, libzstd-devel, lld, llvm, make, mesa-libEGL-devel, mesa-libGL-devel
|
|
|
|
|
BuildRequires: libzip-devel, libzip-tools, libzstd-devel, lld, llvm, make, mesa-libEGL-devel, mesa-libGL-devel
|
|
|
|
|
BuildRequires: ninja-build, patch, pipewire-devel pulseaudio-libs-devel, wayland-devel, zlib-devel
|
|
|
|
|
BuildRequires: qt6-qtbase-devel, qt6-qtbase-private-devel, qt6-qttools, qt6-qttools-devel
|
|
|
|
|
|
|
|
|
|
@ -28,7 +33,7 @@ Requires: qt6-qtbase qt6-qtbase-gui qt6-qtimageformats qt6-qtsvg
|
|
|
|
|
%undefine _include_frame_pointers
|
|
|
|
|
|
|
|
|
|
# Defines -O2, -flto, and others. We manage LTO ourselves.
|
|
|
|
|
%global _general_options "-O2" "-pipe"
|
|
|
|
|
%global _general_options "-O3" "-pipe"
|
|
|
|
|
%global _preprocessor_defines ""
|
|
|
|
|
|
|
|
|
|
# We include debug information in the main package for user backtrace reporting.
|
|
|
|
|
@ -44,6 +49,8 @@ DuckStation is an simulator/emulator of the Sony PlayStation(TM) console, focusi
|
|
|
|
|
%prep
|
|
|
|
|
%setup -n duckstation -c -T
|
|
|
|
|
git clone file://%{SOURCEURL0} .
|
|
|
|
|
curl -L -o "data/resources/cheats.zip" "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
|
|
|
|
|
curl -L -o "data/resources/patches.zip" "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
|
|
|
|
|
if [ -f "%{SOURCEURL0}/src/scmversion/tag.h" ]; then
|
|
|
|
|
echo "Copying SCM release tag..."
|
|
|
|
|
cp "%{SOURCEURL0}/src/scmversion/tag.h" src/scmversion
|
|
|
|
|
|