diff --git a/.cvsignore b/.cvsignore index e69de29..f704e4d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +luaposix-5.1.2.tar.gz diff --git a/lua-posix.spec b/lua-posix.spec new file mode 100644 index 0000000..e31e7b5 --- /dev/null +++ b/lua-posix.spec @@ -0,0 +1,52 @@ +%define luaver 5.1 +%define lualibdir %{_libdir}/lua/%{luaver} +%define luapkgdir %{_datadir}/lua/%{luaver} + +Name: lua-posix +Version: 5.1.2 +Release: 2%{?dist} +Summary: A POSIX library for Lua + +Group: Development/Libraries +License: Public Domain +URL: http://luaforge.net/projects/luaposix/ +Source0: http://luaforge.net/frs/download.php/3063/luaposix-5.1.2.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver} +Requires: lua >= %{luaver} + +%description +This is a POSIX library for Lua which provides access to many POSIX features +to Lua programs. + +%prep +%setup -q -n luaposix-%{version} + + +%build +make %{?_smp_mflags} PREFIX=%{_prefix} LUALIB=%{lualibdir} LUABIN=%{_bindir} CFLAGS="%{optflags}" + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LUALIB=%{lualibdir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README ChangeLog +%{lualibdir}/* + + +%changelog +* Sat Apr 05 2008 Tim Niemueller - 5.1.2-2 +- Set proper CFLAGS for valid debuginfo + +* Fri Apr 04 2008 Tim Niemueller - 5.1.2-1 +- Initial package + diff --git a/sources b/sources index e69de29..e7b1235 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +31deeb4add91f76b3c2d36aae2888d81 luaposix-5.1.2.tar.gz