public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Put all idefs and ifarchs outside the scope of rpm conditional builds, rather
Date: Fri, 28 Aug 2026 13:30:34 GMT [thread overview]
Message-ID: <178792383449.1.11151109717376524472.rpms-opencv-7b35b0523d79@fedoraproject.org> (raw)
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.
reply other threads:[~2026-08-28 13:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178792383449.1.11151109717376524472.rpms-opencv-7b35b0523d79@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox