rpms/lua-sql/F-8 lua-sql.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Tim Niemueller (timn)
fedora-extras-commits at redhat.com
Tue Apr 8 21:29:50 UTC 2008
- Previous message (by thread): rpms/anaconda/devel .cvsignore, 1.524, 1.525 anaconda.spec, 1.664, 1.665 sources, 1.656, 1.657
- Next message (by thread): rpms/NetworkManager/devel .cvsignore, 1.70, 1.71 NetworkManager.spec, 1.208, 1.209 sources, 1.98, 1.99
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: timn
Update of /cvs/pkgs/rpms/lua-sql/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5114/F-8
Modified Files:
.cvsignore sources
Added Files:
lua-sql.spec
Log Message:
Initial Fedora import
--- NEW FILE lua-sql.spec ---
%define luaver 5.1
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
Name: lua-sql
Version: 2.1.1
Release: 4%{?dist}
Summary: Database connectivity for the Lua programming language
Group: Development/Libraries
License: MIT
URL: http://www.keplerproject.org/luasql/
Source0: http://luaforge.net/frs/download.php/2686/luasql-2.1.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
BuildRequires: pkgconfig
BuildRequires: sqlite-devel >= 3.0
BuildRequires: mysql-devel
BuildRequires: postgresql-devel
Requires: lua-sql-sqlite, lua-sql-mysql, lua-sql-postgresql, lua-sql-doc
%description
LuaSQL is a simple interface from Lua to a DBMS. This package of LuaSQL
supports MySQL, SQLite and PostgreSQL databases. You can execute arbitrary SQL
statements and it allows for retrieving results in a row-by-row cursor fashion.
%package doc
Summary: Documentation for LuaSQL
Group: Documentation
Requires: lua >= %{luaver}
%description doc
LuaSQL is a simple interface from Lua to a DBMS. This package contains the
documentation for LuaSQL.
%package sqlite
Summary: SQLite database connectivity for the Lua programming language
Group: Development/Libraries
Requires: lua >= %{luaver}
%description sqlite
LuaSQL is a simple interface from Lua to a DBMS. This package provides access
to SQLite databases.
%package mysql
Summary: MySQL database connectivity for the Lua programming language
Group: Development/Libraries
Requires: lua >= %{luaver}
%description mysql
LuaSQL is a simple interface from Lua to a DBMS. This package provides access
to MySQL databases.
%package postgresql
Summary: PostgreSQL database connectivity for the Lua programming language
Group: Development/Libraries
Requires: lua >= %{luaver}
%description postgresql
LuaSQL is a simple interface from Lua to a DBMS. This package provides access
to PostgreSQL databases.
%prep
%setup -q -n luasql-%{version}
%build
make %{?_smp_mflags} PREFIX=%{_prefix} DRIVER_INCS="`pkg-config --cflags sqlite3`" DRIVER_LIBS="`pkg-config --libs sqlite3`" T=sqlite3 DEFS="%{optflags} -fPIC"
make %{?_smp_mflags} PREFIX=%{_prefix} DRIVER_INCS="" DRIVER_LIBS="-lpq" T=postgres DEFS="%{optflags} -fPIC" WARN=
make %{?_smp_mflags} PREFIX=%{_prefix} DRIVER_INCS="-I%{_prefix}/include/mysql" DRIVER_LIBS="-L%{_libdir}/mysql -lmysqlclient" T=mysql DEFS="%{optflags} -fPIC"
%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{lualibdir} LUA_DIR=$RPM_BUILD_ROOT%{luapkgdir} T=sqlite3
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{lualibdir} LUA_DIR=$RPM_BUILD_ROOT%{luapkgdir} T=postgres
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{lualibdir} LUA_DIR=$RPM_BUILD_ROOT%{luapkgdir} T=mysql
%clean
rm -rf $RPM_BUILD_ROOT
%files
# There are no files in the main package
%files doc
%defattr(-,root,root,-)
%doc README
%doc doc/us/*
%files sqlite
%defattr(-,root,root,-)
%dir %{lualibdir}/luasql
%{lualibdir}/luasql/sqlite3.so
%files mysql
%defattr(-,root,root,-)
%dir %{lualibdir}/luasql
%{lualibdir}/luasql/mysql.so
%files postgresql
%defattr(-,root,root,-)
%dir %{lualibdir}/luasql
%{lualibdir}/luasql/postgres.so
%changelog
* Tue Apr 08 2008 Tim Niemueller <tim at niemueller.de> - 2.1.1-4
- Main package is now pure meta package to pull in everything else, README
moved to doc sub-package.
* Sat Apr 05 2008 Tim Niemueller <tim at niemueller.de> - 2.1.1-3
- Do not use pg_config and mysql_config, they are not good for what you think
they should be used for, cf. #440673
* Fri Apr 04 2008 Tim Niemueller <tim at niemueller.de> - 2.1.1-2
- Fixed lua-sql-postgres requires
- Own %{lualibdir}/luasql directory in all sub-packages
* Fri Apr 04 2008 Tim Niemueller <tim at niemueller.de> - 2.1.1-1
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/lua-sql/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 8 Apr 2008 18:12:29 -0000 1.1
+++ .cvsignore 8 Apr 2008 21:29:12 -0000 1.2
@@ -0,0 +1 @@
+luasql-2.1.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/lua-sql/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 8 Apr 2008 18:12:29 -0000 1.1
+++ sources 8 Apr 2008 21:29:12 -0000 1.2
@@ -0,0 +1 @@
+63bdd57de4b9d1be336ba112d8cb69eb luasql-2.1.1.tar.gz
- Previous message (by thread): rpms/anaconda/devel .cvsignore, 1.524, 1.525 anaconda.spec, 1.664, 1.665 sources, 1.656, 1.657
- Next message (by thread): rpms/NetworkManager/devel .cvsignore, 1.70, 1.71 NetworkManager.spec, 1.208, 1.209 sources, 1.98, 1.99
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list