Blame SPECS/compiler-rt.spec

212512
%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src
212512
212512
Name:		compiler-rt
212512
Version:	7.0.1
212512
Release:	1%{?dist}
212512
Summary:	LLVM "compiler-rt" runtime libraries
212512
212512
License:	NCSA or MIT
212512
URL:		http://llvm.org
212512
Source0:	http://llvm.org/releases/%{version}/%{crt_srcdir}.tar.xz
212512
212512
Patch0:		0001-Drop-fno-stack-protector-from-the-compiler-flags.patch 
212512
Patch1:		0001-cmake-Don-t-prefer-python2.7.patch
212512
212512
BuildRequires:  gcc
212512
BuildRequires:  gcc-c++
212512
BuildRequires:	cmake
212512
BuildRequires:  /usr/bin/python3
212512
# We need python3-devel for pathfix.py.
212512
BuildRequires:	python3-devel
212512
BuildRequires:	llvm-devel = %{version}
212512
BuildRequires:	llvm-static = %{version}
212512
212512
%description
212512
The compiler-rt project is a part of the LLVM project. It provides
212512
implementation of the low-level target-specific hooks required by
212512
code generation, sanitizer runtimes and profiling library for code
212512
instrumentation, and Blocks C language extension.
212512
212512
%prep
212512
%autosetup -n %{crt_srcdir} -p1
212512
212512
pathfix.py -i %{__python3} -pn .
212512
212512
%build
212512
mkdir -p _build
212512
cd _build
212512
%cmake .. \
212512
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
212512
	-DLLVM_CONFIG_PATH:FILEPATH=%{_bindir}/llvm-config \
212512
	\
212512
%if 0%{?__isa_bits} == 64
212512
	-DLLVM_LIBDIR_SUFFIX=64 \
212512
%else
212512
	-DLLVM_LIBDIR_SUFFIX= \
212512
%endif
212512
	-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
212512
212512
make %{?_smp_mflags}
212512
212512
%install
212512
cd _build
212512
make install DESTDIR=%{buildroot}
212512
212512
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib
212512
212512
%ifarch aarch64
212512
%global aarch64_blacklists hwasan_blacklist.txt
212512
%endif
212512
212512
# move sanitizer lists to better place
212512
for file in %{aarch64_blacklists} asan_blacklist.txt msan_blacklist.txt dfsan_blacklist.txt cfi_blacklist.txt dfsan_abilist.txt hwasan_blacklist.txt; do
212512
	mv -v %{buildroot}%{_datadir}/${file} %{buildroot}%{_libdir}/clang/%{version}/ || :
212512
done
212512
212512
# move sanitizer libs to better place
212512
mv -v %{buildroot}%{_prefix}/lib/linux/libclang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
212512
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
212512
pushd %{buildroot}%{_libdir}/clang/%{version}/lib
212512
for i in *.a *.syms *.so; do
212512
	ln -s ../$i linux/$i
212512
done
212512
212512
%check
212512
cd _build
212512
#make check-all
212512
212512
%files
212512
%{_includedir}/*
212512
%{_libdir}/clang/%{version}
212512
212512
%changelog
212512
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
212512
- 7.0.1 Release 
212512
212512
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
212512
- 7.0.1-rc3 Release 
212512
212512
* Tue Nov 27 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
212512
- 7.0.0 Release 
212512
212512
* Tue Oct 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-5
212512
- Use python3 for build scripts
212512
212512
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-4
212512
- Drop scl macros
212512
212512
* Thu Sep 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
212512
- Drop -fno-stack-protector flag
212512
212512
* Thu Sep 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
212512
- Explicitly BuildRequire: /usr/bin/python3
212512
212512
* Wed Jul 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
212512
- 6.0.1 Release
212512
212512
* Tue Jan 09 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
212512
- 5.0.1 Release
212512
212512
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
212512
- 4.0.1 Release
212512
212512
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
212512
- Build for llvm-toolset-7 rename
212512
212512
* Thu May 18 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
212512
- Fix disabling debug on s390(x)
212512
212512
* Tue Mar 14 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
212512
- compiler-rt 4.0.0 Final Release
212512
212512
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
212512
- compiler-rt 3.9.1
212512
212512
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
212512
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
212512
212512
* Mon Nov 21 2016 Dan HorĂ¡k <dan[at]danny.cz> - 3.9.0-3
212512
- disable debuginfo on s390(x)
212512
212512
* Wed Nov 02 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-2
212512
- build for new arches.
212512
212512
* Wed Oct 26 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
212512
- compiler-rt 3.9.0 final release
212512
212512
* Mon May  2 2016 Tom Callaway <spot@fedoraproject.org> 3.8.0-2
212512
- make symlinks to where the linker thinks these libs are
212512
212512
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
212512
- compiler-rt 3.8.0 final release
212512
212512
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
212512
- compiler-rt 3.8.0rc3
212512
212512
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
212512
- compiler-rt 3.8.0rc2
212512
212512
* Fri Feb 05 2016 Dave Airlie <airlied@redhat.com> 3.7.1-3
212512
- fix compiler-rt paths - from rwindz0@gmail.com - #1304605
212512
212512
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
212512
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
212512
212512
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
212512
- initial version using cmake build system