rpcs3/rpcs3.spec
Klaus Kämpf 7533b94fde Accepting request 585456 from home:xenonpk
- Update to version 0.0.5~git20180309:
  * ppu/sys_interrupt: add stack_reset command to fix sys_interrupt stack overflowing
  * rsx: Fix alpha test on VK/GL Moving alpha test outside of fp_main. This enforces alpha test is still done even if shader asm has early return
- Update to version 0.0.5~git20180307:
  * rsx: add vertex data base to offset and mask before translating address
- Update to version 0.0.5~git20180306:
  * Update Vulkan-LoadAndValidationLayers to make CI work again
- Update to version 0.0.5~git20180305:
  * gui/themes: YoRHa by Ani - Bugfixes
  * gui: Fix typos and clean up Engrish (#4250)
- Update to version 0.0.5~git20180303:
  * cellGame: Fix cellDiscGameGetBootDiscInfo return values (#4241)
  * Qt: enable background images for floating dock widgets
  * [HLE] First steps to Playstation Move (#4083)
- Update to version 0.0.5~git20180301:
  * Fix boot game crash
  * Improve TTY output
  * Optimize SPU interpreter
  * CPUTranslator: implement ICmp ops
- Update to version 0.0.5~git20180301:
  * Qt: fix dockwidget background
- Update to version 0.0.5~git20180301:
  * gui/themes: YoRHa by Ani
  * Add 2-channels mode for cellAudioOutGetDeviceInfo
  * Change return of function "sceNpMatching2Init" to CELL_OK
  * Fix Boot regression introduced by #4158
  * Qt: enable custom fonts for stylesheets and add random object names
  * Make cellNetCtlGetInfo returns the correct value in disconnected mode
  * spu/interp: optimize floating point exception checking
  * Qt: ask for cache and config removal on app remove (#4016)
  * Improve GDB debug server (#4027)
  * Qt: simplify Boot options a bit (#4158)
- Update to version 0.0.5~git20180228:
  * Fix firmware installation for vfs
  * Qt: remove gamelist toolbar
  * Add callbacks for cellStorage
  * Add callbacks for cellUserInfo
  * Add callbacks for cellPhotoImport
  * Add callbacks for cellSysconf
  * Add callbacks for cellCrossController
  * Add callbacks for cellPrint
  * Add callbacks for cellPhotoDecode
  * Add callbacks for cellMusicExport
  * Add callbacks for cellMusicDecode
  * Refactor .travis.yml and qt installation

OBS-URL: https://build.opensuse.org/request/show/585456
OBS-URL: https://build.opensuse.org/package/show/Emulators/rpcs3?expand=0&rev=17
2018-03-12 08:58:10 +00:00

134 lines
3.5 KiB
RPMSpec

#
# spec file for package RPCS3
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: rpcs3
Version: 0.0.5~git20180309
Release: 0
Summary: PS3 emulator/debugger
License: GPL-2.0
Url: https://rpcs3.net/
Source0: %{name}-%{version}.tar.xz
ExclusiveArch: x86_64
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(yaml-cpp)
BuildRequires: pkgconfig(libudev)
BuildRequires: vulkan-devel
BuildRequires: -post-build-checks
#ffmpeg deps
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(libavformat)
#qt deps
BuildRequires: pkgconfig(Qt5Core) >= 5.8
BuildRequires: pkgconfig(Qt5Widgets) >= 5.8
BuildRequires: pkgconfig(Qt5DBus) >= 5.8
BuildRequires: pkgconfig(Qt5Network) >= 5.8
#LLVM deps
#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
%description
An open-source PlayStation 3 emulator/debugger written in C++.
%prep
%setup -q
#Force Link with shared LLVM libs
#-e 's|llvm_map_components_to_libnames(LLVM_LIBS .*)|set(LLVM_LIBS LLVM)|g' \
sed -i \
-e 's|Qt5 5.[0-9]\+|Qt5|g' \
-e 's|-march=native|-msse -msse2 -mcx16 -mrtm|g' \
%{name}/CMakeLists.txt
#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\"
// 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
mkdir ../%{name}_build
cd ../%{name}_build
cmake ../%{name}-%{version} \
-DUSE_SYSTEM_FFMPEG="ON" \
-DUSE_SYSTEM_LIBPNG="ON" \
-DUSE_NATIVE_INSTRUCTIONS="OFF" \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DCMAKE_INSTALL_LIBEXEC="%{_libexecdir}" \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_SKIP_RPATH="YES" \
-DCMAKE_C_FLAGS="%{optflags} -fno-pie" \
-DCMAKE_CXX_FLAGS="%{optflags} -fno-pie"
%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
%defattr(-,root,root)
%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}
%exclude %{_libexecdir}
%exclude %{_includedir}
%exclude %{_bindir}/llvm-tblgen
%changelog