rpms/libsqlite3x/devel libsqlite3x-includes.patch, NONE, 1.1 libsqlite3x-prep.patch, NONE, 1.1 libsqlite3x.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Thomas M. Sailer
sailer at fedoraproject.org
Thu Nov 6 10:50:13 UTC 2008
- Previous message: rpms/kdesdk/F-9 kdesdk.spec, 1.109, 1.110 kdesdk-4.1.2-kdecore.patch, 1.1, NONE
- Next message: rpms/pngnq/F-9 pngnq-0.5-getopt.patch, NONE, 1.1 pngnq-0.5-makefile.patch, NONE, 1.1 pngnq.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: sailer
Update of /cvs/pkgs/rpms/libsqlite3x/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20562
Modified Files:
.cvsignore sources
Added Files:
libsqlite3x-includes.patch libsqlite3x-prep.patch
libsqlite3x.spec
Log Message:
initial import
libsqlite3x-includes.patch:
--- NEW FILE libsqlite3x-includes.patch ---
--- sq3.cpp.orig 2008-05-16 23:54:39.000000000 +0200
+++ sq3.cpp 2008-05-16 23:55:18.000000000 +0200
@@ -8,6 +8,7 @@
#include "sq3.hpp"
#include <vector>
#include <sstream>
+#include <cstring>
#if SQ3_USE_WCHAR
#include <cwchar>
--- sq3_log_db.cpp.orig 2008-05-16 23:55:36.000000000 +0200
+++ sq3_log_db.cpp 2008-05-16 23:55:50.000000000 +0200
@@ -4,6 +4,7 @@
#include <sstream>
#include <vector>
#include <cstdio> // vsnprint()
+#include <cstring>
namespace sq3 {
log_db::log_db( std::string const & filename )
libsqlite3x-prep.patch:
--- NEW FILE libsqlite3x-prep.patch ---
--- sqlite3x_command.cpp.prep 2007-12-24 15:43:58.000000000 +0100
+++ sqlite3x_command.cpp 2007-12-24 15:47:31.000000000 +0100
@@ -47,9 +47,18 @@
#if SQLITE3X_USE_WCHAR
sqlite3_command::sqlite3_command(sqlite3_connection &con, const std::wstring &sql) : con(con),stmt(0),refs(0),argc(0) {
const void *tail=NULL;
- if(sqlite3_prepare16(con.db(), sql.data(), (int)sql.length()*2, &this->stmt, &tail)!=SQLITE_OK)
- throw database_error(con);
-
+ int rc =
+#if (SQLITE_VERSION_NUMBER >= 3003009)
+ sqlite3_prepare16_v2
+#else
+ sqlite3_prepare16
+#endif
+ (con.db(), sql.data(), (int)sql.length()*2, &this->stmt, &tail);
+ if( SQLITE_OK != rc )
+ {
+ throw database_error("sqlite3_command::prepare failed. Reason=[%s]",
+ sqlite3_errmsg( this->con.db() ) );
+ }
this->argc=sqlite3_column_count(this->stmt);
}
#endif
@@ -58,7 +67,13 @@
{
if( this->stmt ) this->finalize();
const char *tail=NULL;
- int rc = sqlite3_prepare( this->con.db(), sql, len, &(this->stmt), &tail );
+ int rc =
+#if (SQLITE_VERSION_NUMBER >= 3003009)
+ sqlite3_prepare_v2
+#else
+ sqlite3_prepare
+#endif
+ ( this->con.db(), sql, len, &(this->stmt), &tail );
if( SQLITE_OK != rc )
{
throw database_error("sqlite3_command::prepare([%s]) failed. Reason=[%s]",
--- NEW FILE libsqlite3x.spec ---
%define veryear 2007
%define vermon 10
%define verday 18
%define namesq3 libsq3
Name: libsqlite3x
Version: %{veryear}%{vermon}%{verday}
Release: 4%{?dist}
Summary: A C++ Wrapper for the SQLite3 embeddable SQL database engine
Group: System Environment/Libraries
License: MIT
URL: http://www.wanderinghorse.net/computing/sqlite/
Source0: http://www.wanderinghorse.net/computing/sqlite/%{name}-%{veryear}.%{vermon}.%{verday}.tar.gz
Source1: libsqlite3x-autotools.tar.gz
Patch1: libsqlite3x-prep.patch
Patch2: libsqlite3x-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: sqlite-devel dos2unix automake libtool doxygen
%description
sqlite3 is a slick embedded SQL server written in C. It's easy to use,
powerful, and quite fast. sqlite3x is a C++ wrapper API for working
with sqlite3 databases that uses exceptions.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: sqlite-devel pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n %{namesq3}
Summary: A C++ Wrapper for the SQLite3 embeddable SQL database engine
Group: Development/Libraries
Requires: %{namesq3} = %{version}-%{release}
%description -n %{namesq3}
sqlite3 is a slick embedded SQL server written in C. It's easy to use,
powerful, and quite fast. sq3 is a C++ wrapper API for working
with sqlite3 databases that does not use exceptions.
%package -n %{namesq3}-devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{namesq3} = %{version}-%{release}
Requires: sqlite-devel pkgconfig
%description -n %{namesq3}-devel
The %{namesq3}-devel package contains libraries and header files for
developing applications that use %{namesq3}.
%prep
%setup -q -n %{name}-%{veryear}.%{vermon}.%{verday} -a 1
dos2unix *.hpp *.cpp
%patch1 -p0 -b .prep
%patch2 -p0 -b .incl
aclocal
libtoolize -f
autoheader
autoconf
automake -a -c
%configure --disable-static
iconv -f iso8859-1 -t utf-8 < README > R
mv R README
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%build
make
make doc
make doc-sq3
%install
%{__rm} -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n %{namesq3} -p /sbin/ldconfig
%postun -n %{namesq3} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS
%{_libdir}/libsqlite3x.so.*
%files devel
%defattr(-,root,root,-)
%doc README doc/html
%{_includedir}/sqlite3x
%{_libdir}/libsqlite3x.so
%{_libdir}/pkgconfig/libsqlite3x.pc
%files -n %{namesq3}
%defattr(-,root,root,-)
%doc AUTHORS
%{_libdir}/libsq3.so.*
%files -n %{namesq3}-devel
%defattr(-,root,root,-)
%doc README doc-sq3/html
%{_includedir}/sq3
%{_libdir}/libsq3.so
%{_libdir}/pkgconfig/libsq3.pc
%changelog
* Tue Nov 4 2008 Thomas Sailer <t.sailer at alumni.ethz.ch> - 20071018-4
- separate sq3 and sqlite3x into separate binary packages
- add unused-direct-shlib-dependency build quirk
- add missing dependency
* Fri May 16 2008 Thomas Sailer <t.sailer at alumni.ethz.ch> - 20071018-3
- add cstring includes for strlen prototypes
* Sat Mar 22 2008 Thomas Sailer <t.sailer at alumni.ethz.ch> - 20071018-2
- add autotools based build system
* Sat Mar 22 2008 Thomas Sailer <t.sailer at alumni.ethz.ch> - 20071018-1
- update
* Thu Aug 2 2007 Thomas Sailer <t.sailer at alumni.ethz.ch> - 20070214-1
- update
* Thu Jan 4 2007 Thomas Sailer <t.sailer at alumni.ethz.ch> - 20060929-1
- Initial build
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/libsqlite3x/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 5 Nov 2008 22:27:08 -0000 1.1
+++ .cvsignore 6 Nov 2008 10:49:42 -0000 1.2
@@ -0,0 +1,2 @@
+libsqlite3x-autotools.tar.gz
+libsqlite3x-2007.10.18.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libsqlite3x/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 5 Nov 2008 22:27:08 -0000 1.1
+++ sources 6 Nov 2008 10:49:43 -0000 1.2
@@ -0,0 +1,2 @@
+11d942c67a34ef6b933a69a63e31dff9 libsqlite3x-autotools.tar.gz
+f5015c83030236205aec1494b13ee334 libsqlite3x-2007.10.18.tar.gz
- Previous message: rpms/kdesdk/F-9 kdesdk.spec, 1.109, 1.110 kdesdk-4.1.2-kdecore.patch, 1.1, NONE
- Next message: rpms/pngnq/F-9 pngnq-0.5-getopt.patch, NONE, 1.1 pngnq-0.5-makefile.patch, NONE, 1.1 pngnq.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list