Compare commits

...

2 Commits
master ... f25

Author SHA1 Message Date
Richard Shaw c7aa209cc7 Update opencv patch. 2017-02-20 19:17:55 -06:00
Richard Shaw 1bad9333c8 Add patch to remove dependency on Qt5. 2017-02-19 09:51:13 -06:00
2 changed files with 23 additions and 3 deletions

View File

@ -0,0 +1,15 @@
--- a/src/cmake/modules/FindOpenCV.cmake
+++ b/src/cmake/modules/FindOpenCV.cmake
@@ -51,9 +51,11 @@
)
-set (opencv_components opencv_highgui opencv_core)
+set (opencv_components opencv_core)
if (NOT ${OpenCV_VERSION} VERSION_LESS 3.0.0)
set (opencv_components opencv_videoio ${opencv_components})
+else ()
+ set (opencv_components opencv_highgui ${opencv_components})
endif ()
foreach (component ${opencv_components})
find_library (${component}_lib

View File

@ -3,17 +3,19 @@
Name: OpenImageIO
Version: 1.6.16
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Library for reading and writing images
Group: Development/Libraries
License: BSD
URL: https://sites.google.com/site/openimageio/home
Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}/%{name}-%{version}.tar.gz
# Images for test suite
#Source1: oiio-images.tar.gz
Patch0: OpenImageIO-as_needed.patch
BuildRequires: cmake gcc-c++
BuildRequires: txt2man
@ -95,7 +97,7 @@ Development files for package %{name}
%prep
%setup -q -n oiio-Release-%{version}
%autosetup -p1 -n oiio-Release-%{version}
# Remove bundled pugixml
rm -f src/include/OpenImageIO/pugixml.hpp \
@ -177,6 +179,9 @@ cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1
%changelog
* Sun Feb 19 2017 Richard Shaw <hobbes1069@gmail.com> - 1.6.16-2
- Add patch to remove dependency on Qt5.
* Tue Aug 2 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.16-1
- Update to latest upstream release.