2019-07-08 14:49:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package ade
|
|
|
|
#
|
2022-01-19 13:38:42 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-07-08 14:49:20 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-29 12:59:56 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-07-08 14:49:20 +02:00
|
|
|
#
|
|
|
|
|
2019-08-29 12:59:56 +02:00
|
|
|
|
2019-09-10 21:32:57 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
|
|
|
|
|
|
|
%bcond_without tests
|
2019-07-08 14:49:20 +02:00
|
|
|
%bcond_with docs
|
2019-09-10 21:32:57 +02:00
|
|
|
%bcond_with tutorials
|
2019-07-08 14:49:20 +02:00
|
|
|
|
|
|
|
Name: ade
|
2019-09-10 21:32:57 +02:00
|
|
|
Version: 0.1.1f
|
2019-07-08 14:49:20 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Graph construction, manipulation, and processing framework
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-12-08 21:18:38 +01:00
|
|
|
URL: https://opencv.org/
|
2019-07-08 14:49:20 +02:00
|
|
|
Source0: https://github.com/opencv/ade/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: c++_compiler
|
2019-08-29 12:59:56 +02:00
|
|
|
BuildRequires: cmake > 3.2
|
2019-07-08 14:49:20 +02:00
|
|
|
%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
|
|
|
|
# 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 \
|
2019-09-10 21:32:57 +02:00
|
|
|
%{?with_tutorials:-DBUILD_ADE_TUTORIAL=ON} \
|
|
|
|
%{?with_docs:-DBUILD_ADE_DOCUMENTATION=ON} \
|
|
|
|
%{?with_tests:-DGTEST_ROOT:PATH=%{_prefix} -DENABLE_ADE_TESTING=ON} \
|
|
|
|
|
2019-07-08 14:49:20 +02:00
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2019-09-10 21:32:57 +02:00
|
|
|
%if %{with tests}
|
|
|
|
rm %{buildroot}%{_bindir}/ade-tests
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tests}
|
2022-01-19 13:38:42 +01:00
|
|
|
%check
|
2019-09-10 21:32:57 +02:00
|
|
|
%ctest
|
|
|
|
%endif
|
2019-07-08 14:49:20 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_includedir}/ade
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%dir %{_datadir}/ade
|
|
|
|
%{_datadir}/ade/*.cmake
|
|
|
|
|
|
|
|
%changelog
|