ppsspp/ppsspp-git.spec

78 lines
2.6 KiB
RPMSpec

#
# 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 <dvlara@gmail.com> - 20130427-2
- Fixed copy files to share directory
* Fri Apr 26 2013 David Lara <dvlara@gmail.com> - 20130427-1
- First release for openSUSE 12.x
- Based on AUR package by Clement Guerin