File advancemame.spec of Package advancemame

#
# spec file for package advancemame
#
# 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:           advancemame
Version:        4.0
Release:        0
Summary:        MAME and MESS port for Arcade Monitors and TVs
License:        GPL-2.0-only
Group:          System/Emulators/Other
URL:            https://www.advancemame.it
Source0:        https://github.com/amadvance/%{name}-%{version}.tar.gz
BuildRequires:  Mesa-libGL-devel
BuildRequires:  alsa-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  freetype2-devel
BuildRequires:  gcc-c++
BuildRequires:  libSDL2-devel
BuildRequires:  libexpat-devel
BuildRequires:  nasm
BuildRequires:  ncurses-devel
BuildRequires:  zip
BuildRequires:  zlib-devel

%description
The Advance Projects allow you to play Arcade games with video hardware like
TVs, Arcade monitors, PC monitors and LCD screens. They run on GNU/Linux,
Mac OS X, DOS and Windows.

%prep
%setup -q

%build
%configure
%make_build

%install
# This should be replaced by the make_install script but that doesn't
# work because upstream uses the wrong parameters for the install
# command
# make install prefix=%%{buildroot} datadir=%%{buildroot}%%{_datadir} bindir=%%{buildroot}%%{_bindir} mandir=%%{buildroot}%%{_mandir} docdir=%%{buildroot}%%{_docdir}
%make_install mandir=%{_mandir} docdir=%{_docdir}

# already in advancemenu
rm -f %{buildroot}%{_bindir}/advcfg
rm -f %{buildroot}%{_bindir}/advv
rm -f %{buildroot}/%{_mandir}/man1/advcfg.1*
rm -f %{buildroot}/%{_mandir}/man1/advv.1*
rm -f %{buildroot}/%{_docdir}/advance/carddos.txt
rm -f %{buildroot}/%{_docdir}/advance/cardlinx.txt

%fdupes -s %{buildroot}

%files
%license COPYING
%doc %{_docdir}/advance
%{_bindir}/adv*
%{_datadir}/advance
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by