commit 4f106f5171453a1d3990ff236f155e0ed413120a6565fb9c565b1590f2f7b054 Author: Marcus Meissner Date: Mon Jul 29 07:55:41 2013 +0000 Accepting request 183035 from home:dvlara PSP emulator. OBS-URL: https://build.opensuse.org/request/show/183035 OBS-URL: https://build.opensuse.org/package/show/Emulators/ppsspp?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ppsspp-git-20130427.tar.gz b/ppsspp-git-20130427.tar.gz new file mode 100644 index 0000000..e136e66 --- /dev/null +++ b/ppsspp-git-20130427.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfaf48e2cf0fe5574c9ac2e6508430f36407c813ab179ded45ef9a428f2c0fc0 +size 79011190 diff --git a/ppsspp-git.spec b/ppsspp-git.spec new file mode 100644 index 0000000..7e9a314 --- /dev/null +++ b/ppsspp-git.spec @@ -0,0 +1,77 @@ +# +# spec file for package +# +# Copyright (c) 2013 SUSE LINUX Products 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: ppsspp-git +Version: 20130427 +Release: 1 +License: GPL-2.0 +Summary: PSP emulator written in C++ +Url: http://www.ppsspp.org +Group: System/Emulators/Other +Source: %{name}-%{version}.tar.gz +Source1: ppsspp.desktop +Source2: ppsspp.sh +Source3: ppsspp.png +BuildRequires: gcc gcc-c++ libSDL-devel cmake zlib-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +PPSSPP is a PSP emulator written in C++, and translates PSP CPU instructions directly into optimized x86, x64 and ARM machine code, using JIT recompilers (dynarecs). + +PPSSPP can thus run on quite low-spec hardware, including stronger ARM-based phones and tablets, as long as there's support for OpenGL ES 2.0. + +This package contains a GIT snapshot. Updated frequently. + +%prep +%setup -q -n %{name} + +%build +mkdir build +cd build +cmake .. +make %{?_smp_mflags} + +%install +mkdir -p $RPM_BUILD_ROOT/usr/bin +install -m 755 -D build/PPSSPPSDL $RPM_BUILD_ROOT/usr/bin/ +install -m 755 -D build/PPSSPPHeadless $RPM_BUILD_ROOT/usr/bin/ +install -m 755 -D %{SOURCE2} $RPM_BUILD_ROOT/usr/bin +mkdir -p $RPM_BUILD_ROOT/usr/share/ppsspp/assets +cp -r build/assets/* $RPM_BUILD_ROOT/usr/share/ppsspp/assets +mkdir -p $RPM_BUILD_ROOT/usr/share/applications +install -m 444 -D %{SOURCE1} $RPM_BUILD_ROOT/usr/share/applications +mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps +install -m 444 -D %{SOURCE3} $RPM_BUILD_ROOT/usr/share/pixmaps + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files +%defattr(-,root,root) +/usr/bin/PPSSPPSDL +/usr/bin/PPSSPPHeadless +%attr(555,root,root)/usr/bin/ppsspp.sh +/usr/share/ppsspp +/usr/share/pixmaps/ppsspp.png +%attr(644,root,root)/usr/share/applications/ppsspp.desktop + +%changelog +* Sat Apr 27 2013 David Lara - 20130427-2 +- Fixed copy files to share directory +* Fri Apr 26 2013 David Lara - 20130427-1 +- First release for openSUSE 12.x +- Based on AUR package by Clement Guerin diff --git a/ppsspp.desktop b/ppsspp.desktop new file mode 100644 index 0000000..6c5e5ea --- /dev/null +++ b/ppsspp.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +X-SuSE-translate=true +Categories=Application;Game;ArcadeGame; +Encoding=UTF-8 +Name=PPSSPP +Name[es]=PPSSPP +GenericName=PPSSPP +Comment=PSP Emulator +Comment[es]=Emulador consola PSP +Exec=/usr/bin/ppsspp.sh +Icon=ppsspp +Terminal=false +StartupNotify=false +Type=Application diff --git a/ppsspp.png b/ppsspp.png new file mode 100644 index 0000000..6980b0f --- /dev/null +++ b/ppsspp.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:031e277ddf7d39b8d7a82bc8f5f35e9329bcdc4608ddc2dbf301ed95eb6fdc3e +size 13123 diff --git a/ppsspp.sh b/ppsspp.sh new file mode 100644 index 0000000..2138846 --- /dev/null +++ b/ppsspp.sh @@ -0,0 +1,4 @@ +#/bin/bash + +cd /usr/share/ppsspp +/usr/bin/PPSSPPSDL "$@"