Blame SPECS/lld.spec

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