lld/lld.spec

78 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-03-22 13:10:36 +03:00
%define major 7
2018-04-03 22:27:35 +03:00
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
Summary: The LLVM Linker
Name: lld
2019-03-22 13:10:36 +03:00
Version: 7.0.1
2019-04-14 02:51:45 +00:00
Release: 2
2018-04-03 22:27:35 +03:00
Group: Development/Other
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-23 19:35:39 +03:00
Requires: clang
2018-04-23 19:12:08 +03:00
Requires: llvm
2018-04-23 18:58:44 +03:00
Requires: llvm-plugins
%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 22:27:35 +03:00
#-------------------------------------------------------------------------
2018-04-03 22:27:35 +03:00
%package -n %{libname}
Summary: LLD shared libraries
2018-04-03 22:27:35 +03:00
Group: System/Libraries
2018-04-03 22:27:35 +03:00
%description -n %{libname}
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 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 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 22:27:35 +03:00
%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" \
2018-04-03 22:27:35 +03:00
%ifarch x86_64
-DLLVM_LIBDIR_SUFFIX=64
%else
-DLLVM_LIBDIR_SUFFIX=
%endif
2018-04-03 22:27:35 +03:00
%make -s
%install
2018-04-03 22:27:35 +03:00
%makeinstall_std -C build