File love.spec of Package love

# spec file for package love
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%bcond_without mpg123
Name:           love
Version:        0.10.2
Release:        0
Summary:        2D gaming engine written in Lua
License:        Zlib
Group:          Development/Languages/Other
Patch0:         love.mpg123.patch
# PATCH-FIX-UPSTREAM update-luasocket.patch -- 
Patch1:         update-luasocket.patch
Requires(pre):  desktop-file-utils
Requires(pre):  shared-mime-info
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libtool
BuildRequires:  physfs-devel
BuildRequires:  pkgconfig
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(IL)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(libenet)
BuildRequires:  pkgconfig(libmodplug)
BuildRequires:  pkgconfig(luajit)
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(theora)
BuildRequires:  pkgconfig(vorbisfile)
%if %{with mpg123}
BuildRequires:  pkgconfig(libmpg123)

LÖVE is a framework for making 2D games in Lua.

%setup -q
%patch0 -p1
%patch1 -p1
sed -i 's/\r$//' *.txt

autoreconf -fi
%configure \
%if %{without mpg123}
	--disable-mpg123 \
make %{?_smp_mflags}

make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm "%{buildroot}%{_libdir}/" "%{buildroot}%{_libdir}/"



%doc changes.txt license.txt