96 lines
2.6 KiB
RPMSpec
96 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
Name: ldc
|
|
Version: 0.16.1
|
|
Release: 0
|
|
License: BSD-3-Clause and Artistic-1.0
|
|
Summary: The LLVM D Compiler
|
|
Url: https://github.com/ldc-developers/ldc
|
|
Group: Development/Languages/Other
|
|
Source0: ldc-%{version}-src.tar.gz
|
|
# PATCH-FIX-OPENSUSE workaround-buggy-llvm-config.patch bnc#856691
|
|
Patch1: workaround-buggy-llvm-config.patch
|
|
BuildRequires: libconfig++-devel
|
|
BuildRequires: llvm-devel >= 3.0
|
|
BuildRequires: cmake
|
|
BuildRequires: llvm-clang
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: ncurses-devel
|
|
Recommends: ldc-runtime-devel = %{version}
|
|
Recommends: ldc-phobos-devel = %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
LDC is an LLVM based compiler for the D programming language. It uses the
|
|
frontend of the reference compiler (DMD), thereby supporting the same language
|
|
features, but profits from LLVM's superior optimizing and code generation
|
|
capabilities.
|
|
|
|
%package runtime-devel
|
|
Summary: Development files for the D runtime library
|
|
|
|
%description runtime-devel
|
|
This package contains the druntime development files necessary for developing
|
|
with LDC.
|
|
|
|
%package phobos-devel
|
|
Summary: Development files for the D standard library
|
|
|
|
%description phobos-devel
|
|
This package contains the Phobos development files necessary for developing
|
|
with LDC.
|
|
|
|
%prep
|
|
%setup -q -n ldc-%{version}-src
|
|
%patch1 -p1
|
|
|
|
%build
|
|
mkdir build
|
|
pushd build
|
|
cmake -DD_VERSION=2 \
|
|
-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
|
|
-DCMAKE_CXX_FLAGS=-std=c++11 \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} ..
|
|
make %{?_smp_mflags}
|
|
popd
|
|
|
|
%install
|
|
pushd build
|
|
%make_install
|
|
popd
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE README.md
|
|
%config %{_sysconfdir}/bash_completion.d/ldc2
|
|
%config %{_sysconfdir}/ldc2.conf
|
|
%{_bindir}/ldc2
|
|
%{_bindir}/ldmd2
|
|
|
|
%files runtime-devel
|
|
%defattr(-,root,root)
|
|
%{_prefix}/lib/libdruntime-ldc*.a*
|
|
%{_includedir}/d
|
|
|
|
%files phobos-devel
|
|
%defattr(-,root,root)
|
|
%{_prefix}/lib/libphobos2-ldc*.a*
|
|
|
|
%changelog
|
|
|