public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Put all idefs and ifarchs outside the scope of rpm conditional builds, rather
@ 2026-08-28 13:30
0 siblings, 0 replies; only message in thread
From: @ 2026-08-28 13:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 7b35b0523d79bec9c4b8a60d5c26e4cc0172dba3
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2016-05-04T15:00:33+01:00
Stats : +11/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/7b35b0523d79bec9c4b8a60d5c26e4cc0172dba3?branch=opencv5
Log:
Put all idefs and ifarchs outside the scope of rpm conditional builds, rather
than vice versa, as had organized some time ago, it seems to me more correct.
---
diff --git a/opencv.spec b/opencv.spec
index 1b7bc5e..31a2724 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -12,7 +12,7 @@
Name: opencv
Version: 3.1.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Collection of algorithms for computer vision
Group: Development/Libraries
# This is normal three clause BSD.
@@ -57,17 +57,17 @@ BuildRequires: libGL-devel
BuildRequires: libv4l-devel
BuildRequires: gtkglext-devel
BuildRequires: OpenEXR-devel
-%{?with_openni:
%ifarch %{ix86} x86_64
+%{?with_openni:
BuildRequires: openni-devel
BuildRequires: openni-primesense
-%endif
}
-%{?with_tbb:
+%endif
%ifarch %{ix86} x86_64 ia64 ppc %{power64} aarch64
+%{?with_tbb:
BuildRequires: tbb-devel
-%endif
}
+%endif
BuildRequires: zlib-devel pkgconfig
BuildRequires: python2-devel
BuildRequires: python3-devel
@@ -206,11 +206,9 @@ pushd build
%{!?with_sse3:-DENABLE_SSE3=OFF} \
-DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
-DBUILD_opencv_java=OFF \
-%{?with_tbb: \
%ifarch %{ix86} x86_64 ia64 ppc %{power64} aarch64
- -DWITH_TBB=ON \
+%{?with_tbb: -DWITH_TBB=ON } \
%endif
-} \
%{!?with_gstreamer:-DWITH_GSTREAMER=OFF} \
%{!?with_ffmpeg:-DWITH_FFMPEG=OFF} \
%{?with_cuda: \
@@ -219,11 +217,9 @@ pushd build
-DCUDA_VERBOSE_BUILD=ON \
-DCUDA_PROPAGATE_HOST_FLAGS=OFF \
} \
-%{?with_openni: \
%ifarch %{ix86} x86_64
- -DWITH_OPENNI=ON \
+%{?with_openni: -DWITH_OPENNI=ON } \
%endif
-} \
%{!?with_xine:-DWITH_XINE=OFF} \
-DBUILD_EXAMPLES=ON \
-DINSTALL_C_EXAMPLES=ON \
@@ -350,6 +346,10 @@ popd
%{_libdir}/libopencv_xphoto.so.3.1*
%changelog
+* Wed May 04 2016 Sérgio Basto <sergio@serjux.com> - 3.1.0-4
+- Put all idefs and ifarchs outside the scope of rpm conditional builds, rather
+than vice versa, as had organized some time ago, it seems to me more correct.
+
* Fri Apr 22 2016 Sérgio Basto <sergio@serjux.com> - 3.1.0-3
- Use always ON and OFF instead 0 and 1 in cmake command.
- Remove BUILD_TEST and TBB_LIB_DIR variables not used by cmake.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-28 13:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:30 [rpms/opencv] opencv5: Put all idefs and ifarchs outside the scope of rpm conditional builds, rather
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox