2024-01-06 03:35:26 +01:00
|
|
|
#% define bootstrap 1
|
2024-01-06 03:35:05 +01:00
|
|
|
Name: ldc
|
2024-05-15 22:06:51 +02:00
|
|
|
Version: 1.38.0
|
2024-03-22 00:31:10 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 03:35:05 +01:00
|
|
|
Summary: The LLVM-based D Compiler
|
|
|
|
Group: Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 03:35:05 +01:00
|
|
|
URL: https://wiki.dlang.org/LDC
|
2024-01-06 03:35:05 +01:00
|
|
|
Source: https://github.com/ldc-developers/ldc.git/v%{version}/ldc-%{version}.tar.bz2
|
|
|
|
Source1: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc2-%{version}-linux-x86_64.tar.xz
|
|
|
|
Source2: https://github.com/ldc-developers/ldc/releases/download/v1.2.0/ldc2-1.2.0-linux-x86.tar.xz
|
2024-01-06 03:35:12 +01:00
|
|
|
Source3: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc2-%{version}-linux-aarch64.tar.xz
|
2024-01-06 03:35:19 +01:00
|
|
|
Patch0: ldc-1.32.2-llvm-16-update_to_ir_include.patch
|
|
|
|
Patch1: ldc-1.32.2-llvm-16-context_usage.patch
|
|
|
|
Patch2: ldc-1.32.2-llvm-16-fix-ms_cxx_helper.patch
|
|
|
|
Patch3: ldc-1.32.2-llvm-16-stop_using_aggressive_combine.patch
|
|
|
|
Patch4: ldc-1.32.2-llvm-16-fix-aarch64-support.patch
|
|
|
|
Patch5: ldc-1.32.2-llvm-16-use_std_optional_api.patch
|
|
|
|
Patch6: ldc-1.32.2-llvm-16-add_llvm_profdata.patch
|
|
|
|
Patch7: ldc-1.32.2-llvm-16.0.4-use_std_optional_api.patch
|
2024-01-06 03:35:05 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-06 03:35:26 +01:00
|
|
|
BuildRequires: libllvm16-devel
|
2024-01-06 03:35:05 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 03:35:26 +01:00
|
|
|
BuildRequires: libldc-devel >= 1.35.0-1mamba
|
|
|
|
BuildRequires: liblld-devel >= 17.0.4-1mamba
|
2024-01-06 03:35:05 +01:00
|
|
|
BuildRequires: cmake
|
2024-01-06 03:35:26 +01:00
|
|
|
BuildRequires: llvm16
|
|
|
|
BuildRequires: libllvm16-devel
|
2024-01-06 03:35:05 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The LLVM-based D Compiler.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 03:35:19 +01:00
|
|
|
%if "%{?bootstrap}" != ""
|
2024-01-06 03:35:05 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
%setup -q -a1
|
|
|
|
%endif
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%setup -q -a2
|
|
|
|
%endif
|
2024-01-06 03:35:12 +01:00
|
|
|
%ifarch aarch64
|
|
|
|
%setup -q -a3
|
|
|
|
%endif
|
2024-01-06 03:35:05 +01:00
|
|
|
%else
|
|
|
|
%setup -q
|
|
|
|
%endif
|
2024-01-06 03:35:19 +01:00
|
|
|
|
2024-01-06 03:35:26 +01:00
|
|
|
#%patch 0 -p1 -b .llvm-16-update_to_ir_include
|
|
|
|
#%patch 1 -p1 -b .llvm-16-context_usage
|
|
|
|
#%patch 2 -p1 -b .llvm-16-add_llvm_profdata
|
|
|
|
#%patch 3 -p1 -b .llvm-16-fix-ms_cxx_helper
|
|
|
|
#%patch 4 -p1 -b .llvm-16-stop_using_aggressive_combine
|
|
|
|
#%patch 5 -p1 -b .llvm-16-fix-aarch64-support
|
|
|
|
#%patch 6 -p1 -b .llvm-16-use_std_optional_api
|
|
|
|
#%patch 7 -p1 -b .llvm-16.0.4-use_std_optional_api
|
2024-01-06 03:35:05 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -d build \
|
2024-01-06 03:35:12 +01:00
|
|
|
-DBUILD_SHARED_LIBS=BOTH \
|
|
|
|
-DBUILD_LTO_LIBS=ON \
|
2024-01-06 03:35:26 +01:00
|
|
|
-DLLVM_CONFIG:PATH=%{_libdir}/llvm16/bin/llvm-config \
|
2024-01-06 03:35:19 +01:00
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/dlang/ldc \
|
|
|
|
%if "%{?bootstrap}" != ""
|
2024-01-06 03:35:05 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
-DD_COMPILER=`pwd`/../ldc2-%{version}-linux-x86_64/bin/ldmd2
|
|
|
|
%endif
|
2024-01-06 03:35:12 +01:00
|
|
|
%ifarch aarch64
|
|
|
|
-DD_COMPILER=`pwd`/../ldc2-%{version}-linux-aarch64/bin/ldmd2
|
2024-01-06 03:35:05 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 03:35:12 +01:00
|
|
|
%make -j1
|
2024-01-06 03:35:05 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 03:35:26 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/ldc2.conf
|
|
|
|
%{_bindir}/ldc-build-plugin
|
2024-01-06 03:35:05 +01:00
|
|
|
%{_bindir}/ldc-build-runtime
|
|
|
|
%{_bindir}/ldc-profdata
|
2024-03-22 00:31:10 +01:00
|
|
|
%{_bindir}/ldc-profgen
|
2024-01-06 03:35:05 +01:00
|
|
|
%{_bindir}/ldc-prune-cache
|
|
|
|
%{_bindir}/ldc2
|
|
|
|
%{_bindir}/ldmd2
|
2024-01-06 03:35:19 +01:00
|
|
|
%{_bindir}/timetrace2txt
|
2024-01-06 03:35:05 +01:00
|
|
|
%{_datadir}/bash-completion/completions/ldc2
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libdruntime-ldc-debug-shared.so.*
|
|
|
|
%{_libdir}/libdruntime-ldc-shared.so.*
|
|
|
|
%{_libdir}/libphobos2-ldc-debug-shared.so.*
|
|
|
|
%{_libdir}/libphobos2-ldc-shared.so.*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 03:35:19 +01:00
|
|
|
%dir %{_includedir}/dlang/ldc
|
|
|
|
%{_includedir}/dlang/ldc/*
|
2024-01-06 03:35:06 +01:00
|
|
|
%{_libdir}/ldc_rt.dso.o
|
2024-01-06 03:35:05 +01:00
|
|
|
%{_libdir}/libdruntime-ldc-debug-shared.so
|
|
|
|
%{_libdir}/libdruntime-ldc-shared.so
|
2024-01-06 03:35:12 +01:00
|
|
|
%{_libdir}/libdruntime-ldc*.a
|
2024-01-06 03:35:05 +01:00
|
|
|
%{_libdir}/libphobos2-ldc-debug-shared.so
|
|
|
|
%{_libdir}/libphobos2-ldc-shared.so
|
2024-01-06 03:35:12 +01:00
|
|
|
%{_libdir}/libphobos2-ldc*.a
|
2024-01-06 03:35:05 +01:00
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%changelog
|
2024-05-15 22:06:51 +02:00
|
|
|
* Sun May 12 2024 Automatic Build System <autodist@openmamba.org> 1.38.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-22 00:31:10 +01:00
|
|
|
* Mon Mar 04 2024 Automatic Build System <autodist@openmamba.org> 1.37.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:35:26 +01:00
|
|
|
* Sun Nov 05 2023 Automatic Build System <autodist@mambasoft.it> 1.35.0-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libldc-devel>=1.35.0-1mamba
|
|
|
|
|
|
|
|
* Sat Nov 04 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.35.0-1mamba
|
|
|
|
- update to 1.35.0
|
|
|
|
|
2024-01-06 03:35:19 +01:00
|
|
|
* Sun May 28 2023 Automatic Build System <autodist@mambasoft.it> 1.32.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Apr 18 2023 Automatic Build System <autodist@mambasoft.it> 1.32.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Mar 14 2023 Automatic Build System <autodist@mambasoft.it> 1.32.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:35:12 +01:00
|
|
|
* Sun Mar 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.31.0-2mamba
|
|
|
|
- rebuiult with more cmake flags as attempt to fix 'Error: unrecognized trait classInstanceAlignment'
|
|
|
|
|
|
|
|
* Sun Feb 12 2023 Automatic Build System <autodist@mambasoft.it> 1.31.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Automatic Build System <autodist@mambasoft.it> 1.30.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:35:06 +01:00
|
|
|
* Mon May 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.29.0-2mamba
|
|
|
|
- rebuilt with llvm 14.0.3
|
|
|
|
|
|
|
|
* Mon Apr 11 2022 Automatic Build System <autodist@mambasoft.it> 1.29.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:35:05 +01:00
|
|
|
* Fri Jan 14 2022 Automatic Build System <autodist@mambasoft.it> 1.28.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:35:05 +01:00
|
|
|
* Sat Oct 23 2021 Automatic Build System <autodist@mambasoft.it> 1.28.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 18 2021 Automatic Build System <autodist@mambasoft.it> 1.27.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue May 04 2021 Automatic Build System <autodist@mambasoft.it> 1.26.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Mar 01 2021 Automatic Build System <autodist@mambasoft.it> 1.25.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 22 2021 Automatic Build System <autodist@mambasoft.it> 1.25.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Nov 14 2020 Automatic Build System <autodist@mambasoft.it> 1.24.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:35:05 +01:00
|
|
|
* Thu Oct 22 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.23.0-1mamba
|
|
|
|
- update to 1.23.0
|
|
|
|
|
2024-01-06 03:35:05 +01:00
|
|
|
* Wed May 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.0-1mamba
|
|
|
|
- update to 1.21.0
|
|
|
|
|
|
|
|
* Sat Jul 13 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.16.0-1mamba
|
|
|
|
- package created using the webbuild interface
|