Group :: Sistema/Bibliotecas
RPM: radius-engine
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: radius-engine
Version: 1.1
Release: alt1_8
Summary: A Lua based real-time 2D graphics game engine
Group: System/Libraries
License: MIT
URL: http://radius-engine.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}.tar.gz
Patch0: radius-engine-0.6-configure-lua.patch
Patch1: radius-engine-1.1-shared-libs.patch
# Latest autoconf enables "extra-portability" along with "Wall", which causes
# warnings (treated as errors because of Wall) to be thrown. We just need to
# pass "-Wno-extra-portability" to fix this.
Patch2: radius-engine-1.1-disable-extra-portability.patch
# Use compat-lua
Patch3: radius-engine-1.1-compat-lua.patch
BuildRequires: liblua5.1-devel, libSDL-devel, libGL-devel, libGLU-devel
BuildRequires: libphysfs-devel, libpng-devel, zlib-devel, libSDL_sound-devel
# I could not figure out a way to generate a patch to enable shared libraries
# that worked right. All my attempts resulted in an environment where make,
# when invoked, would re-run aclocal and automake. :P
# So, I'm just running autoreconf in the spec file. :P :P
BuildRequires: autoconf-common, libtool-common
%description
Radius Engine is a Lua script-based real-time 2D graphics engine designed for
rapidly prototyping games. Built on top of SDL and OpenGL, games made with
Radius Engine are portable to both Windows and Linux.
%package devel
Summary: Development libraries and headers for Radius Engine
Group: Development/Other
Requires: %{name} = %{version}-%{release}
%description devel
Development libraries and headers for Radius Engine.
%prep
%setup -q
%patch0 -p1 -b .lua
%patch1 -p1 -b .shared
%patch2 -p1 -b .disable-extra-portability
%patch3 -p1 -b .compat-lua
# autoconf is being anal now.
mv configure.in configure.ac
autoreconf -if
chmod -x *.c *.h ChangeLog
%build
%configure --disable-static
%make_build
%install
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_libdir}/*.la
%files
%doc ChangeLog
%{_libdir}/libradius-engine.so.*
%files devel
%{_includedir}/radius.h
%{_libdir}/libradius-engine.so
%{_libdir}/pkgconfig/radius-engine.pc
%changelog
…
Todas as alterações você pod ver aqui
%define _localstatedir %{_var}
Name: radius-engine
Version: 1.1
Release: alt1_8
Summary: A Lua based real-time 2D graphics game engine
Group: System/Libraries
License: MIT
URL: http://radius-engine.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}.tar.gz
Patch0: radius-engine-0.6-configure-lua.patch
Patch1: radius-engine-1.1-shared-libs.patch
# Latest autoconf enables "extra-portability" along with "Wall", which causes
# warnings (treated as errors because of Wall) to be thrown. We just need to
# pass "-Wno-extra-portability" to fix this.
Patch2: radius-engine-1.1-disable-extra-portability.patch
# Use compat-lua
Patch3: radius-engine-1.1-compat-lua.patch
BuildRequires: liblua5.1-devel, libSDL-devel, libGL-devel, libGLU-devel
BuildRequires: libphysfs-devel, libpng-devel, zlib-devel, libSDL_sound-devel
# I could not figure out a way to generate a patch to enable shared libraries
# that worked right. All my attempts resulted in an environment where make,
# when invoked, would re-run aclocal and automake. :P
# So, I'm just running autoreconf in the spec file. :P :P
BuildRequires: autoconf-common, libtool-common
%description
Radius Engine is a Lua script-based real-time 2D graphics engine designed for
rapidly prototyping games. Built on top of SDL and OpenGL, games made with
Radius Engine are portable to both Windows and Linux.
%package devel
Summary: Development libraries and headers for Radius Engine
Group: Development/Other
Requires: %{name} = %{version}-%{release}
%description devel
Development libraries and headers for Radius Engine.
%prep
%setup -q
%patch0 -p1 -b .lua
%patch1 -p1 -b .shared
%patch2 -p1 -b .disable-extra-portability
%patch3 -p1 -b .compat-lua
# autoconf is being anal now.
mv configure.in configure.ac
autoreconf -if
chmod -x *.c *.h ChangeLog
%build
%configure --disable-static
%make_build
%install
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_libdir}/*.la
%files
%doc ChangeLog
%{_libdir}/libradius-engine.so.*
%files devel
%{_includedir}/radius.h
%{_libdir}/libradius-engine.so
%{_libdir}/pkgconfig/radius-engine.pc
%changelog
…
Todas as alterações você pod ver aqui