Group :: Desenvolvimento/Outros
RPM: love
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
BuildRequires: chrpath
# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: love
Version: 11.4
Release: alt1_1
Summary: A free 2D game engine which enables easy game creation in Lua
Group: Development/Other
License: zlib
Url: https://love2d.org
Source0: https://github.com/love2d/love/releases/download/%{version}/%{name}-%{version}-linux-src.tar.gz
BuildRequires: pkgconfig(physfs)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libgme)
BuildRequires: pkgconfig(libmodplug)
BuildRequires: pkgconfig(libmpg123)
BuildRequires: pkgconfig(luajit)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(zlib)
Source44: import.info
%description
LA.VE is an open source, cross platform 2D game engine which uses the
Lua scripting language. LA.VE can be used to make games of any license
allowing it to be used for both free and non-free projects.
%files
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.svg
%{_iconsdir}/hicolor/scalable/mimetypes/application-x-%{name}-game.svg
%{_libdir}/lib%{name}-%{version}.so
%{_mandir}/man1/%{name}.1*
#----------------------------------------------------------------------------
%prep
%setup -q
%build
%configure \
--bindir=%{_gamesbindir} \
--with-lua=luajit \
--enable-gme \
--disable-static
%make_build
%install
%makeinstall_std
find %{buildroot} -name '*.la' -delete
rm -f %{buildroot}%{_libdir}/lib%{name}.so
# kill rpath
for i in `find %buildroot{%_bindir,%_libdir,/usr/libexec,/usr/lib,/usr/sbin,/usr/games} -type f -perm -111 ! -name '*.la' `; do
chrpath -d $i ||:
done
%changelog
…
Todas as alterações você pod ver aqui
# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: love
Version: 11.4
Release: alt1_1
Summary: A free 2D game engine which enables easy game creation in Lua
Group: Development/Other
License: zlib
Url: https://love2d.org
Source0: https://github.com/love2d/love/releases/download/%{version}/%{name}-%{version}-linux-src.tar.gz
BuildRequires: pkgconfig(physfs)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libgme)
BuildRequires: pkgconfig(libmodplug)
BuildRequires: pkgconfig(libmpg123)
BuildRequires: pkgconfig(luajit)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(zlib)
Source44: import.info
%description
LA.VE is an open source, cross platform 2D game engine which uses the
Lua scripting language. LA.VE can be used to make games of any license
allowing it to be used for both free and non-free projects.
%files
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.svg
%{_iconsdir}/hicolor/scalable/mimetypes/application-x-%{name}-game.svg
%{_libdir}/lib%{name}-%{version}.so
%{_mandir}/man1/%{name}.1*
#----------------------------------------------------------------------------
%prep
%setup -q
%build
%configure \
--bindir=%{_gamesbindir} \
--with-lua=luajit \
--enable-gme \
--disable-static
%make_build
%install
%makeinstall_std
find %{buildroot} -name '*.la' -delete
rm -f %{buildroot}%{_libdir}/lib%{name}.so
# kill rpath
for i in `find %buildroot{%_bindir,%_libdir,/usr/libexec,/usr/lib,/usr/sbin,/usr/games} -type f -perm -111 ! -name '*.la' `; do
chrpath -d $i ||:
done
%changelog
…
Todas as alterações você pod ver aqui