[libdigidocpp] PHP 5.4.0 Build

Remi Collet remi at fedoraproject.org
Fri Jan 20 16:59:20 UTC 2012


commit d772ffd5b10f2f2a62074bc549cea390a31ea6fd
Author: remi <fedora at famillecollet.com>
Date:   Fri Jan 20 17:58:51 2012 +0100

    PHP 5.4.0 Build

 libdigidocpp.spec |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)
---
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 <corsepiu at fedoraproject.org> - 0.3.0-11
+* Thu Jan 19 2012 Remi Collet <remi at fedoraproject.org> - 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 <corsepiu at fedoraproject.org> - 0.3.0-12
 - Add libdigidocpp-0.3.0-gcc47.patch (Fix mass rebuild FTBFS).
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.0-11


More information about the scm-commits mailing list