Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1587398
 поиск   регистрация   авторизация 
 
Группа :: Разработка/Базы Данных
Пакет: sqlite3

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: sqlite3
Version: 3.2.1
Release: alt0.M24.1

Summary: An Embeddable SQL Database Engine
License: Public Domain
Group: Development/Databases

Url: http://www.sqlite.org/
Source: sqlite-%version.tar.bz2

Requires: lib%name-devel = %version-%release

# Automatically added by buildreq on Tue Apr 05 2005

BuildRequires: gcc-c++ libreadline-devel libstdc++-devel tcl-devel

%package -n lib%name
Summary: SQLite runtime library
Group: System/Libraries

%package -n lib%name-devel
Summary: Devel files for SQLite
Group: Development/Databases
Requires: lib%name = %version-%release

%package -n lib%name-devel-static
Summary: Static Libraries for SQLite
Group: Development/Databases
Requires: lib%name-devel = %version-%release

%package tcl
Summary: Tcl binding for SQLite
Group: Development/Tcl
Requires: lib%name = %version-%release

%description
SQLite is a small C library that implements a self-contained, embeddable,
zero-configuration SQL database engine.

%description -n lib%name
SQLite is a small C library that implements a self-contained, embeddable,
zero-configuration SQL database engine.

%description -n lib%name-devel
Header files for SQLite, a small C library that implements a self-contained,
embeddable, zero-configuration SQL database engine.

%description -n lib%name-devel-static
Static SQLite library, a small C library that implements a self-contained,
embeddable, zero-configuration SQL database engine.

%description tcl
Tcl binding for SQLite, a small C library that implements a self-contained,
embeddable, zero-configuration SQL database engine.

%prep
%setup -q -n sqlite-%version
%__subst -p 's,\$(libdir)/sqlite,%_tcllibdir,g' Makefile.in

# hack for `make doc'

%__cp -a www/arch.png arch.png

%build
%configure --enable-utf8
%make_build all libtcl%name.la doc

%install
%make_install install DESTDIR=%buildroot
%__install -pD -m644 %name.1 %buildroot%_man1dir/%name.1

%__mkdir_p %buildroot%_tcllibdir
./libtool --mode=install %__install libtcl%name.la %buildroot%_tcllibdir
%__rm -fv %buildroot%_tcllibdir/*.{a,la}

%__mkdir_p %buildroot%_tcldatadir/sqlite3
%__cat <<EOF >%buildroot%_tcldatadir/sqlite3/pkgIndex.tcl
package ifneeded sqlite3 3.0 [list load [file join \$dir .. .. .. lib tcl libtcl%name.so.0] sqlite3]
EOF

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files
%doc doc/*.*
%_bindir/%name
%_man1dir/%name.*

%files -n lib%name
%_libdir/lib%name.so.?*

%files -n lib%name-devel
%_includedir/%name.h
%_libdir/lib%name.so
#_libdir/lib%name.la
%_libdir/pkgconfig/%name.pc

%files -n lib%name-devel-static
%_libdir/lib%name.a

%files tcl
%_tcllibdir/libtcl%name.so*
%dir %_tcldatadir/sqlite3
%_tcldatadir/sqlite3/pkgIndex.tcl

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005