Project not found: openSUSE:Factory:Staging:adi:44

File Play.spec of Package Play

#
# spec file for package Play
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           Play
Version:        0~git20230327
Release:        0
Summary:        Play! - PlayStation 2 Emulator
License:        MIT
Group:          System/Emulators/Other
URL:            https://purei.org
Source:         %{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM Play-fix-building-with-gcc13.patch - fix missing includes for gcc13
Patch0:         Play-fix-building-with-gcc13.patch
BuildRequires:  Mesa-devel
BuildRequires:  Mesa-libGLESv3-devel
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  glew-devel
BuildRequires:  glu-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  libbz2-devel
BuildRequires:  libcurl-devel
BuildRequires:  libevdev-devel
BuildRequires:  libicu-devel
BuildRequires:  libopenssl-devel
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qtx11extras-devel
BuildRequires:  nlohmann_json-devel
BuildRequires:  openal-soft-devel
BuildRequires:  sqlite3-devel
BuildRequires:  zlib-devel
ExcludeArch:    aarch64

%description
Play! is a PlayStation 2 emulator for Windows, macOS, UNIX, Android & iOS platforms.

This package is for RetroArch/libretro front-end.

%prep
%autosetup -p1

%build
# Remove cmake4 error due to not setting
export CMAKE_POLICY_VERSION_MINIMUM=3.5

mkdir build
cd build
cmake .. \
        -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
        -DCMAKE_INSTALL_LIBEXEC="%{_libexecdir}" \
        -DCMAKE_BUILD_TYPE="Release" \
        -DCMAKE_SKIP_RPATH="YES"

%cmake_build

%install
%cmake_install

%files
%license License.txt
%doc Readme.html README.md
%{_bindir}/%{name}
%{_datadir}/applications/org.purei.%{name}.desktop
%{_datadir}/icons/hicolor/512x512/apps/org.purei.%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/org.purei.%{name}.svg
%{_datadir}/metainfo/org.purei.%{name}.metainfo.xml
%dir %{_datadir}/arcadedefs
%{_datadir}/arcadedefs/*

%changelog
openSUSE Build Service is sponsored by