Build SQLite 3.6.11 RPMs in openSUSE 11.x

Today I played to build SQLite 3.6.11 RPM package. I got the spec file from SUSE Build. The spec file was for SQLite 3.6.2.

Unfortunately, I couldn’t just use the spec file with minor editing, such as change the version.

After played the spec file for several hours, I always got the following error during the RPM creation :


echo 'package ifneeded sqlite3 3.6.11 [list load /usr/lib/tcl/tcl8/8.4/libtclsqlite3.so sqlite3]' >; pkgIndex.tcl
/usr/bin/install -c -d /var/tmp/sqlite-3.6.11-build/usr/lib/tcl/tcl8/8.4
./libtool --mode=install /usr/bin/install -c libtclsqlite3.la
/var/tmp/sqlite-3.6.11-build/usr/lib/tcl/tcl8/8.4
libtool: install: error: cannot install `libtclsqlite3.la' to a directory not ending in /usr/lib/tcl/tcl8.5/sqlite3
make: *** [tcl_install] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.13119 (%install)

I searched the Internet, but I couldn’t find a solution. So I decided to disable the TCL. :D

After disabling the TCL build (just add option –disable-tcl to the ./configure script), I can build the SQLite RPMs.

Here are the results :


Wrote: /home/tedi/suse/RPMS/i586/sqlite-3.6.11-1.i586.rpm
Wrote: /home/tedi/suse/RPMS/i586/libsqlite3-0-3.6.11-1.i586.rpm
Wrote: /home/tedi/suse/RPMS/i586/sqlite-doc-3.6.11-1.i586.rpm
Wrote: /home/tedi/suse/RPMS/i586/sqlite-devel-3.6.11-1.i586.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.5033
+ umask 022
+ cd /home/tedi/suse//BUILD
+ cd sqlite-3.6.11
+ rm -rf /var/tmp/sqlite-3.6.11-build
+ rm -rf filelists

Here is my modified spec file.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s