update to 0.262 [release 0.262-1mamba;Tue Feb 06 2024]

This commit is contained in:
Silvan Calarco 2024-02-12 09:04:58 +01:00
parent de2b25eaa0
commit 12e4c365dc

View File

@ -1,13 +1,13 @@
%define tagver %(echo %version | tr -d .)
Name: mame
Version: 0.252
Release: 2mamba
Version: 0.262
Release: 1mamba
Summary: A virtual environment where you can run software written for other platforms, namely old arcades
Group: Applications/Emulators
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sdlmame.wallyweek.org/
URL: https://www.mamedev.org/
Source: https://gitlab.com/mamedev/mame.git/mame%{tagver}/mame-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
@ -34,13 +34,13 @@ BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libutf8proc-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
BuildRequires: pugixml-devel
BuildRequires: qt5-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: libutf8proc-devel >= 2.9.0-1mamba
BuildRequires: python3
BuildRequires: librapidjson-devel
BuildRequires: liblua53-devel
Requires: %{name}-data = %{?epoch:%epoch:}%{version}-%{release}
%description
@ -72,10 +72,12 @@ Summary: Data files used by MAME
sed -e 's|\# USE_SYSTEM_LIB|USE_SYSTEM_LIB|g' -i makefile
# except for asio
sed -e 's|USE_SYSTEM_LIB_ASIO|\# USE_SYSTEM_LIB_ASIO|g' -i makefile
# Use C++ LUA
sed -e 's|ext_lib("lua")|ext_lib("lua++")|' -i scripts/src/main.lua -i scripts/src/3rdparty.lua
# Hack to force linking to lua5.3
mkdir lib
ln -s %{_libdir}/liblua5.3.so lib/liblua.so
# Hack to force linking to lua5.4
#mkdir lib
#ln -s %{_libdir}/liblua.so.5.4 lib/liblua.so
# Create ini file
cat > %{name}.ini << EOF
@ -121,9 +123,9 @@ RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed "s@-O2@-Os@")
RPM_LD_FLAGS="$RPM_LD_FLAGS -Wl,--no-keep-memory -fuse-ld=gold"
%endif
export CFLAGS+="-I%{_includedir}/lua5.3/"
export CXXFLAGS+="-I%{_includedir}/lua5.3/"
export LDFLAGS+=" -L${PWD}/lib"
export CFLAGS+="`pkg-config lua --cflags`"
export CXXFLAGS+="`pkg-config lua --cflags`"
export LDFLAGS+="`pkg-config lua --libs`"
%make_build -j2 \
PYTHON_EXECUTABLE=%{__python3} \
@ -132,7 +134,9 @@ export LDFLAGS+=" -L${PWD}/lib"
TOOLS=1 \
ARCHOPTS=-flifetime-dse=1 \
OPT_FLAGS="$RPM_OPT_FLAGS" \
%ifarch %{ix86} arm
LDOPTS="$RPM_LD_FLAGS"
%endif
#cd docs
#% make html
@ -254,6 +258,9 @@ popd
%license COPYING docs/legal/*
%changelog
* Tue Feb 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.262-1mamba
- update to 0.262
* Sat Nov 18 2023 Automatic Build System <autodist@mambasoft.it> 0.252-2mamba
- rebuilt by autoport with build requirements: libutf8proc-devel>=2.9.0-1mamba