]> git.pld-linux.org Git - SPECS.git/blob - lua-sqlite3.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / lua-sqlite3.spec
1 # TODO
2 # - missing runtime dep for parent dirs?
3 # - fix build problem (/usr/bin/ld: cannot find -llualib - at me ./configure says that
4 #   checking if we need -llualib... no
5 #   but at the build server say "yes"
6 Summary:        Lua-Sqlite3 is a binding of Sqlite3 for Lua
7 Summary(hu.UTF-8):      Lua-Sqlite3 Sqlite3 kapcsolódási felület Lua-hoz.
8 Name:           lua-sqlite3
9 Version:        0.4.1
10 Release:        2.1
11 License:        BSD-like
12 # (existing?/)new group for Lua
13 Group:          Development/Languages
14 Source0:        http://luaforge.net/frs/download.php/1611/%{name}-%{version}.tar.bz2
15 # Source0-md5:  eb14c0b5c4bf8e0052dc2d054386717a
16 URL:            http://lua.sqlite.org/
17 BuildRequires:  lua51-devel
18 BuildRequires:  sed >= 4.0
19 BuildRequires:  sqlite3-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Lua-Sqlite3 is a binding of Sqlite3 for Lua. Lua-Sqlite3 provides a
24 nice and smart view of the database with iterators, dynamic parameter
25 binding for prepared statements user functions and aggregates and so
26 on. It is useful when you use awesome3 with liferea or newsbeuter.
27
28 %description -l hu.UTF-8
29 Lua-Sqlite3 egy Sqlite3 kapcsolódási felület Lua-hoz. Hasznos lehet,
30 ha awesome3-at használsz liferea-val vagy newsbeuter-rel.
31
32 %prep
33 %setup -q
34
35 %build
36 %configure \
37         --with-lua-includedir=%{_includedir}/lua51 \
38         --with-lua=%{_bindir}/lua51 \
39         --with-lua-libdir=%{_libdir}/lua/5.1
40
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_datadir},%{_libdir}}/lua/5.1
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 # TODO: patch makefile instead
50 mv $RPM_BUILD_ROOT%{_libdir}/lua/{*.so,5.1}
51 mv $RPM_BUILD_ROOT{%{_libdir}/lua/*.lua,%{_datadir}/lua/5.1}
52 %{__sed} -i -e 's#\(shared_lib_path =.*\)"#\1/5.1"#' $RPM_BUILD_ROOT%{_datadir}/lua/5.1/libluasqlite3-loader.lua
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc LICENSE README examples/* documentation.html
60 # XXX missing runtime dep for parent dirs?
61 %attr(755,root,root) %{_libdir}/lua/5.1/*.so
62 %{_datadir}/lua/5.1/*.lua
This page took 0.452836 seconds and 3 git commands to generate.