Name: php-gtk Version: 2.0.1 Release: 3%{?dist} Summary: PHP-GTK extension for PHP Group: Development/Libraries License: PHP URL: http://gtk.php.net/ Source0: php-gtk-%{version}.tar.gz Patch0: php-gtk.gtkhtml.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel BuildRequires: php-cli BuildRequires: gtk+extra-devel BuildRequires: gtkhtml3-devel BuildRequires: libsexy BuildRequires: gtksourceview-devel BuildRequires: gtkspell-devel BuildRequires: libsexy-devel BuildRequires: xulrunner-devel-unstable %if %{?php_zend_api}0 Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} %else Requires: php-api = %{php_apiver} %endif Requires: php-cli Requires: gtk2 Requires: gtkhtml3 Requires: gtksourceview Requires: libglade2 Requires: libsexy Requires: gtkspell Requires: gecko-libs = 1.9.0.1 %description PHP-GTK is an extension for the PHP programming language that implements language bindings for GTK+. It provides an object-oriented interface to GTK+ classes and functions and greatly simplifies writing client-side cross-platform GUI applications %prep %setup -q %patch %build ./buildconf %configure --with-extra --with-html --with-libglade --with-libsexy --with-mozembed --with-sourceview --with-spell --enable-scintilla sed -i "s;EXTENSION_DIR = %{_libdir}/php/modules;EXTENSION_DIR = $RPM_BUILD_ROOT/%{_libdir}/php/modules;" Makefile %{__make} %{?_smp_mflags} INSTALL_ROOT=%{buildroot} %install rm -rf $RPM_BUILD_ROOT #create php-gtk runtime tee php-gtk < 2.0.1-3.fc9 - PHP api version test (Thanks To Remi Collet) - Useless Build Requires removed (Thanks To Remi Collet) * Wed Aug 20 2008 Patrice Ferlet 2.0.1-2.fc9 - minor changes - BuildRequires and extdir macro added from http://rpms.famillecollet.com/files/php-gtk.spec - script to run php with php-gtk script, idea taken from http://rpms.famillecollet.com/files/php-gtk.spec * Thu Aug 14 2008 Patrice Ferlet 2.0.1-1.fc9 - Initial package - Use Patch from: http://rpms.famillecollet.com/files/php-gtk-html318.patch for gtk_html compatibility