commit 0710f267ac350f8fe9ecd285de5472f40410571aedf34f9d0a4c8983f8650bae Author: Klaus Kämpf Date: Fri Jul 7 06:17:09 2017 +0000 Accepting request 508583 from home:itxaka:branches:Emulators Add retroarch package OBS-URL: https://build.opensuse.org/request/show/508583 OBS-URL: https://build.opensuse.org/package/show/Emulators/retroarch?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/_service b/_service new file mode 100644 index 0000000..bcd828b --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + git + https://github.com/libretro/RetroArch.git + retroarch + @PARENT_TAG@~git%cd + v(.*) + enable + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..67ffabe --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/libretro/RetroArch.git + 6ad1a5cc8f9a5169094dc825e3d268e45ecc7230 \ No newline at end of file diff --git a/retroarch-1.6.1~git20170706.tar.xz b/retroarch-1.6.1~git20170706.tar.xz new file mode 100644 index 0000000..ec3c348 --- /dev/null +++ b/retroarch-1.6.1~git20170706.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d197cd72f77af9b9dfa5107ba844571535ffed4337cdc1836a0b9e6663fb22e8 +size 12582692 diff --git a/retroarch.changes b/retroarch.changes new file mode 100644 index 0000000..b159451 --- /dev/null +++ b/retroarch.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jul 6 13:32:31 UTC 2017 - igarcia@suse.com + +- Add version 1.6.1 diff --git a/retroarch.desktop b/retroarch.desktop new file mode 100644 index 0000000..7177ee5 --- /dev/null +++ b/retroarch.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=RetroArch +Comment=A modular multi-system emulator system +Type=Application +Exec=retroarch +Icon=retroarch +Terminal=false +Categories=Game;Emulator; diff --git a/retroarch.spec b/retroarch.spec new file mode 100644 index 0000000..6449f6d --- /dev/null +++ b/retroarch.spec @@ -0,0 +1,142 @@ +# +# spec file for package retroarch +# +# Copyright (c) 2017 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: retroarch +Version: 1.6.1~git20170706 +Release: 0 +Summary: Emulator frontend +License: GPL-3.0 +Url: http://www.retroarch.com +Group: Emulators +Source0: %{name}-%{version}.tar.xz +Source9: %{name}.desktop +BuildRequires: gcc-c++ +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(gbm) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xinerama) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xv) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(libass) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(libv4l2) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(jack) +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(openal) +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(SDL2_gfx) +BuildRequires: pkgconfig(SDL2_image) +BuildRequires: pkgconfig(SDL2_mixer) +BuildRequires: pkgconfig(SDL2_net) +BuildRequires: pkgconfig(SDL2_ttf) +BuildRequires: pkgconfig(zlib) +BuildRequires: python3-devel +BuildRequires: systemd-devel +BuildRequires: unzip p7zip + +%if ( 0%{?suse_version} || 0%{?leap_version} ) +BuildRequires: pkgconfig(libavcodec) +BuildRequires: pkgconfig(libavdevice) +BuildRequires: pkgconfig(libavformat) +BuildRequires: pkgconfig(libavutil) +BuildRequires: pkgconfig(libswscale) +BuildRequires: update-desktop-files +BuildRequires: vulkan-devel +%endif + +%description +RetroArch is a modular multi-system emulator system that is designed to be +fast, lightweight, and portable. It has features few other emulators frontends +have, such as real-time rewinding and game-aware shading. + +%prep +%setup -q -n %{name}-%{version} + +%build +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$CFLAGS" +./configure --prefix=%{_prefix} \ + --enable-materialui \ + --enable-xmb \ + --enable-sdl2 \ + --enable-libusb \ + --enable-udev \ + --with-man_dir=%{_mandir} \ + --enable-threads \ + --enable-thread_storage \ + --enable-ffmpeg \ + --enable-ssa \ + --enable-dylib \ + --enable-networking \ + --enable-networkgamepad \ + --enable-opengl \ + --enable-x11 \ + --enable-xinerama\ + --enable-kms \ + --enable-wayland \ + --enable-egl \ + --enable-libxml2 \ + --enable-zlib \ + --enable-fbo \ + --enable-alsa \ + --enable-al \ + --enable-jack \ + --enable-pulse \ + --enable-freetype \ + --enable-xvideo \ + --enable-python \ + --enable-v4l2 \ +%ifarch x86 + --enable-sse \ +%endif +%if ( 0%{?suse_version} || 0%{?leap_version} ) + --enable-vulkan \ +%endif + --enable-7zip \ + --enable-mmap +make %{?jobs:-j%jobs} + + +%install +%make_install + +mkdir -p %{buildroot}%{_datadir}/applications +install -m 644 %{SOURCE9} %{buildroot}%{_datadir}/applications/ +%if 0%{?suse_version} +%suse_update_desktop_file -r -G %{name} %{name} System Emulator +%endif +%fdupes %{buildroot} + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/%{name}.cfg +%{_bindir}/%{name} +%{_bindir}/%{name}-cg2glsl +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/%{name}.svg +%{_mandir}/man?/%{name}.?* +%{_mandir}/man?/%{name}-cg2glsl.?* + +%changelog