36318933a4
- Remove pointless empty scriptlets OBS-URL: https://build.opensuse.org/request/show/726121 OBS-URL: https://build.opensuse.org/package/show/science/ade?expand=0&rev=3
79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
#
|
|
# 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 https://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: c++_compiler
|
|
BuildRequires: cmake > 3.2
|
|
%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
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_includedir}/ade
|
|
%{_libdir}/*.a
|
|
%dir %{_datadir}/ade
|
|
%{_datadir}/ade/*.cmake
|
|
|
|
%changelog
|