Author: glen                         Date: Sun Jun 17 18:40:12 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- php macros

---- Files affected:
SPECS:
   php-gtk2.spec (1.45 -> 1.46) 

---- Diffs:

================================================================
Index: SPECS/php-gtk2.spec
diff -u SPECS/php-gtk2.spec:1.45 SPECS/php-gtk2.spec:1.46
--- SPECS/php-gtk2.spec:1.45    Sun Jun 17 20:32:23 2007
+++ SPECS/php-gtk2.spec Sun Jun 17 20:40:07 2007
@@ -5,7 +5,6 @@
 #
 %define                _modname        gtk2
 %define                _sysconfdir     /etc/php
-%define                extensionsdir   %(php-config --extension-dir 
2>/dev/null)
 %define                _snap           20070617
 %define                _rel    1
 Summary:       PHP language bindings for GTK+ toolkit
@@ -23,9 +22,10 @@
 BuildRequires: gtk+2-devel
 BuildRequires: php-devel >= 4:5.1
 BuildRequires: php-program
-BuildRequires: rpmbuild(macros) >= 1.322
-%{?requires_php_extension}
+BuildRequires: rpmbuild(macros) >= 1.344
 Requires:      php-cli
+%{?requires_php_extension}
+Requires:      php-common >= 4:5.0.4
 Provides:      php(gtk2)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -63,15 +63,15 @@
 
 %build
 ./buildconf \
-        --with-phpize=%{_bindir}/phpize
+       --with-phpize=%{_bindir}/phpize
 %configure \
        --with-php-config=%{_bindir}/php-config
 %{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
-install modules/php_gtk2.so $RPM_BUILD_ROOT%{extensionsdir}/%{_modname}.so
+install -d $RPM_BUILD_ROOT%{php_extensiondir}
+install modules/php_gtk2.so $RPM_BUILD_ROOT%{php_extensiondir}/%{_modname}.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -79,7 +79,7 @@
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog AUTHORS TODO2 NEWS
-%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -87,6 +87,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.46  2007/06/17 18:40:07  glen
+- php macros
+
 Revision 1.45  2007/06/17 18:32:23  adamg
 - note about build failure on Ac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-gtk2.spec?r1=1.45&r2=1.46&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to