Accepting request 430443 from home:xenonpk:branches:home:X0F:branches:Emulators
Update to latest git revision (1.3) Updated .changes file OBS-URL: https://build.opensuse.org/request/show/430443 OBS-URL: https://build.opensuse.org/package/show/Emulators/ppsspp?expand=0&rev=2
This commit is contained in:
parent
4f106f5171
commit
e0b4f51176
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/hrydgard/ppsspp.git</param>
|
||||||
|
<param name="filename">ppsspp</param>
|
||||||
|
<param name="revision">v1.3</param>
|
||||||
|
<param name="versionprefix">1.3</param>
|
||||||
|
<param name="versionformat">%ci</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version"/>
|
||||||
|
</services>
|
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:90f9803f19fff212441e42ac4213ad018a2483c0ee8b63a80e39bc630245c26e
|
||||||
|
size 99612312
|
108
_service:set_version:ppsspp.spec
Normal file
108
_service:set_version:ppsspp.spec
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
#
|
||||||
|
# spec file for package ppsspp
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define debug_package %{nil}
|
||||||
|
Name: ppsspp
|
||||||
|
Version: 1.3.20160917T152231
|
||||||
|
Release: 0
|
||||||
|
Summary: PlayStation Portable Emulator
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: System/Emulators/Other
|
||||||
|
Url: ppsspp.org
|
||||||
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Patch0: disable-buildtime-git-version-creation.patch
|
||||||
|
BuildRequires: Mesa-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: hicolor-icon-theme
|
||||||
|
BuildRequires: libqt5-qttools-devel
|
||||||
|
BuildRequires: libzip-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: snappy-devel
|
||||||
|
BuildRequires: unzip
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
||||||
|
BuildRequires: pkgconfig(libavcodec)
|
||||||
|
BuildRequires: pkgconfig(sdl2)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# give PPSSPP a clue about lrelease
|
||||||
|
sed -i -e '/LREL_TOOL/s:lrelease$:lrelease-qt5:g' Qt/PPSSPP.pro
|
||||||
|
%patch0 -p1
|
||||||
|
#%patch1 -p1
|
||||||
|
echo "// This is a generated file.
|
||||||
|
|
||||||
|
const char *PPSSPP_GIT_VERSION = \"%{version}\";
|
||||||
|
|
||||||
|
// If you don't want this file to update/recompile, change to 1.
|
||||||
|
#define PPSSPP_GIT_VERSION_NO_UPDATE 1
|
||||||
|
" > git-version.cpp
|
||||||
|
|
||||||
|
# try to force usage of system libraries
|
||||||
|
#rm -rf ext/zlib
|
||||||
|
#rm -rf ext/snappy
|
||||||
|
#rm -rf native/ext/libzip
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
%qmake5 \
|
||||||
|
QMAKE_CFLAGS="%{optflags} ${CFLAGS}" \
|
||||||
|
QMAKE_CXXFLAGS="%{optflags} ${CXXFLAGS}" \
|
||||||
|
'CONFIG+=release' \
|
||||||
|
../Qt/PPSSPPQt.pro
|
||||||
|
%make_jobs
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -D -p -m 755 build/ppsspp %{buildroot}%{_bindir}/ppsspp
|
||||||
|
|
||||||
|
for icon in assets/unix-icons/hicolor/*/*/*.png; do
|
||||||
|
install -D -p -m 644 "${icon}" \
|
||||||
|
"%{buildroot}%{_datadir}/icons/${icon#assets/unix-icons}"
|
||||||
|
done
|
||||||
|
|
||||||
|
%suse_update_desktop_file -c %{name} PPSSPP 'PSP Emulator' %{name} %{name} System Emulator
|
||||||
|
|
||||||
|
%post
|
||||||
|
%desktop_database_post
|
||||||
|
%icon_theme_cache_post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%desktop_database_postun
|
||||||
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.md LICENSE.TXT
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%dir %{_datadir}/icons/hicolor/512x512
|
||||||
|
%dir %{_datadir}/icons/hicolor/512x512/apps
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
||||||
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
|
%changelog
|
4
_service:tar_scm:_servicedata
Normal file
4
_service:tar_scm:_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/hrydgard/ppsspp.git</param>
|
||||||
|
<param name="changesrevision">6d0d36bf914a3f5373627a362d65facdcfbbfe5f</param></service></servicedata>
|
19
_service:tar_scm:ppsspp.changes
Normal file
19
_service:tar_scm:ppsspp.changes
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 26 14:19:49 UTC 2016 - opensuse-packaging@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 1.3.20160917T152231:
|
||||||
|
* Make the last commit slightly safer by adding a mutex
|
||||||
|
* Determine alpha test texture after texture.
|
||||||
|
* Use safest alpha status in texture replace.
|
||||||
|
* Revert "ARM64 icache flush: Don't bother with the minimum cache line size, just use the current."
|
||||||
|
* Be completely safe on Exynos even if future OS:es start running the big and LITTLE cores simultaneously (don't know if they already do)
|
||||||
|
* Update lang
|
||||||
|
* Update chinese.txt korean.txt (learning files for font atlas)
|
||||||
|
* Update font atlas with the latest Chinese chars used
|
||||||
|
* Update version to 1.3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 26 14:54 UTC 2016 - pousaduarte@gmail.com
|
||||||
|
|
||||||
|
- Update to latest git snapshot
|
||||||
|
* use qt build
|
19
disable-buildtime-git-version-creation.patch
Normal file
19
disable-buildtime-git-version-creation.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
*** old/CMakeLists.txt 2014-01-08 14:10:40.035843263 +0530
|
||||||
|
--- new/CMakeLists.txt 2014-01-08 14:11:30.987970363 +0530
|
||||||
|
*************** setup_target_project(${CoreLibName} Core
|
||||||
|
*** 1169,1175 ****
|
||||||
|
|
||||||
|
# Generate git-version.cpp at build time.
|
||||||
|
add_custom_target(GitVersion ALL
|
||||||
|
! DEPENDS something_that_never_exists)
|
||||||
|
add_custom_command(OUTPUT something_that_never_exists
|
||||||
|
COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake)
|
||||||
|
--- 1169,1175 ----
|
||||||
|
|
||||||
|
# Generate git-version.cpp at build time.
|
||||||
|
add_custom_target(GitVersion ALL
|
||||||
|
! ) # DEPENDS something_that_never_exists)
|
||||||
|
add_custom_command(OUTPUT something_that_never_exists
|
||||||
|
COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake)
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bfaf48e2cf0fe5574c9ac2e6508430f36407c813ab179ded45ef9a428f2c0fc0
|
|
||||||
size 79011190
|
|
@ -1,77 +0,0 @@
|
|||||||
#
|
|
||||||
# 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
|
|
5
ppsspp.changes
Normal file
5
ppsspp.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 26 14:54 UTC 2016 - pousaduarte@gmail.com
|
||||||
|
|
||||||
|
- Update to latest git snapshot
|
||||||
|
* use qt build
|
@ -1,14 +0,0 @@
|
|||||||
[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
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:031e277ddf7d39b8d7a82bc8f5f35e9329bcdc4608ddc2dbf301ed95eb6fdc3e
|
|
||||||
size 13123
|
|
108
ppsspp.spec
Normal file
108
ppsspp.spec
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
#
|
||||||
|
# spec file for package ppsspp
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define debug_package %{nil}
|
||||||
|
Name: ppsspp
|
||||||
|
Version: 1.3+git
|
||||||
|
Release: 0
|
||||||
|
Summary: PlayStation Portable Emulator
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: System/Emulators/Other
|
||||||
|
Url: ppsspp.org
|
||||||
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Patch0: disable-buildtime-git-version-creation.patch
|
||||||
|
BuildRequires: Mesa-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: hicolor-icon-theme
|
||||||
|
BuildRequires: libqt5-qttools-devel
|
||||||
|
BuildRequires: libzip-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: snappy-devel
|
||||||
|
BuildRequires: unzip
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
||||||
|
BuildRequires: pkgconfig(libavcodec)
|
||||||
|
BuildRequires: pkgconfig(sdl2)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# give PPSSPP a clue about lrelease
|
||||||
|
sed -i -e '/LREL_TOOL/s:lrelease$:lrelease-qt5:g' Qt/PPSSPP.pro
|
||||||
|
%patch0 -p1
|
||||||
|
#%patch1 -p1
|
||||||
|
echo "// This is a generated file.
|
||||||
|
|
||||||
|
const char *PPSSPP_GIT_VERSION = \"%{version}\";
|
||||||
|
|
||||||
|
// If you don't want this file to update/recompile, change to 1.
|
||||||
|
#define PPSSPP_GIT_VERSION_NO_UPDATE 1
|
||||||
|
" > git-version.cpp
|
||||||
|
|
||||||
|
# try to force usage of system libraries
|
||||||
|
#rm -rf ext/zlib
|
||||||
|
#rm -rf ext/snappy
|
||||||
|
#rm -rf native/ext/libzip
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
%qmake5 \
|
||||||
|
QMAKE_CFLAGS="%{optflags} ${CFLAGS}" \
|
||||||
|
QMAKE_CXXFLAGS="%{optflags} ${CXXFLAGS}" \
|
||||||
|
'CONFIG+=release' \
|
||||||
|
../Qt/PPSSPPQt.pro
|
||||||
|
%make_jobs
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -D -p -m 755 build/ppsspp %{buildroot}%{_bindir}/ppsspp
|
||||||
|
|
||||||
|
for icon in assets/unix-icons/hicolor/*/*/*.png; do
|
||||||
|
install -D -p -m 644 "${icon}" \
|
||||||
|
"%{buildroot}%{_datadir}/icons/${icon#assets/unix-icons}"
|
||||||
|
done
|
||||||
|
|
||||||
|
%suse_update_desktop_file -c %{name} PPSSPP 'PSP Emulator' %{name} %{name} System Emulator
|
||||||
|
|
||||||
|
%post
|
||||||
|
%desktop_database_post
|
||||||
|
%icon_theme_cache_post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%desktop_database_postun
|
||||||
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.md LICENSE.TXT
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%dir %{_datadir}/icons/hicolor/512x512
|
||||||
|
%dir %{_datadir}/icons/hicolor/512x512/apps
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
||||||
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user