]> git.pld-linux.org Git - packages/exempi.git/blobdiff - exempi.spec
- updated boost dependency, required only for tests
[packages/exempi.git] / exempi.spec
index f22dbfe297784d5828a7524d47fc9e94a8d615a9..f37ce429ed209fbd5453d231ea5250c0bc985ad4 100644 (file)
@@ -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}
This page took 0.05872 seconds and 4 git commands to generate.