From 15484c2d3a4610f88497934f3c6f5622b26d84d11fc5ba0d1e7ec54f6dc282aa Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 16 Jul 2019 09:43:19 +0000 Subject: [PATCH] Build documentation in the build stage OBS-URL: https://build.opensuse.org/package/show/devel:tools/pam_wrapper?expand=0&rev=20 --- pam_wrapper.changes | 6 ++++++ pam_wrapper.spec | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pam_wrapper.changes b/pam_wrapper.changes index eaf62ab..2a0d859 100644 --- a/pam_wrapper.changes +++ b/pam_wrapper.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 16 09:42:49 UTC 2019 - Andreas Schneider + +- Build documentation in the build stage +- Use ctest macro + ------------------------------------------------------------------- Wed Sep 26 12:56:51 UTC 2018 - Andreas Schneider diff --git a/pam_wrapper.spec b/pam_wrapper.spec index 2cac196..3ab79fe 100644 --- a/pam_wrapper.spec +++ b/pam_wrapper.spec @@ -1,7 +1,7 @@ # # spec file for package pam_wrapper # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -115,19 +115,19 @@ the header files for libpamtest %setup -q %build +# CMAKE_SKIP_RPATH:BOOL=OFF is required to run the tests! %cmake \ - -DUNIT_TESTING=ON + -DUNIT_TESTING=ON \ + -DCMAKE_SKIP_RPATH:BOOL=OFF make %{?_smp_mflags} VERBOSE=1 +make %{?_smp_mflags} doc %install %cmake_install %check -pushd build -make %{?_smp_mflags} test || cat $(find Testing -name "*.log") -make %{?_smp_mflags} doc -popd +%ctest %post -p /sbin/ldconfig