From 312f89bf4ab6b61264ef265ad0953e73c531d27bb32f458eb97c620d08987286 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Mon, 8 Jul 2019 12:49:20 +0000 Subject: [PATCH] Accepting request 713637 from home:StefanBruens:branches:KDE:Extra This is a optional, but recommended dependency for openCV 4. - Initial package version OBS-URL: https://build.opensuse.org/request/show/713637 OBS-URL: https://build.opensuse.org/package/show/science/ade?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + Silence_redundant-move_warning.patch | 23 ++++++++ ade-0.1.1d.tar.gz | 3 ++ ade.changes | 4 ++ ade.spec | 80 ++++++++++++++++++++++++++++ 6 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Silence_redundant-move_warning.patch create mode 100644 ade-0.1.1d.tar.gz create mode 100644 ade.changes create mode 100644 ade.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Silence_redundant-move_warning.patch b/Silence_redundant-move_warning.patch new file mode 100644 index 0000000..7ae588a --- /dev/null +++ b/Silence_redundant-move_warning.patch @@ -0,0 +1,23 @@ +From 08238a4e62e88ad976352c983f8212439a8f901e Mon Sep 17 00:00:00 2001 +From: Pavel Grunt +Date: Thu, 13 Jun 2019 10:40:14 +0200 +Subject: [PATCH] Silence redundant-move warning + +Happens with gcc-9.1 +--- + sources/ade/source/execution_engine.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sources/ade/source/execution_engine.cpp b/sources/ade/source/execution_engine.cpp +index fbc4b1d..3bc10a1 100644 +--- a/sources/ade/source/execution_engine.cpp ++++ b/sources/ade/source/execution_engine.cpp +@@ -138,7 +138,7 @@ std::unique_ptr ExecutionEngine::createExecutable(const Graph& graph + } + } + +- return std::move(ret); ++ return ret; + } + + void ExecutionEngine::addExecutableDependency(const std::string& lazyPassName) diff --git a/ade-0.1.1d.tar.gz b/ade-0.1.1d.tar.gz new file mode 100644 index 0000000..a5054ab --- /dev/null +++ b/ade-0.1.1d.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6d84dae252f8244d4eebb5241715e3339edd86dbbc80a2fc5953c94e6d3eb00 +size 115694 diff --git a/ade.changes b/ade.changes new file mode 100644 index 0000000..8f63ada --- /dev/null +++ b/ade.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jul 2 21:27:53 UTC 2019 - Stefan BrĂ¼ns + +- Initial package version diff --git a/ade.spec b/ade.spec new file mode 100644 index 0000000..73629bd --- /dev/null +++ b/ade.spec @@ -0,0 +1,80 @@ +# +# spec file for package ade +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%bcond_with tests +%bcond_with docs +%bcond_without tutorials + +Name: ade +Version: 0.1.1d +Release: 0 +Summary: Graph construction, manipulation, and processing framework +License: Apache-2.0 +Group: Development/Libraries/C and C++ +Url: http://opencv.org/ +Source0: https://github.com/opencv/ade/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/opencv/ade/pull/15.patch +Patch0: Silence_redundant-move_warning.patch +BuildRequires: cmake > 3.2 +BuildRequires: c++_compiler +%if %{with tests} +BuildRequires: gtest +%endif +%if %{with doc} +BuildRequires: doxygen +%endif + +%description +A graph construction, manipulation, and processing framework. It is suitable +for organizing data flow processing and execution. + +%package devel +Summary: Development files for using ade +Group: Development/Libraries/C and C++ + +%description devel +A graph construction, manipulation, and processing framework. It is suitable +for organizing data flow processing and execution. + +%prep +%setup -q +%patch0 -p1 +# fixup library install directory (i.e. use CMake default) +sed -i -e 's@ DESTINATION lib@ DESTINATION ${CMAKE_INSTALL_LIBDIR}@' sources/ade/CMakeLists.txt + +%build +%cmake \ + %{?with tutorials:-DBUILD_ADE_TUTORIAL=ON} \ + %{?with docs:-DBUILD_ADE_DOCUMENTATION=ON} \ + +%cmake_build + +%install +%cmake_install + +%post +%postun + +%files devel +%license LICENSE +%doc README.md +%{_includedir}/ade +%{_libdir}/*.a +%dir %{_datadir}/ade +%{_datadir}/ade/*.cmake + +%changelog