From 4dd498f6c14ce95d1daac82e25508ca7effcf153e37035ef41a3e5d9aad9317e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Tue, 10 Sep 2019 19:32:57 +0000 Subject: [PATCH] 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 --- ade-0.1.1d.tar.gz | 3 --- ade-0.1.1f.tar.gz | 3 +++ ade.changes | 8 ++++++++ ade.spec | 25 +++++++++++++++++-------- 4 files changed, 28 insertions(+), 11 deletions(-) delete mode 100644 ade-0.1.1d.tar.gz create mode 100644 ade-0.1.1f.tar.gz diff --git a/ade-0.1.1d.tar.gz b/ade-0.1.1d.tar.gz deleted file mode 100644 index a5054ab..0000000 --- a/ade-0.1.1d.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6d84dae252f8244d4eebb5241715e3339edd86dbbc80a2fc5953c94e6d3eb00 -size 115694 diff --git a/ade-0.1.1f.tar.gz b/ade-0.1.1f.tar.gz new file mode 100644 index 0000000..ce699d0 --- /dev/null +++ b/ade-0.1.1f.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c316680efbb5dd3ac4e10bb8cea345cf26a6a25ebc22418f8f0b8ca931a550e9 +size 116074 diff --git a/ade.changes b/ade.changes index ba0ae51..9652eb4 100644 --- a/ade.changes +++ b/ade.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Sep 10 18:55:12 UTC 2019 - Stefan BrĂ¼ns + +- 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 diff --git a/ade.spec b/ade.spec index faa90b9..493bb7a 100644 --- a/ade.spec +++ b/ade.spec @@ -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