From d772ffd5b10f2f2a62074bc549cea390a31ea6fd Mon Sep 17 00:00:00 2001 From: remi Date: Jan 20 2012 16:58:51 +0000 Subject: PHP 5.4.0 Build --- diff --git a/libdigidocpp.spec b/libdigidocpp.spec index 03d28fc..48c9b9e 100644 --- a/libdigidocpp.spec +++ b/libdigidocpp.spec @@ -11,7 +11,7 @@ Name: libdigidocpp Version: 0.3.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Library for creating and validating BDoc and DDoc containers Group: System Environment/Libraries @@ -147,6 +147,17 @@ make %{?_smp_mflags} -C %{_target_platform} make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} +%check +%if 0%{?build_php_module} +# Minimal load test of php extension +LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ +php --no-php-ini \ + --define extension_dir=${RPM_BUILD_ROOT}%{php_extdir} \ + --define extension=digidoc.so \ + --modules | grep digidoc +%endif + + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -175,7 +186,7 @@ make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} %files -n php-digidoc %{php_extdir}/* %{_datadir}/php/* -%{_sysconfdir}/php.d/digidoc.ini +%config(noreplace) %{_sysconfdir}/php.d/digidoc.ini %endif %if 0%{?build_python_module} @@ -185,7 +196,12 @@ make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} %changelog -* Thu Jan 19 2012 Ralf Corsépius - 0.3.0-11 +* Thu Jan 19 2012 Remi Collet - 0.3.0-13 +- build against php 5.4.0 +- add %%check for php extension +- %%config flag for digidoc.ini + +* Thu Jan 19 2012 Ralf Corsépius - 0.3.0-12 - Add libdigidocpp-0.3.0-gcc47.patch (Fix mass rebuild FTBFS). * Fri Jan 13 2012 Fedora Release Engineering - 0.3.0-11