2018-04-03 22:27:35 +03:00
|
|
|
%define major 6
|
|
|
|
%define libname %mklibname %{name} %{major}
|
|
|
|
%define devname %mklibname %{name} -d
|
|
|
|
|
|
|
|
Summary: The LLVM Linker
|
2018-04-03 21:33:04 +03:00
|
|
|
Name: lld
|
|
|
|
Version: 6.0.0
|
2018-04-03 22:27:35 +03:00
|
|
|
Release: 1
|
|
|
|
Group: Development/Other
|
2018-04-03 21:33:04 +03:00
|
|
|
License: NCSA
|
2018-04-03 22:27:35 +03:00
|
|
|
Url: http://llvm.org
|
|
|
|
Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: llvm-devel = %{version}
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: zlib-devel
|
2018-04-03 21:33:04 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
The LLVM project linker.
|
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%files
|
|
|
|
%doc LICENSE.TXT
|
|
|
|
%{_bindir}/lld*
|
|
|
|
%{_bindir}/ld.lld
|
|
|
|
%{_bindir}/ld64.lld
|
|
|
|
%{_bindir}/wasm-ld
|
2018-04-03 21:33:04 +03:00
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
#-------------------------------------------------------------------------
|
2018-04-03 21:33:04 +03:00
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%package -n %{libname}
|
2018-04-03 21:33:04 +03:00
|
|
|
Summary: LLD shared libraries
|
2018-04-03 22:27:35 +03:00
|
|
|
Group: System/Libraries
|
2018-04-03 21:33:04 +03:00
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%description -n %{libname}
|
2018-04-03 21:33:04 +03:00
|
|
|
Shared libraries for LLD.
|
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%files -n %{libname}
|
|
|
|
%doc LICENSE.TXT
|
|
|
|
%{_libdir}/lib%{name}*.so.%{major}*
|
|
|
|
#-------------------------------------------------------------------------
|
2018-04-03 21:33:04 +03:00
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%package -n %{devname}
|
|
|
|
Summary: Libraries and header files for LLD
|
|
|
|
Group: Development/Other
|
|
|
|
Requires: %{libname} = %{EVRD}
|
|
|
|
Provides: %{name}-devel = %{EVRD}
|
2018-04-03 21:33:04 +03:00
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%description -n %{devname}
|
|
|
|
This package contains library and header files needed to develop new native
|
|
|
|
programs that use the LLD infrastructure.
|
2018-04-03 21:33:04 +03:00
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%files -n %{devname}
|
|
|
|
%doc LICENSE.TXT
|
|
|
|
%{_includedir}/lld
|
|
|
|
%{_libdir}/liblld*.so
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn %{name}-%{version}.src
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
2018-04-03 21:33:04 +03:00
|
|
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
|
|
|
-DLLVM_DYLIB_COMPONENTS="all" \
|
2018-04-03 22:27:35 +03:00
|
|
|
%ifarch x86_64
|
2018-04-03 21:33:04 +03:00
|
|
|
-DLLVM_LIBDIR_SUFFIX=64
|
|
|
|
%else
|
|
|
|
-DLLVM_LIBDIR_SUFFIX=
|
|
|
|
%endif
|
|
|
|
|
2018-04-03 22:27:35 +03:00
|
|
|
%make -s
|
2018-04-03 21:33:04 +03:00
|
|
|
|
|
|
|
%install
|
2018-04-03 22:27:35 +03:00
|
|
|
%makeinstall_std -C build
|