mirror of
https://abf.rosa.ru/djam/lld.git
synced 2025-02-23 14:32:55 +00:00
85 lines
1.8 KiB
RPMSpec
85 lines
1.8 KiB
RPMSpec
%define major 9
|
|
%define libname %mklibname %{name} %{major}
|
|
%define devname %mklibname %{name} -d
|
|
|
|
%bcond_without git
|
|
|
|
Summary: The LLVM Linker
|
|
Name: lld
|
|
Version: 10.0.0
|
|
Release: 1
|
|
Group: Development/Other
|
|
License: NCSA
|
|
Url: http://llvm.org
|
|
%if %{with git}
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
|
|
%else
|
|
Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
|
|
%endif
|
|
BuildRequires: cmake
|
|
BuildRequires: llvm-devel = %{version}
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: zlib-devel
|
|
Requires: clang
|
|
Requires: llvm
|
|
Requires: llvm-plugins
|
|
|
|
%description
|
|
The LLVM project linker.
|
|
|
|
%files
|
|
%doc LICENSE.TXT
|
|
%{_bindir}/lld*
|
|
%{_bindir}/ld.lld
|
|
%{_bindir}/ld64.lld
|
|
%{_bindir}/wasm-ld
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
%package -n %{libname}
|
|
Summary: LLD shared libraries
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
Shared libraries for LLD.
|
|
|
|
%files -n %{libname}
|
|
%doc LICENSE.TXT
|
|
%{_libdir}/lib%{name}*.so.%{major}*
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
%package -n %{devname}
|
|
Summary: Libraries and header files for LLD
|
|
Group: Development/Other
|
|
Requires: %{libname} = %{EVRD}
|
|
Provides: %{name}-devel = %{EVRD}
|
|
|
|
%description -n %{devname}
|
|
This package contains library and header files needed to develop new native
|
|
programs that use the LLD infrastructure.
|
|
|
|
%files -n %{devname}
|
|
%doc LICENSE.TXT
|
|
%{_includedir}/lld
|
|
%{_libdir}/liblld*.so
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -qn %{name}-%{version}.src
|
|
|
|
%build
|
|
%cmake \
|
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
|
-DLLVM_DYLIB_COMPONENTS="all" \
|
|
%ifarch x86_64
|
|
-DLLVM_LIBDIR_SUFFIX=64
|
|
%else
|
|
-DLLVM_LIBDIR_SUFFIX=
|
|
%endif
|
|
|
|
%make -s
|
|
|
|
%install
|
|
%makeinstall_std -C build
|