From e8cb9f1050c7559efe452532f89d3a84aada0a6f Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Fri, 5 Aug 2016 11:19:43 +0200 Subject: [PATCH] Use -Wl,--as-needed until dependencies are better sorted out upstream https://github.com/opencv/opencv/issues/7001 --- opencv.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index accc191..8d2fd42 100644 --- a/opencv.spec +++ b/opencv.spec @@ -10,9 +10,15 @@ %bcond_with xine %global srcname opencv +# Required because opencv-core has lot of spurious dependencies +# (despite supposed to be "-core") +# TODO: to be fixed properly upstream +# https://github.com/opencv/opencv/issues/7001 +%global optflags %(echo %{optflags} -Wl,--as-needed ) + Name: opencv Version: 3.1.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Collection of algorithms for computer vision Group: Development/Libraries # This is normal three clause BSD. @@ -355,6 +361,9 @@ popd %{_libdir}/libopencv_xphoto.so.3.1* %changelog +* Tue Jul 26 2016 Nicolas Chauvet - 3.1.0-8 +- Clean uneeded symbols until fixed upstream + * Tue Jul 19 2016 Fedora Release Engineering - 3.1.0-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages