SPECS: php-gtk.spec - updated from php4-gtk (1.0.2). doesn't build...

glen glen at pld-linux.org
Thu Sep 15 20:23:49 CEST 2005


Author: glen                         Date: Thu Sep 15 18:23:49 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated from php4-gtk (1.0.2). doesn't build php-gtk doesn't support php5?

---- Files affected:
SPECS:
   php-gtk.spec (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SPECS/php-gtk.spec
diff -u SPECS/php-gtk.spec:1.27 SPECS/php-gtk.spec:1.28
--- SPECS/php-gtk.spec:1.27	Wed Sep  7 16:14:52 2005
+++ SPECS/php-gtk.spec	Thu Sep 15 20:23:44 2005
@@ -1,26 +1,28 @@
 # $Revision$, $Date$
+%define		_modname	gtk
+%define		_sysconfdir	/etc/php
+%define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
 Summary:	PHP language bindings for GTK+ toolkit
 Summary(pl):	Moduł PHP z wiązaniami do GTK+
 Name:		php-gtk
-Version:	1.0.1
+Version:	1.0.2
 Release:	0.1
 License:	GPL
 Group:		Libraries
 Source0:	http://gtk.php.net/distributions/%{name}-%{version}.tar.gz
-# Source0-md5:	f6a884cc740086e246c2c0b0e6752214
+# Source0-md5:	b11859c0778e40e53a14919a589db464
 Patch0:		%{name}-object.patch
 Patch1:		%{name}-generator.patch
 URL:		http://gtk.php.net/
-BuildRequires:	php-cgi
-BuildRequires:	php-devel >= 3:4.3.0
-BuildRequires:	php-devel < 3:4.4
-BuildRequires:	libglade-devel
 BuildRequires:	gtk+2-devel >= 1:2.1.0
-Requires:	php-cgi
+BuildRequires:	libglade-devel
+BuildRequires:	php-cli >= 3:5.0.0
+BuildRequires:	php-devel >= 3:5.0.0
+BuildRequires:	rpmbuild(macros) >= 1.238
+%{?requires_php_extension}
+Requires:	php-cli
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sysconfdir	/etc/php
-
 %description
 PHP-GTK is a PHP extension that enables you to write client-side
 cross-platform GUI applications. This is the first such extension of
@@ -44,21 +46,20 @@
 przeznaczone do tworzenia samodzielnych aplikacji GUI.
 
 %prep
-%setup -q
+%setup -q -n php_gtk-%{version}
 %patch0 -p1
 %patch1 -p1
 
 %build
 phpize
-%configure
-
+%configure \
+	--with-php-config=%{_bindir}/php-config
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/php
-
-install modules/php_gtk.so $RPM_BUILD_ROOT%{_libdir}/php/gtk.so
+install -d $RPM_BUILD_ROOT%{extensionsdir}
+install modules/php_gtk.so $RPM_BUILD_ROOT%{extensionsdir}/%{_modname}.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -66,7 +67,7 @@
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog AUTHORS TODO NEWS
-%attr(755,root,root) %{_libdir}/php/*.so
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -74,6 +75,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2005/09/15 18:23:44  glen
+- updated from php4-gtk (1.0.2). doesn't build php-gtk doesn't support php5?
+
 Revision 1.27  2005/09/07 14:14:52  glen
 - phpize already calls aclocal/autoconf
 
@@ -100,7 +104,7 @@
 - rel 0.1
 
 Revision 1.19  2003/10/02 08:23:52  adamg
-- removed %%post/preun - it didn't do anything anyway
+- removed %post/preun - it didn't do anything anyway
 
 Revision 1.18  2003/07/03 11:21:00  ggodlewski
 - patches for nest
@@ -131,7 +135,7 @@
 - release 2
 - added provides pear(gdk) pear(GtkWindow)
 - new doc
-STBR
+- STBR
 
 Revision 1.9  2002/03/14 15:57:12  baggins
 - updated to 0.5.0
@@ -145,7 +149,7 @@
   Group field using gettext).
 
 Revision 1.6  2002/01/18 02:14:36  kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
+- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
 
 Revision 1.5  2001/10/02 08:55:17  qboosh
 - added Source0 URL (note: current version is 0.1.1)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-gtk.spec?r1=1.27&r2=1.28&f=u




More information about the pld-cvs-commit mailing list