diff --git a/_service b/_service new file mode 100644 index 0000000..fc1cb2c --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git + https://github.com/hrydgard/ppsspp.git + ppsspp + v1.3 + 1.3 + %ci + enable + + + *.tar + xz + + + diff --git a/_service:recompress:tar_scm:ppsspp-1.3.20160917T152231.tar.xz b/_service:recompress:tar_scm:ppsspp-1.3.20160917T152231.tar.xz new file mode 100644 index 0000000..837acc7 --- /dev/null +++ b/_service:recompress:tar_scm:ppsspp-1.3.20160917T152231.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90f9803f19fff212441e42ac4213ad018a2483c0ee8b63a80e39bc630245c26e +size 99612312 diff --git a/_service:set_version:ppsspp.spec b/_service:set_version:ppsspp.spec new file mode 100644 index 0000000..9368a7f --- /dev/null +++ b/_service:set_version:ppsspp.spec @@ -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 diff --git a/_service:tar_scm:_servicedata b/_service:tar_scm:_servicedata new file mode 100644 index 0000000..ec3b527 --- /dev/null +++ b/_service:tar_scm:_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/hrydgard/ppsspp.git + 6d0d36bf914a3f5373627a362d65facdcfbbfe5f \ No newline at end of file diff --git a/_service:tar_scm:ppsspp.changes b/_service:tar_scm:ppsspp.changes new file mode 100644 index 0000000..8cb1859 --- /dev/null +++ b/_service:tar_scm:ppsspp.changes @@ -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 diff --git a/disable-buildtime-git-version-creation.patch b/disable-buildtime-git-version-creation.patch new file mode 100644 index 0000000..051c706 --- /dev/null +++ b/disable-buildtime-git-version-creation.patch @@ -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) diff --git a/ppsspp-git-20130427.tar.gz b/ppsspp-git-20130427.tar.gz deleted file mode 100644 index e136e66..0000000 --- a/ppsspp-git-20130427.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bfaf48e2cf0fe5574c9ac2e6508430f36407c813ab179ded45ef9a428f2c0fc0 -size 79011190 diff --git a/ppsspp-git.spec b/ppsspp-git.spec deleted file mode 100644 index 7e9a314..0000000 --- a/ppsspp-git.spec +++ /dev/null @@ -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 - 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.changes b/ppsspp.changes new file mode 100644 index 0000000..313ef15 --- /dev/null +++ b/ppsspp.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Sep 26 14:54 UTC 2016 - pousaduarte@gmail.com + +- Update to latest git snapshot + * use qt build diff --git a/ppsspp.desktop b/ppsspp.desktop deleted file mode 100644 index 6c5e5ea..0000000 --- a/ppsspp.desktop +++ /dev/null @@ -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 diff --git a/ppsspp.png b/ppsspp.png deleted file mode 100644 index 6980b0f..0000000 --- a/ppsspp.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:031e277ddf7d39b8d7a82bc8f5f35e9329bcdc4608ddc2dbf301ed95eb6fdc3e -size 13123 diff --git a/ppsspp.sh b/ppsspp.sh deleted file mode 100644 index 2138846..0000000 --- a/ppsspp.sh +++ /dev/null @@ -1,4 +0,0 @@ -#/bin/bash - -cd /usr/share/ppsspp -/usr/bin/PPSSPPSDL "$@" diff --git a/ppsspp.spec b/ppsspp.spec new file mode 100644 index 0000000..edf5dec --- /dev/null +++ b/ppsspp.spec @@ -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