SPECS: lua-sqlite3.spec - pldize the spec
glen
glen at pld-linux.org
Tue Sep 16 22:27:40 CEST 2008
Author: glen Date: Tue Sep 16 20:27:40 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- pldize the spec
---- Files affected:
SPECS:
lua-sqlite3.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/lua-sqlite3.spec
diff -u SPECS/lua-sqlite3.spec:1.1 SPECS/lua-sqlite3.spec:1.2
--- SPECS/lua-sqlite3.spec:1.1 Tue Sep 16 20:00:49 2008
+++ SPECS/lua-sqlite3.spec Tue Sep 16 22:27:35 2008
@@ -1,15 +1,19 @@
# $Revision$, $Date$
+# TODO
+# - missing runtime dep for parent dirs?
Summary: Lua-Sqlite3 is a binding of Sqlite3 for Lua
Summary(hu.UTF-8): Lua-Sqlite3 Sqlite3 kapcsolódási felület Lua-hoz.
Name: lua-sqlite3
Version: 0.4.1
Release: 1
License: BSD-like
+# (existing?/)new group for Lua
Group: Development/Languages
Source0: http://luaforge.net/frs/download.php/1611/%{name}-%{version}.tar.bz2
# Source0-md5: eb14c0b5c4bf8e0052dc2d054386717a
URL: http://luaforge.net/projects/lua-sqlite3/
BuildRequires: lua51-devel
+BuildRequires: sed >= 4.0
BuildRequires: sqlite3-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,19 +32,22 @@
%build
%configure \
- --with-lua-includedir=%{_includedir}/lua51/ \
- --with-lua=%{_bindir}/lua51 --with-lua-libdir=%{_libdir}/lua/5.1/
+ --with-lua-includedir=%{_includedir}/lua51 \
+ --with-lua=%{_bindir}/lua51 \
+ --with-lua-libdir=%{_libdir}/lua/5.1
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/lua/5.1
+install -d $RPM_BUILD_ROOT{%{_datadir},%{_libdir}}/lua/5.1
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# TODO: patch makefile instead
mv $RPM_BUILD_ROOT%{_libdir}/lua/{*.so,5.1}
-install -d $RPM_BUILD_ROOT%{_datadir}/lua/5.1/
-mv $RPM_BUILD_ROOT%{_libdir}/lua/*.lua $RPM_BUILD_ROOT%{_datadir}/lua/5.1/
-sed -i -r "s|(shared_lib_path =.*)\"|\1/5.1\"|" $RPM_BUILD_ROOT%{_datadir}/lua/5.1/libluasqlite3-loader.lua
+mv $RPM_BUILD_ROOT{%{_libdir}/lua/*.lua,%{_datadir}/lua/5.1}
+%{__sed} -i -e 's#\(shared_lib_path =.*)"#\1/5.1"#' $RPM_BUILD_ROOT%{_datadir}/lua/5.1/libluasqlite3-loader.lua
%clean
rm -rf $RPM_BUILD_ROOT
@@ -48,6 +55,7 @@
%files
%defattr(644,root,root,755)
%doc LICENSE README examples/*
+# XXX missing runtime dep for parent dirs?
%{_libdir}/lua/5.1/*.so
%{_datadir}/lua/5.1/*.lua
@@ -57,6 +65,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2008/09/16 20:27:35 glen
+- pldize the spec
+
Revision 1.1 2008/09/16 18:00:49 uzsolt
- initial - useful to awesome3 with newsbeuter or liferea rss-newsreader
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lua-sqlite3.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list