SHA256
1
0
forked from pool/ldc

Accepting request 614932 from home:Guillaume_G:branches:devel:languages:D

- Add tests, disabled by default (since we are missing python2-lit)

OBS-URL: https://build.opensuse.org/request/show/614932
OBS-URL: https://build.opensuse.org/package/show/devel:languages:D/ldc?expand=0&rev=15
This commit is contained in:
Guillaume GARDET 2018-06-07 13:05:36 +00:00 committed by Git OBS Bridge
parent 9878662e8a
commit f975a7997e
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 6 11:33:49 UTC 2018 - guillaume.gardet@opensuse.org
- Add tests, disabled by default (since we are missing python2-lit)
-------------------------------------------------------------------
Wed Jun 6 08:15:36 UTC 2018 - guillaume.gardet@opensuse.org

View File

@ -16,6 +16,7 @@
#
%bcond_without ldc_bootstrap
%bcond_with ldc_tests
Name: ldc
Version: 1.9.0
@ -36,6 +37,10 @@ Patch12: ldc-0.17.5-add_missing_include.patch
Patch13: ldc-0.17.5-default-to-pic.patch
%endif
BuildRequires: cmake
%if %{with ldc_tests}
BuildRequires: gcc-c++
BuildRequires: gdb
%endif
BuildRequires: help2man
BuildRequires: libconfig++-devel
BuildRequires: libcurl-devel
@ -48,7 +53,14 @@ BuildRequires: ldc-runtime-devel
BuildRequires: llvm-clang
BuildRequires: llvm-devel >= 3.7
BuildRequires: ncurses-devel
%if %{with ldc_tests}
BuildRequires: python
%endif
BuildRequires: sqlite3-devel
%if %{with ldc_tests}
BuildRequires: timezone
BuildRequires: unzip
%endif
BuildRequires: zlib-devel
# Should be installed, at least runtime
Recommends: ldc-phobos-devel = %{version}
@ -145,6 +157,13 @@ touch no-suse-rules
-DCMAKE_CXX_FLAGS="-std=c++11"
make %{?_smp_mflags}
%if %{with ldc_tests}
%check
pushd build/
make test
popd
%endif
%install
%cmake_install
# Build man pages