public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Set linters as optional, adaptation of Diego Herrera PR
Date: Fri, 28 Aug 2026 13:32:17 GMT [thread overview]
Message-ID: <178792393794.1.16054960928888157316.rpms-opencv-bc3e3bc266ff@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : bc3e3bc266ffd54a49912546f3f0b194a6a67c15
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2022-10-01T15:19:55+01:00
Stats : +8/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/bc3e3bc266ffd54a49912546f3f0b194a6a67c15?branch=opencv5
Log:
Set linters as optional, adaptation of Diego Herrera PR
https://src.fedoraproject.org/rpms/opencv/pull-request/17#
---
diff --git a/opencv.spec b/opencv.spec
index 9c8a549..f0941e6 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -1,6 +1,8 @@
%undefine __cmake_in_source_build
%bcond_without tests
%bcond_without extras
+# linters are enabled by default if BUILD_DOCS OR BUILD_EXAMPLES
+%bcond_without linters
%bcond_with ffmpeg
%bcond_without gstreamer
%bcond_with eigen2
@@ -121,8 +123,10 @@ BuildRequires: zlib-devel
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: python3-numpy
+%{?with_linters:
BuildRequires: pylint
BuildRequires: python3-flake8
+}
BuildRequires: swig >= 1.3.24
%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9}
%if 0%{?fedora} || 0%{?rhel} > 7
@@ -332,7 +336,10 @@ install -pm 0644 %{SOURCE4} .cache/ade/
-DPYTHON3_EXECUTABLE=%{__python3} \
-DPYTHON3_PACKAGES_PATH=%{python3_sitearch} \
-DOPENCV_GENERATE_SETUPVARS=OFF \
- -DENABLE_PYLINT=ON \
+ %{!?with_linters: \
+ -DENABLE_PYLINT=OFF \
+ -DENABLE_FLAKE8=OFF \
+ } \
-DBUILD_PROTOBUF=OFF \
-DPROTOBUF_UPDATE_FILES=ON \
%{?with_opencl: -DOPENCL_INCLUDE_DIR=%{_includedir}/CL } \
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=178792393794.1.16054960928888157316.rpms-opencv-bc3e3bc266ff@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