Enable debuginof and parallel make check.
This commit is contained in:
parent
97d1821d7f
commit
b1313d5ead
1 changed files with 13 additions and 10 deletions
23
cppad.spec
23
cppad.spec
|
|
@ -13,16 +13,9 @@
|
|||
# https://fedoraproject.org/wiki/Packaging:Versioning
|
||||
Name: cppad
|
||||
Version: %{yyyymmdd}.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc
|
||||
|
||||
# As of yet there is no debug version installed for cppad_lib.
|
||||
# The user can compile with or without debugging using this library,
|
||||
# because CPPAD_DEBUG_AND_RELEASE is defined.
|
||||
# The library is currently very small and not tracing the debugger into it
|
||||
# should not be a problem. This may change in the future.
|
||||
%global debug_package %{nil}
|
||||
|
||||
License: EPL-2.0 or GPLv2+
|
||||
URL: http://coin-or.github.io/CppAD
|
||||
Source1: https://github.com/coin-or/CppAD/archive/%{version}.tar.gz
|
||||
|
|
@ -32,7 +25,7 @@ BuildRequires: gcc-c++
|
|||
BuildRequires: cmake >= 2.8
|
||||
BuildRequires: make
|
||||
|
||||
# Starting with f33, need to define this maco to build in source directory
|
||||
# Starting with f33, need to define this macro to build in source directory
|
||||
%define __cmake_in_source_build 1
|
||||
|
||||
%description
|
||||
|
|
@ -69,6 +62,12 @@ of %{name}-devel in
|
|||
The documentation, for the most recent version of %{name}, can be found at
|
||||
http://coin-or.github.io/CppAD
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# The user can compile with or without debugging using this library,
|
||||
# because the prep seciton ensures CPPAD_DEBUG_AND_RELEASE is defined.
|
||||
# The cppad_lib library has gotten larger, so we include a debug version.
|
||||
%debug_package
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# prep
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
@ -217,10 +216,14 @@ make install DESTDIR=%{buildroot}
|
|||
# -----------------------------------------------------------------------------
|
||||
# use the installed include files to compile and run the tests
|
||||
%check
|
||||
make check
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
%changelog
|
||||
* Sat Aug 01 2020 Brad Bell <bradbell at seanet dot com> - 20200000.0-7
|
||||
- Add _smp_mflags to the make check command (parallel make)
|
||||
- Build Debuginfo version of the cppad_lib library.
|
||||
|
||||
* Sat Aug 01 2020 Brad Bell <bradbell at seanet dot com> - 20200000.0-6
|
||||
- define __cmake_in_source_build see:
|
||||
https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue