public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: if without tests also disable 500MB of extra tests
Date: Fri, 28 Aug 2026 13:32:23 GMT [thread overview]
Message-ID: <178792394398.1.7265281446470219240.rpms-opencv-74127b74f80c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 74127b74f80ce48df5348ea5fc062ab707d29985
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2023-04-14T16:59:44+01:00
Stats : +12/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/74127b74f80ce48df5348ea5fc062ab707d29985?branch=opencv5
Log:
if without tests also disable 500MB of extra tests
---
diff --git a/opencv.spec b/opencv.spec
index e737673..c0326fb 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -1,7 +1,11 @@
%undefine __cmake_in_source_build
%bcond_without tests
-%bcond_without extras
+%if %{without tests}
+%bcond_with extras_tests
+%else
+%bcond_without extras_tests
+%endif
# linters are enabled by default if BUILD_DOCS OR BUILD_EXAMPLES
%bcond_with linters
%bcond_with ffmpeg
@@ -70,7 +74,7 @@ Version: 4.7.0
%global minorver %(foo=%{version}; a=(${foo//./ }); echo ${a[1]} )
%global padding %(digits=00; num=%{minorver}; echo ${digits:${#num}:${#digits}} )
%global abiver %(echo %{majorver}%{padding}%{minorver} )
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Collection of algorithms for computer vision
# This is normal three clause BSD.
License: BSD
@@ -83,7 +87,7 @@ URL: https://opencv.org
#
Source0: %{name}-clean-%{version}.tar.gz
Source1: %{name}_contrib-clean-%{version}.tar.gz
-%{?with_extras:
+%{?with_extras_tests:
Source2: %{name}_extra-clean-%{version}.tar.gz
}
Source3: face_landmark_model.dat.xz
@@ -274,7 +278,7 @@ to provide decent performance and stability.
%prep
# autosetup doesn't work with 2 sources
# https://github.com/rpm-software-management/rpm/issues/1204
-%setup -q -a1 %{?with_extras:-a2}
+%setup -q -a1 %{?with_extras_tests:-a2}
%if 1
# we don't use pre-built contribs except quirc
pushd 3rdparty
@@ -365,7 +369,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/
-DWITH_OPENMP=ON \
-DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \
-DOPENCV_GENERATE_PKGCONFIG=ON \
-%{?with_extras: -DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata} \
+%{?with_extras_tests: -DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata} \
%{?with_gdcm: -DWITH_GDCM=ON } \
%{?with_libmfx: -DWITH_MFX=ON } \
%{?with_clp: -DWITH_CLP=ON } \
@@ -516,6 +520,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
%{_libdir}/libopencv_xphoto.so.{%{abiver},%{version}}
%changelog
+* Thu Apr 13 2023 Sérgio Basto <sergio@serjux.com> - 4.7.0-5
+- if without tests also disable 500MB of extra tests
+
* Mon Apr 03 2023 Sandro Mani <manisandro@gmail.com> - 4.7.0-4
- Rebuild (tesseract)
reply other threads:[~2026-08-28 13:32 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=178792394398.1.7265281446470219240.rpms-opencv-74127b74f80c@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