2013-02-17 15:18:52 +01:00
|
|
|
#
|
2015-01-20 21:17:32 +01:00
|
|
|
# spec file for package love-0_7_2
|
2013-02-17 15:18:52 +01:00
|
|
|
#
|
2017-08-29 01:18:12 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-02-17 15:18:52 +01:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: love-0_7_2
|
|
|
|
Version: 0.7.2
|
|
|
|
Release: 0
|
|
|
|
Summary: 2D gaming engine written in Lua
|
|
|
|
License: Zlib
|
|
|
|
Group: Development/Languages/Other
|
|
|
|
Url: http://love2d.org/
|
2015-01-20 21:17:32 +01:00
|
|
|
|
2013-02-17 15:18:52 +01:00
|
|
|
Source: https://bitbucket.org/rude/love/downloads/love-0.7.2-linux-src.tar.gz
|
2015-01-20 21:17:32 +01:00
|
|
|
Patch1: love-modplug.patch
|
|
|
|
Patch2: love-remove-mpg123.patch
|
|
|
|
Patch3: freetype.diff
|
2013-02-17 15:18:52 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libmng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtool
|
2015-01-20 21:17:32 +01:00
|
|
|
BuildRequires: lua51-devel
|
2013-02-17 15:18:52 +01:00
|
|
|
BuildRequires: physfs-devel
|
2015-01-20 21:17:32 +01:00
|
|
|
BuildRequires: pkg-config
|
2013-02-17 15:18:52 +01:00
|
|
|
BuildRequires: pkgconfig(IL)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
2015-01-20 21:17:32 +01:00
|
|
|
BuildRequires: pkgconfig(glu)
|
2013-02-17 15:18:52 +01:00
|
|
|
BuildRequires: pkgconfig(libmodplug)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
|
|
|
%if %{with mpg123}
|
|
|
|
BuildRequires: pkgconfig(libmpg123)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
LÖVE is a framework for making 2D games in Lua.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn love-HEAD
|
2015-01-20 21:17:32 +01:00
|
|
|
%patch -P 1 -P 2 -P 3 -p1
|
2013-02-17 15:18:52 +01:00
|
|
|
|
|
|
|
%build
|
2015-01-20 21:17:32 +01:00
|
|
|
sed -i 's/\r$//' *.txt
|
|
|
|
rm -f src/modules/sound/lullaby/Mpg123Decoder.{cpp,h}
|
|
|
|
mv configure.{in,ac}
|
2013-02-17 15:18:52 +01:00
|
|
|
autoreconf -fi
|
2017-08-29 01:18:12 +02:00
|
|
|
%configure CPPFLAGS="$(pkg-config lua5.1 --cflags)"
|
2013-02-17 15:18:52 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b"
|
|
|
|
mv "$b/%_bindir"/love{,-0.7.2}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc changes.txt license.txt readme.txt
|
|
|
|
%_bindir/love-0.7.2
|
|
|
|
|
|
|
|
%changelog
|