1 Summary: PHP language bindings for GTK+ toolkit
2 Summary(pl): Modu³ PHP z wi±zaniami do GTK+
11 Source0: %{name}-%{version}.tar.gz
12 URL: http://gtk.php.net/
13 BuildRequires: automake
14 BuildRequires: autoconf
15 BuildRequires: php-devel
16 BuildRequires: php-cgi
17 BuildRequires: libglade-devel
18 BuildRequires: gtk+-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sysconfdir /etc/php
25 PHP-GTK is a PHP extension that enables you to write client-side cross-platform
26 GUI applications. This is the first such extension of this kind and one of the
27 goals behind it was to prove that PHP is a capable general-purpose scripting
28 language that is suited for more than just Web applications.
30 This extension will _not_ allow you to display GTK+ programs in a Web browser,
31 and cannot be used in the Web environment. It is intended for creating
32 standalone GUI applications.
35 PHP-GTK jest rozszerzeniem PHP które pozwala pisaæ klienckie przeno¶ne
36 aplikacje typu GUI. To jest pierwsze roszerzenie tego typu i jednym z
37 celów które przy¶wieca³y jego autorom by³o pokazanie ¿e PHP jest jêzykiem
38 skryptowym ogólnego zastosowania, który pasuje do czego¶ wiêcej ni¿ tylko
41 To roszerzenie _nie_pozwoli_ Ci u¿ywaæ programów korzystaj±cych GTK+ przez
42 przegl±darkê i nie mo¿e byæ u¿ywane w ¶rodowisku webowym. Jest
43 przeznaczone do tworzenia samodzielnych aplikacji GUI.
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_libdir}/php
59 install modules/php_gtk.so $RPM_BUILD_ROOT%{_libdir}/php/gtk.so
61 gzip -9nf ChangeLog AUTHORS TODO NEWS
64 %{_sbindir}/php-module-install install gtk %{_sysconfdir}/php.ini
67 if [ "$1" = "0" ]; then
68 %{_sbindir}/php-module-install remove gtk %{_sysconfdir}/php.ini
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_libdir}/php/*.so