Accepting request 729948 from home:StefanBruens:branches:science

Fix build with LTO, update

OBS-URL: https://build.opensuse.org/request/show/729948
OBS-URL: https://build.opensuse.org/package/show/science/ade?expand=0&rev=4
This commit is contained in:
Stefan Brüns 2019-09-10 19:32:57 +00:00 committed by Git OBS Bridge
parent 36318933a4
commit 4dd498f6c1
4 changed files with 28 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6d84dae252f8244d4eebb5241715e3339edd86dbbc80a2fc5953c94e6d3eb00
size 115694

3
ade-0.1.1f.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c316680efbb5dd3ac4e10bb8cea345cf26a6a25ebc22418f8f0b8ca931a550e9
size 116074

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Sep 10 18:55:12 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Update to version 0.1.1f
- Drop upstream Silence_redundant-move_warning.patch
- Use -ffat-lto-objects to provide a proper static library.
- Run tests by default
-------------------------------------------------------------------
Mon Aug 26 09:24:28 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -16,20 +16,20 @@
#
%bcond_with tests
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%bcond_without tests
%bcond_with docs
%bcond_without tutorials
%bcond_with tutorials
Name: ade
Version: 0.1.1d
Version: 0.1.1f
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}
@ -53,19 +53,28 @@ 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} \
%{?with_tutorials:-DBUILD_ADE_TUTORIAL=ON} \
%{?with_docs:-DBUILD_ADE_DOCUMENTATION=ON} \
%{?with_tests:-DGTEST_ROOT:PATH=%{_prefix} -DENABLE_ADE_TESTING=ON} \
%cmake_build
%install
%cmake_install
%if %{with tests}
rm %{buildroot}%{_bindir}/ade-tests
%endif
%check
%if %{with tests}
%ctest
%endif
%files devel
%license LICENSE