File genesis_plus_gx.spec of Package libretro-genesis-plus-gx

%define debug_package %{nil}

# Colorize terminal output. Helps to find problems during build process.
%global optflags %{optflags} -fdiagnostics-color=always

%global commit  e8eb9f214f54ad813a3745b25dd6d5adc66c17ea
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global date    20210710

%global reponame Genesis-Plus-GX
%global corename genesis-plus-gx
%global filename genesis_plus_gx

Name:           libretro-%{corename}
Version:        1.7.6
Release:        1.%{date}git%{shortcommit}%{?dist}
Summary:        ARM optimized PCSX fork
License:        Other

URL:            https://github.com/libretro/%{reponame}
Source0:        %{url}/archive/%{commit}/%{name}-%{version}.tar.xz
Source1: https://raw.githubusercontent.com/libretro/libretro-core-info/master/%{filename}_libretro.info
ExcludeArch:    armv7hl

BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(zlib)

Supplements:    gnome-games%{?_isa}
Supplements:    retroarch%{?_isa}

%description
PCSX ReARMed is yet another PCSX fork based on the PCSX-Reloaded project, which
itself contains code from PCSX, PCSX-df and PCSX-Revolution. This version is ARM
architecture oriented and features MIPS->ARM recompiler by Ari64, NEON GTE code
and more performance improvements. It was created for Pandora handheld, but
should be usable on other devices after some code adjustments (N900, GPH
Wiz/Caanoo, PlayBook versions are also available).

PCSX ReARMed features ARM NEON GPU by Exophase, that in many cases produces
pixel perfect graphics at very high performance. There is also Una-i's GPU
plugin from PCSX4ALL project, and traditional P.E.Op.S. one.


%prep
%autosetup -n %{name}-%{version} -p1

%build
%set_build_flags
%make_build -f Makefile.libretro    \
    GIT_VERSION=%{shortcommit}      \
    HAVE_CHD=1                      \
    WANT_ZLIB=0

%install
install -m0755 -Dp %{filename}_libretro.so %{buildroot}%{_libdir}/libretro/%{filename}_libretro.so
install -m0644 -Dp %{S:1} %{buildroot}%{_libdir}/libretro/%{filename}.libretro


%files
%license LICENSE.txt
%doc README.md HISTORY.txt
%{_libdir}/libretro/%{filename}*

%changelog
* Wed Jan 06 2021 Muhammad Shaban <muhammad.shaban.dev@gmail.com> - 1.7.5-1.20210102git807163e
- Initial package
openSUSE Build Service is sponsored by