Blame SPECS/lld.spec

074ff8
%global lld_srcdir lld-%{version}%{?rc_ver:rc%{rc_ver}}.src
074ff8
074ff8
Name:		lld
074ff8
Version:	7.0.1
074ff8
Release:	3%{?dist}
074ff8
Summary:	The LLVM Linker
074ff8
074ff8
License:	NCSA
074ff8
URL:		http://llvm.org
074ff8
Source0:	http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{lld_srcdir}.tar.xz
074ff8
074ff8
Patch0:		0001-CMake-Check-for-gtest-headers-even-if-lit.py-is-not-.patch
074ff8
Patch1:		0001-lld-Prefer-using-the-newest-installed-python-version.patch
074ff8
Patch2:		0001-Partial-support-of-SHT_GROUP-without-flag.patch
074ff8
074ff8
BuildRequires:  gcc
074ff8
BuildRequires:  gcc-c++
074ff8
BuildRequires: cmake
074ff8
BuildRequires: llvm-devel = %{version}
074ff8
BuildRequires: llvm-static = %{version}
074ff8
BuildRequires: ncurses-devel
074ff8
BuildRequires: zlib-devel
074ff8
BuildRequires: chrpath
074ff8
074ff8
# For make check:
074ff8
# This pulls in /usr/bin/python3
074ff8
BuildRequires:	python3-devel
074ff8
BuildRequires: python3-lit = 0.7.1
074ff8
BuildRequires: llvm-googletest
074ff8
074ff8
%description
074ff8
The LLVM project linker.
074ff8
074ff8
%package devel
074ff8
Summary:	Libraries and header files for LLD
074ff8
074ff8
%description devel
074ff8
This package contains library and header files needed to develop new native
074ff8
programs that use the LLD infrastructure.
074ff8
074ff8
%package libs
074ff8
Summary:	LLD shared libraries
074ff8
074ff8
%description libs
074ff8
Shared libraries for LLD.
074ff8
074ff8
%prep
074ff8
%autosetup -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src -p1
074ff8
074ff8
%build
074ff8
074ff8
mkdir %{_target_platform}
074ff8
cd %{_target_platform}
074ff8
074ff8
%cmake .. \
074ff8
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
074ff8
	-DLLVM_DYLIB_COMPONENTS="all" \
074ff8
	-DLLVM_INCLUDE_TESTS=ON \
074ff8
	-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
074ff8
	-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
074ff8
	-DLLVM_LIT_ARGS="-sv \
074ff8
		-DFileCheck=%{_libdir}/llvm/FileCheck \
074ff8
		-Dcount=%{_libdir}/llvm/count \
074ff8
		-Dnot=%{_libdir}/llvm/not \
074ff8
		--path %{_libdir}/llvm" \
074ff8
%if 0%{?__isa_bits} == 64
074ff8
	-DLLVM_LIBDIR_SUFFIX=64
074ff8
%else
074ff8
	-DLLVM_LIBDIR_SUFFIX=
074ff8
%endif
074ff8
074ff8
%make_build
074ff8
074ff8
%install
074ff8
cd %{_target_platform}
074ff8
%make_install
074ff8
074ff8
# Remove rpath
074ff8
chrpath --delete %{buildroot}%{_bindir}/*
074ff8
chrpath --delete %{buildroot}%{_libdir}/*.so*
074ff8
074ff8
%check
074ff8
make -C %{_target_platform} %{?_smp_mflags} check-lld
074ff8
074ff8
%post libs -p /sbin/ldconfig
074ff8
%postun libs -p /sbin/ldconfig
074ff8
074ff8
%files
074ff8
%{_bindir}/lld*
074ff8
%{_bindir}/ld.lld
074ff8
%{_bindir}/ld64.lld
074ff8
%{_bindir}/wasm-ld
074ff8
074ff8
%files devel
074ff8
%{_includedir}/lld
074ff8
%{_libdir}/liblld*.so
074ff8
074ff8
%files libs
074ff8
%{_libdir}/liblld*.so.*
074ff8
074ff8
%changelog
074ff8
* Mon Jan 14 2019 sguelton@redhat.com - 7.0.1-3
074ff8
- Fix lld + annobin integration & Setup basic CI tests
074ff8
074ff8
* Sat Dec 15 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
074ff8
- Bump required python3-lit version
074ff8
074ff8
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
074ff8
- 7.0.1-1 Release
074ff8
074ff8
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.2.rc3
074ff8
- 7.0.1-rc3 Release
074ff8
074ff8
* Tue Nov 27 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
074ff8
- 7.0.0 Release
074ff8
074ff8
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
074ff8
- Drop scl macros
074ff8
074ff8
* Wed Jun 27 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
074ff8
- 6.0.1 Release
074ff8
074ff8
* Fri May 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.1.rc1
074ff8
- 6.0.1-rc1 Release
074ff8
074ff8
* Thu Mar 08 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-1
074ff8
- 6.0.0 Release
074ff8
074ff8
* Tue Feb 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.3.rc2
074ff8
- 6.0.0-rc2 Release
074ff8
074ff8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.2.rc1
074ff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
074ff8
074ff8
* Thu Jan 25 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
074ff8
- 6.0.0-rc1 Release
074ff8
074ff8
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
074ff8
- 5.0.1 Release
074ff8
074ff8
* Mon Sep 11 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
074ff8
- 5.0.0 Release
074ff8
074ff8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-4
074ff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
074ff8
074ff8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
074ff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
074ff8
074ff8
* Thu Jul 06 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-2
074ff8
- Backport r307092
074ff8
074ff8
* Tue Jul 04 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
074ff8
- 4.0.1 Release
074ff8
074ff8
* Tue Jul 04 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
074ff8
- Fix build without llvm-static
074ff8
074ff8
* Wed May 31 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
074ff8
- Remove llvm-static dependency
074ff8
074ff8
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
074ff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
074ff8
074ff8
* Tue Mar 14 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
074ff8
- lld 4.0.0 Final Release