|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
#global llvm_version 15
|
|
|
|
|
%else
|
|
|
|
|
%global llvm_version 15
|
|
|
|
|
%global llvm_version 16
|
|
|
|
|
%endif
|
|
|
|
|
%global soversion 102
|
|
|
|
|
%global soversion 105
|
|
|
|
|
|
|
|
|
|
# bootstrapping is used for updating LDC to a newer version: it relies on an
|
|
|
|
|
# older, working LDC compiler in the buildroot, which is then used to build a
|
|
|
|
@ -16,15 +16,15 @@
|
|
|
|
|
|
|
|
|
|
Name: ldc
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 1.32.2%{?pre:~%{pre}}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 1.35.0
|
|
|
|
|
Release: 1%{?dist}.inferit
|
|
|
|
|
Summary: LLVM D Compiler
|
|
|
|
|
|
|
|
|
|
# The DMD frontend in dmd/* GPL version 1 or artistic license
|
|
|
|
|
# The files gen/asmstmt.cpp and gen/asm-*.hG PL version 2+ or artistic license
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/ldc-developers/ldc
|
|
|
|
|
Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}%{?pre:-%{pre}}/%{name}-%{version}%{?pre:-%{pre}}-src.tar.gz
|
|
|
|
|
Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
|
|
|
|
|
Source3: macros.%{name}
|
|
|
|
|
|
|
|
|
|
# Make sure /usr/include/d is in the include search path
|
|
|
|
@ -38,6 +38,9 @@ Patch1: ldc-no-default-rpath.patch
|
|
|
|
|
Patch2: 0001-Revert-Linux-Don-t-default-to-ld.gold-linker.patch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# https://github.com/ldc-developers/phobos/pull/72
|
|
|
|
|
Patch: fix-ppc-build.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{ldc_arches} ppc64le
|
|
|
|
|
|
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
@ -58,13 +61,6 @@ Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
|
|
|
|
# Require gcc for linking
|
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
|
|
# Removed in F33
|
|
|
|
|
Obsoletes: ldc-druntime-devel < 1:1.23.0
|
|
|
|
|
Obsoletes: ldc-jit-devel < 1:1.23.0
|
|
|
|
|
Obsoletes: ldc-phobos-devel < 1:1.23.0
|
|
|
|
|
# Removed in F38
|
|
|
|
|
Obsoletes: ldc-phobos-geany-tags < 1:1.32.0
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
LDC is a portable compiler for the D programming language with modern
|
|
|
|
|
optimization and code generation capabilities.
|
|
|
|
@ -75,11 +71,6 @@ of D, and relies on the LLVM Core libraries for code generation.
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: LLVM D Compiler libraries
|
|
|
|
|
License: Boost
|
|
|
|
|
# Removed in F35
|
|
|
|
|
Obsoletes: ldc-jit < 1:1.27.1
|
|
|
|
|
# Merged into -libs in F35
|
|
|
|
|
Obsoletes: ldc-druntime < 1:1.27.1-2
|
|
|
|
|
Obsoletes: ldc-phobos < 1:1.27.1-2
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
LDC is a portable compiler for the D programming language with modern
|
|
|
|
@ -88,7 +79,7 @@ optimization and code generation capabilities.
|
|
|
|
|
This package contains the Phobos D standard library and the D runtime library.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version}%{?pre:-%{pre}}-src -p1
|
|
|
|
|
%autosetup -n %{name}-%{version}-src -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# This package appears to be failing because links to the LLVM plugins
|
|
|
|
@ -99,11 +90,10 @@ This package contains the Phobos D standard library and the D runtime library.
|
|
|
|
|
%global optflags %{optflags} -fno-strict-aliasing
|
|
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
tar xf %{SOURCE0}
|
|
|
|
|
mkdir build-bootstrap
|
|
|
|
|
pushd build-bootstrap
|
|
|
|
|
cmake -DLLVM_CONFIG:PATH=llvm-config%{?llvm_version:-%{llvm_version}} \
|
|
|
|
|
../%{name}-%{version}%{?pre:-%{pre}}-src
|
|
|
|
|
..
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
@ -132,6 +122,7 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ldc2.conf
|
|
|
|
|
%{_bindir}/ldc2
|
|
|
|
|
%{_bindir}/ldmd2
|
|
|
|
|
%{_bindir}/ldc-build-plugin
|
|
|
|
|
%{_bindir}/ldc-build-runtime
|
|
|
|
|
%{_bindir}/ldc-profdata
|
|
|
|
|
%{_bindir}/ldc-prune-cache
|
|
|
|
@ -158,8 +149,25 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc
|
|
|
|
|
%{_libdir}/libphobos2-ldc-shared.so.%{soversion}*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri May 19 2023 Kalev Lember <klember@redhat.com> - 1:1.32.2-2
|
|
|
|
|
- Rebuild for llvm 15 on EPEL 8 and 9
|
|
|
|
|
* Thu Mar 28 2024 Alexey Lyubimov <a.lyubimov@msvsphere-os.ru> - 1:1.35.0-1.inferit
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Fri Nov 17 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 1:1.35.0-1
|
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
|
|
|
|
|
|
* Sun Oct 15 2023 Kalev Lember <klember@redhat.com> - 1:1.35.0-1
|
|
|
|
|
- Update to 1.35.0
|
|
|
|
|
- Drop old obsoletes
|
|
|
|
|
|
|
|
|
|
* Sun Aug 27 2023 Kalev Lember <klember@redhat.com> - 1:1.34.0-1
|
|
|
|
|
- Update to 1.34.0
|
|
|
|
|
- Build with llvm 16
|
|
|
|
|
|
|
|
|
|
* Mon Jul 24 2023 Kalev Lember <klember@redhat.com> - 1:1.33.0-1
|
|
|
|
|
- Update to 1.33.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.32.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun May 14 2023 Kalev Lember <klember@redhat.com> - 1:1.32.2-1
|
|
|
|
|
- Update to 1.32.2
|