59 lines
1.9 KiB
RPMSpec
59 lines
1.9 KiB
RPMSpec
Name: tolua
|
|
Version: 5.2.0
|
|
Release: 1mamba
|
|
Summary: A tool that greatly simplifies the integration of C/C++ code with Lua
|
|
Group: Applications/Development
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.tecgraf.puc-rio.br/~celes/tolua/
|
|
Source: http://www.tecgraf.puc-rio.br/~celes/tolua/tolua-%{version}.tar.gz
|
|
Patch0: %{name}-5.1b-fix_dl_link.patch
|
|
Patch1: %{name}-5.1b-fix_cppflags.patch
|
|
License: GPL
|
|
BuildRequires: lua-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Tolua is a tool that greatly simplifies the integration of C/C++ code with Lua.
|
|
Based on a cleaned header file, tolua automatically generates the binding code to access C/C++ features from Lua.
|
|
Using Lua API and tag method facilities, tolua maps C/C++ constants, external variables, functions, classes, and methods to Lua.
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch0 -p1 -b .fix_dl_link
|
|
#%patch1 -p1 -b .fix_cppflags
|
|
|
|
%build
|
|
%make LUAINC="`pkg-config --variable=includedir lua`"
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
install -d %{buildroot}{%{_bindir},%{_libdir},%{_includedir}}
|
|
install -m0755 bin/tolua %{buildroot}%{_bindir}
|
|
install -m0755 lib/lib* %{buildroot}%{_libdir}
|
|
install -m0644 include/tolua.h %{buildroot}%{_includedir}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/tolua
|
|
%{_libdir}/libtolua.a
|
|
%{_includedir}/tolua.h
|
|
%doc README
|
|
|
|
%changelog
|
|
* Sun Apr 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.0-1mamba
|
|
- update to 5.2.0
|
|
|
|
* Sun Apr 13 2014 Automatic Build System <autodist@mambasoft.it> 5.1b-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Oct 24 2007 Aleph0 <aleph0@openmamba.org> 5.1b-1mamba
|
|
- update to 5.1
|
|
|
|
* Thu May 10 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0-1mamba
|
|
- package created by autospec
|