Change CMake commands
This commit is contained in:
parent
0e48e9628a
commit
5217bd1646
1 changed files with 8 additions and 8 deletions
16
seqan2.spec
16
seqan2.spec
|
|
@ -1,5 +1,3 @@
|
|||
%global __cmake_in_source_build 1
|
||||
|
||||
# Tests need Python2 to be executed
|
||||
%global with_check 0
|
||||
|
||||
|
|
@ -93,6 +91,7 @@ Provides: seqan = 0:%{version}-%{release}
|
|||
%description apps
|
||||
All SeqAn applications.
|
||||
|
||||
|
||||
%package headers
|
||||
Summary: SeqAn (2.x.x) headers only files
|
||||
|
||||
|
|
@ -110,6 +109,7 @@ Provides: bundled(zipstream)
|
|||
%description headers
|
||||
C headers files of SeqAn, including pkgconfig and CMake configuration files.
|
||||
|
||||
|
||||
%package examples
|
||||
Summary: SeqAn (2.x.x) examples
|
||||
Requires: %{name}-apps%{?_isa} = %{version}-%{release}
|
||||
|
|
@ -164,9 +164,9 @@ cp -p apps/rabema/COPYING apps/rabema/rabema-COPYING
|
|||
rm -rf util/py_lib/seqan/dox/tpl/lib/font-awesome/*
|
||||
|
||||
%build
|
||||
mkdir -p build/library && pushd build/library
|
||||
mkdir -p build/library
|
||||
SEQAN_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
%cmake \
|
||||
%cmake -S ./ -B build/library \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SEQAN_OPT_FLAGS -DNDEBUG" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||
-DCMAKE_INSTALL_DOCDIR:STRING=share/doc/%{name} \
|
||||
|
|
@ -184,13 +184,13 @@ SEQAN_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|||
-DSPHINX_EXECUTABLE:FILEPATH=%{_bindir}/sphinx-build \
|
||||
-DSPHINX_MAN_OUTPUT:BOOL=ON \
|
||||
-DSPHINX_TEXT_OUTPUT:BOOL=ON \
|
||||
-DYARA_LARGE_CONTIGS:BOOL=OFF ../..
|
||||
-DYARA_LARGE_CONTIGS:BOOL=OFF
|
||||
%make_build
|
||||
popd
|
||||
|
||||
mkdir -p build/Release && pushd build/Release
|
||||
mkdir -p build/Release
|
||||
SEQAN_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
%cmake \
|
||||
%cmake -S ./ -B build/Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SEQAN_OPT_FLAGS -DNDEBUG" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||
-DCMAKE_INSTALL_DOCDIR:STRING=share/doc/%{name} \
|
||||
|
|
@ -208,7 +208,7 @@ SEQAN_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|||
-DYARA_LARGE_CONTIGS:BOOL=OFF \
|
||||
-DSPHINX_EXECUTABLE:FILEPATH=%{_bindir}/sphinx-build \
|
||||
-DSPHINX_MAN_OUTPUT:BOOL=ON \
|
||||
-DSPHINX_TEXT_OUTPUT:BOOL=ON ../..
|
||||
-DSPHINX_TEXT_OUTPUT:BOOL=ON
|
||||
# Disable parallel Make jobs to prevent compiler errors
|
||||
make -O -j1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue