Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
>
php-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 php-sqlite2 (Revision 7)
Currently displaying revision
7
,
show latest
%define pkgname SQLite %define pkgversion 1.0.3 %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %global php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4) %global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1) %global php_version %((echo 0; php-config --version 2>/dev/null) | tail -1) Name: php-sqlite2 Version: %{php_version} Release: 1 License: GPL Url: http://pecl.php.net Summary: PHP SQLite2 extension Source0: http://pecl.php.net/get/SQLite-1.0.3.tgz Patch0: SQLite-arg3.patch Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: php-pecl-%{pkgname} = %{version} 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} %patch %build %{_bindir}/phpize %configure --with-sqlite --with-sqlite-utf8 --with-php-config=%{_bindir}/php-config cat config.h || : %{__make} %{?_smp_mflags} %install %__make INSTALL_ROOT=%{buildroot} install %{__mkdir_p} %{buildroot}%{pecl_xmldir} %{__install} -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d %{__cat} > %{buildroot}%{_sysconfdir}/php.d/sqlite2.ini << 'EOF' ; Enable sqlite2 extension module extension = sqlite2.so EOF %if 0%{?pecl_install:1} %post %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : %endif %if 0%{?pecl_uninstall:1} %postun if [ $1 -eq 0 ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc CREDITS README TODO %config(noreplace) %{_sysconfdir}/php.d/sqlite2.ini %{pecl_xmldir}/%{name}.xml %{php_extdir}/sqlite.so %changelog