Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
>
php53-sqlite2
> php-sqlite2.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-sqlite2.spec of Package php53-sqlite2
%define pkgname SQLite %define pkgversion 1.0.3 %define phpversion %(php-config --version 2>/dev/null || echo 0) %define __pecl %{_bindir}/pecl Name: php-sqlite2 Version: %{phpversion} Release: 10 License: GPL Url: http://pecl.php.net Summary: PHP SQLite2 extension Source0: http://pecl.php.net/get/SQLite-1.0.3.tar.bz2 Patch1: SQLite-utf8.patch Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: php-pecl-%{pkgname} = %{version} Provides: any-php-sqlite2 Requires(post): %{__pecl} Requires(postun): %{__pecl} BuildRequires: php-devel >= 5.2.0 php-pear,which %description PHP SQLite2 extension module. %prep %setup -n %{pkgname}-%{pkgversion} %patch1 %build %{_bindir}/phpize %configure --with-sqlite --with-sqlite-utf8 --with-php-config=%{_bindir}/php-config %{__make} %{?_smp_mflags} %install ##make INSTALL_ROOT=%{buildroot} install %__install -D -m0755 modules/sqlite.so %{buildroot}%{php_extdir}/sqlite.so %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d %{__cat} > %{buildroot}%{_sysconfdir}/php.d/sqlite2.ini << 'EOF' ; Enable sqlite2 extension module extension = sqlite.so EOF %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc CREDITS README TODO %config(noreplace) %{_sysconfdir}/php.d/sqlite2.ini %{php_extdir}/sqlite.so %changelog