File RetroPlus.spec of Package RetroPlus
#
# spec file for package RetroPlus
#
# Copyright (c) 2023 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: RetroPlus
Version: 0.1.5
Release: 1%{?dist}
Summary: A simple ROM downloader
License: GPL-3.0-or-later
URL: https://github.com/Vysp3r/RetroPlus
Source0: %{name}-%{version}.tar.gz
BuildRequires: git
BuildRequires: ninja
BuildRequires: meson >= 0.62.0
BuildRequires: gtk4-devel
BuildRequires: libadwaita-devel >= 1.4
BuildRequires: json-glib-devel
BuildRequires: libsoup-devel
BuildRequires: desktop-file-utils
BuildRequires: libgee-devel
BuildRequires: vala
BuildRequires: libarchive-devel
BuildRequires: libxml2-devel
BuildRequires: fdupes
%description
A simple ROM downloader
%lang_package
%prep
%autosetup
%check
%build
# Configurar e compilar o projeto
meson build -Dstrip=true --prefix=%{_prefix}
cd build
ninja
%install
# Instalar o aplicativo
cd build
DESTDIR=%{buildroot} ninja install
%fdupes %{buildroot}
/usr/bin/gtk4-update-icon-cache -q -t -f %{buildroot}%{_datadir}/icons/hicolor || :
/usr/bin/update-desktop-database -q %{buildroot}%{_datadir}/applications || :
%files
%doc README.md
%license LICENSE
%{_bindir}/com.vysp3r.RetroPlus
%{_datadir}/applications/com.vysp3r.RetroPlus.desktop
%{_datadir}/applications/mimeinfo.cache
%{_datadir}/metainfo/com.vysp3r.RetroPlus.metainfo.xml
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%{_datadir}/icons/hicolor/icon-theme.cache
%{_datadir}/icons/hicolor/*/apps/com.vysp3r.RetroPlus.*
%{_datadir}/glib-2.0/schemas/com.vysp3r.RetroPlus.gschema.xml
%{_datadir}/locale/tr/LC_MESSAGES/com.vysp3r.RetroPlus.mo
%changelog