Author: glen Date: Mon Mar 19 08:48:02 2007 GMT Module: SPECS Tag: AC-branch ---- Log message: - new php extension macros
---- Files affected: SPECS: redland-bindings.spec (1.34.2.5 -> 1.34.2.6) ---- Diffs: ================================================================ Index: SPECS/redland-bindings.spec diff -u SPECS/redland-bindings.spec:1.34.2.5 SPECS/redland-bindings.spec:1.34.2.6 --- SPECS/redland-bindings.spec:1.34.2.5 Mon Mar 19 06:19:09 2007 +++ SPECS/redland-bindings.spec Mon Mar 19 09:47:57 2007 @@ -31,13 +31,13 @@ URL: http://librdf.org/bindings/ BuildRequires: autoconf >= 2.53 BuildRequires: automake >= 1:1.7 +%{?with_java:BuildRequires: jdk} BuildRequires: libtool BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: python-devel BuildRequires: redland-devel >= 1.0.5 BuildRequires: rpm-perlprov >= 4.1-13 -BuildRequires: rpmbuild(macros) >= 1.322 -%{?with_java:BuildRequires: jdk} +BuildRequires: rpmbuild(macros) >= 1.344 %if %{with mono} BuildRequires: mono-csharp BuildRequires: rpmbuild(monoautodeps) @@ -71,7 +71,6 @@ %else %define tcldir %{_libdir}/tcl8.4 %endif -%define phpdir %(php-config --extension-dir 2>/dev/null) %description Redland is a library that provides a high-level interface for the @@ -130,28 +129,30 @@ Perlowy interfejs do biblioteki Redland RDF. %package -n php4-redland -Summary: PHP bindings for Redland RDF library -Summary(pl): Interfejs PHP do biblioteki Redland RDF +Summary: PHP 4.x bindings for Redland RDF library +Summary(pl): Interfejs PHP 4.x do biblioteki Redland RDF Group: Libraries %{?requires_php_extension} +Requires: php4-common >= 3:4.4.0-3 %description -n php4-redland -PHP bindings for Redland RDF library. +PHP 4.x bindings for Redland RDF library. %description -n php4-redland -l pl -Interfejs PHP do biblioteki Redland RDF. +Interfejs PHP 4.x do biblioteki Redland RDF. %package -n php-redland -Summary: PHP bindings for Redland RDF library -Summary(pl): Interfejs PHP do biblioteki Redland RDF +Summary: PHP 5.x bindings for Redland RDF library +Summary(pl): Interfejs PHP 5.x do biblioteki Redland RDF Group: Libraries %{?requires_php_extension} +Requires: php-common >= 4:5.0.4 %description -n php-redland -PHP bindings for Redland RDF library. +PHP 5.x bindings for Redland RDF library. %description -n php-redland -l pl -Interfejs PHP do biblioteki Redland RDF. +Interfejs PHP 5.x do biblioteki Redland RDF. %package -n python-redland Summary: Python bindings for Redland RDF library @@ -248,26 +249,35 @@ %{?with_java:rm -f $RPM_BUILD_ROOT%{_libdir}/java/librdf-java.la} %if %{with php} -install -d $RPM_BUILD_ROOT{%{_sysconfdir}/php%{?with_php4:4}/conf.d,%{phpdir}} -cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/php%{?with_php4:4}/conf.d/redland.ini +install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}} +cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/redland.ini ; Enable redland bindings module extension=redland.so EOF # make .so executable so that rpm would add autodeps on .so files -chmod +x $RPM_BUILD_ROOT%{phpdir}/*.so +chmod +x $RPM_BUILD_ROOT%{php_extensiondir}/*.so %endif +rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod +rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RDF/Redland/CORE/.packlist + %clean rm -rf $RPM_BUILD_ROOT -%post -n php%{?with_php4:4}-redland -[ ! -f /etc/apache/conf.d/??_mod_php.%{?with_php4:4}conf ] || %service -q apache restart -[ ! -f /etc/httpd/httpd.conf/??_mod_php%{?with_php4:4}.conf ] || %service -q httpd restart +%post -n php-redland +%php_webserver_restart + +%postun -n php-redland +if [ "$1" = 0 ]; then + %php_webserver_restart +fi -%postun -n php%{?with_php4:4}-redland +%post -n php4-redland +%php4_webserver_restart + +%postun -n php4-redland if [ "$1" = 0 ]; then - [ ! -f /etc/apache/conf.d/??_mod_php%{?with_php4:4}.conf ] || %service -q apache restart - [ ! -f /etc/httpd/httpd.conf/??_mod_php%{?with_php4:4}.conf ] || %service -q httpd restart + %php4_webserver_restart fi %files @@ -284,7 +294,7 @@ %files -n java-redland %defattr(644,root,root,755) %doc docs/java.html -%{_libdir}/java/librdf-java.so* +%attr(755,root,root) %{_libdir}/java/librdf-java.so* %{_javadir}/librdf-java.jar %endif @@ -305,8 +315,8 @@ %files -n php%{?with_php4:4}-redland %defattr(644,root,root,755) %doc docs/php.html -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php%{?with_php4:4}/conf.d/redland.ini -%attr(755,root,root) %{phpdir}/redland.so +%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/redland.ini +%attr(755,root,root) %{php_extensiondir}/redland.so %endif %files -n python-redland @@ -338,6 +348,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.34.2.6 2007/03/19 08:47:57 glen +- new php extension macros + Revision 1.34.2.5 2007/03/19 05:19:09 ankry - fix bcond comment ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/redland-bindings.spec?r1=1.34.2.5&r2=1.34.2.6&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
