public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Set linters as optional, adaptation of Diego Herrera PR
@ 2026-08-28 13:32 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-28 13:32 UTC (permalink / raw)
  To: git-commits

            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 } \

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-28 13:32 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:32 [rpms/opencv] opencv5: Set linters as optional, adaptation of Diego Herrera PR 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox