Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:siegel
llvm-cling
llvm-cling.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File llvm-cling.spec of Package llvm-cling
# # spec file for package llvm-cling # # Copyright (c) 2015 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 # 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 1495572938.2a34248cb94 %define clang_version 1497089214.1f8b137c7e Name: llvm-cling Version: 0.5.1509640152.0f1d6d24 Release: 0 Summary: Cling interactive C++ interpreter License: NCSA Group: Development/Languages/Other Url: http://root.cern.ch/drupal/content/cling Source0: llvm-%{llvm_version}.tar.xz Source1: clang-%{clang_version}.tar.xz Source2: cling-%{version}.tar.xz Source100: %{name}-rpmlintrc Patch1: clang-resourcedirs.patch Patch2: llvm-config-lib64.patch Patch3: cling-syslibs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: binutils-devel >= 2.21.90 BuildRequires: bison BuildRequires: cmake BuildRequires: fdupes BuildRequires: flex BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: groff BuildRequires: libffi-devel BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: ninja BuildRequires: python-base %description Cling is an interactive C++ interpreter, built on the top of LLVM and Clang libraries. %prep %setup -q -a 1 -a 2 -n llvm-%{llvm_version} mv clang-%{clang_version} tools/clang mv cling-%{version} tools/cling #%patch1 #%if "%{_lib}" == "lib64" #%patch2 #%endif #%patch3 #sed -i s,CLANG_RESOURCE_DIR,'"../%{_lib}/cling"',g tools/clang/lib/Driver/Driver.cpp #sed -i s,LLVM_LIBDIR,%{_lib}, \ # tools/clang/lib/Driver/Driver.cpp \ # tools/clang/lib/Frontend/CompilerInvocation.cpp \ # tools/cling/lib/Interpreter/CIFactory.cpp %build mkdir build || true cd build #%if "%{_lib}" == "lib64" # ln -sf lib lib64 #%endif cmake -G "Ninja" \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCLANG_RESOURCE_DIR="../%{_lib}/cling" \ %if "%{_lib}" == "lib64" -DLLVM_LIBDIR_SUFFIX=64 \ %endif -DLLVM_REQUIRES_RTTI=ON \ -DLLVM_ENABLE_TIMESTAMPS=OFF \ -DLLVM_ENABLE_ASSERTIONS=OFF \ -DLLVM_ENABLE_PIC=ON \ -DLLVM_BINUTILS_INCDIR=/usr/include \ -DLLVM_TARGETS_TO_BUILD=host \ -DLLVM_INCLUDE_TESTS=OFF \ .. ninja %{?_smp_mflags} clang ninja %{?_smp_mflags} %install cd build DESTDIR=%{buildroot} ninja install cd .. mv %{buildroot}%{_libdir}/clang/* %{buildroot}%{_libdir}/cling mv %{buildroot}%{_includedir}/cling %{buildroot}%{_libdir}/cling/include rm -rf %{buildroot}%{_includedir} %{buildroot}%{_datadir} %{buildroot}/usr/libexec (cd %{buildroot}%{_bindir} && ls | grep -v 'cling$' | xargs -d'\n' rm -rf) (cd %{buildroot}%{_libdir} && ls | grep -v 'cling$' | xargs -d'\n' rm -rf) %files %defattr(-,root,root) %{_bindir}/cling %{_libdir}/cling/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor