[packages/exempi] - updated boost dependency, required only for tests
qboosh
qboosh at pld-linux.org
Fri Dec 14 22:49:22 CET 2018
commit 2c67cf8636ca81fa80c603373c465e6fa14a5a92
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Dec 14 22:53:55 2018 +0100
- updated boost dependency, required only for tests
exempi.spec | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/exempi.spec b/exempi.spec
index f22dbfe..f37ce42 100644
--- a/exempi.spec
+++ b/exempi.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
Summary: An XMP metadata support library
Summary(pl.UTF-8): Biblioteka obsługująca metadane XMP
Name: exempi
@@ -8,7 +12,7 @@ Group: Libraries
Source0: https://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
# Source0-md5: bb7a06ef8bbf79a59e32562b198daefd
URL: https://libopenraw.freedesktop.org/wiki/Exempi
-BuildRequires: boost-devel >= 1.33.1
+%{?with_tests:BuildRequires: boost-devel >= 1.48.0}
BuildRequires: expat-devel >= 1.95
BuildRequires: libstdc++-devel >= 6:4.4
BuildRequires: zlib-devel
@@ -65,10 +69,14 @@ Przykładowe programy używające biblioteki exempi.
%build
# configure fails on boost linking check
%configure \
- ax_cv_boost_unit_test_framework=no \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{!?with_tests:--disable-unittest}
%{__make}
+%if %{with tests}
+%{__make} check
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/exempi.git/commitdiff/2c67cf8636ca81fa80c603373c465e6fa14a5a92
More information about the pld-cvs-commit
mailing list