OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/klee?expand=0&rev=10
119 lines
3.2 KiB
RPMSpec
119 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package klee
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
%define llvm_version 3_8
|
|
|
|
%define version_unconverted 1.3.0+20170221
|
|
|
|
%ifarch %{ix86} x86_64
|
|
%define with_uclibc 1
|
|
%else
|
|
%define with_uclibc 0
|
|
%endif
|
|
|
|
Name: klee
|
|
Summary: LLVM Execution Engine
|
|
License: NCSA
|
|
Group: Development/Languages/Other
|
|
Version: 1.3.0+20170221
|
|
Release: 0
|
|
Url: http://klee.github.io/
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: %{name}-rpmlintrc
|
|
Patch0: 0001-Make-KLEE-compile-against-LLVM-3.5-and-3.6.patch
|
|
Patch1: 0002-Make-KLEE-compile-against-LLVM-3.7.patch
|
|
Patch2: 0003-Make-KLEE-compile-against-LLVM-3.8.patch
|
|
BuildRequires: bison
|
|
BuildRequires: clang%{llvm_version}
|
|
BuildRequires: cmake
|
|
BuildRequires: flex
|
|
BuildRequires: gperftools-devel
|
|
%if %{with_uclibc}
|
|
BuildRequires: klee-uclibc
|
|
%endif
|
|
BuildRequires: libacl-devel
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libselinux-devel
|
|
BuildRequires: llvm%{llvm_version}-devel
|
|
BuildRequires: ninja
|
|
BuildRequires: python-base
|
|
BuildRequires: stp-devel
|
|
BuildRequires: xz
|
|
BuildRequires: zlib-devel
|
|
|
|
%description
|
|
KLEE is a symbolic virtual machine built on top of the LLVM compiler
|
|
infrastructure, and available under the UIUC open source license. For more
|
|
information on what KLEE is and what it can do, see the OSDI 2008 paper.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%define __builder ninja
|
|
# they use -DNDEBUG, but we cannot, hence setting CMAKE_C*_FLAGS
|
|
# SHARED libs do not work at all yet
|
|
%cmake \
|
|
-DCMAKE_C_COMPILER=clang \
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
|
-DENABLE_DOXYGEN=OFF \
|
|
-DENABLE_SOLVER_STP=ON \
|
|
-DENABLE_TCMALLOC=ON \
|
|
-DENABLE_UNIT_TESTS=OFF \
|
|
-DENABLE_SYSTEM_TESTS=OFF \
|
|
-DCMAKE_C_FLAGS="%optflags" \
|
|
-DCMAKE_CXX_FLAGS="%optflags" \
|
|
%if %{with_uclibc}
|
|
-DENABLE_POSIX_RUNTIME=ON \
|
|
-DENABLE_KLEE_UCLIBC=ON \
|
|
-DKLEE_UCLIBC_PATH=%{_libdir}/klee-uclibc/ \
|
|
%endif
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
|
%make_jobs
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.TXT NEWS README.md TODO.txt
|
|
%{_bindir}/gen-random-bout
|
|
%{_bindir}/kleaver
|
|
%{_bindir}/klee
|
|
%{_bindir}/klee-replay
|
|
%{_bindir}/klee-stats
|
|
%{_bindir}/ktest-tool
|
|
%{_includedir}/klee/
|
|
%{_libdir}/libkleeRuntest.so*
|
|
%dir %{_libdir}/klee/
|
|
%dir %{_libdir}/klee/runtime/
|
|
%{_libdir}/klee/runtime/klee-libc.bc
|
|
%{_libdir}/klee/runtime/kleeRuntimeIntrinsic.bc
|
|
%if %{with_uclibc}
|
|
%{_libdir}/klee/runtime/klee-uclibc.bca
|
|
%{_libdir}/klee/runtime/libkleeRuntimePOSIX.bca
|
|
%endif
|
|
|
|
%changelog
|