Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37524515
en ru br
ALT Linux repositórios
S:1.0.93-alt3
5.0: 1.0.92-alt1

Group :: Sistema/Bibliotecas
RPM: tolua++

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define solib tolua++-5.1

Name: tolua++
Version: 1.0.92
Release: alt1
Summary: A tool to integrate C/C++ code with Lua
Group: System/Libraries
License: Freely redistributable without restriction
Url: http://www.codenix.com/~tolua/
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: http://www.codenix.com/~tolua/%name-%version.tar.bz2
Patch0: tolua++-1.0.92-makeso.patch
Patch1: tolua++-1.0.92-gcc43.patch

BuildRequires: scons
BuildRequires: liblua5-devel

%description
tolua++ is an extended version of tolua, a tool to integrate C/C++ code with
Lua. tolua++ includes new features oriented to C++

%package devel
Summary: Development files for tolua++
Group: Development/C++
Requires: tolua++ = %version-%release
Requires: liblua5-devel

%description devel
Development files for tolua++

%prep
%setup -q
%patch0 -p1
%patch1 -p1
sed -i 's/\r//' doc/%name.html

%build
scons %{?_smp_mflags} -Q CCFLAGS="%optflags  -I%_includedir" tolua_lib=%solib LINKFLAGS="-Wl,-soname,lib%solib.so"
#Recompile the exe without the soname. An ugly hack.
gcc -o bin/%name src/bin/tolua.o src/bin/toluabind.o -Llib -l%solib -llua -ldl -lm

%install

mkdir -p %buildroot%_bindir
mkdir %buildroot%_libdir
mkdir %buildroot%_includedir
install -m0755 bin/%name  %buildroot%_bindir
install -m0755 lib/lib%solib.so %buildroot%_libdir
install -m0644 include/%name.h %buildroot%_includedir
cd %buildroot%_libdir
ln -s lib%solib.so libtolua++.so

%post -p %post_ldconfig
%postun -p %post_ldconfig

%files
%_libdir/lib%solib.so
%doc README

%files devel
%doc doc/*
%_bindir/%name
%_libdir/libtolua++.so
%_includedir/%name.h

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009