Blame SPECS/compiler-rt.spec

aa9b77
%ifarch s390 s390x
aa9b77
# only limited set of libs available on s390(x) and the existing ones (stats, ubsan) don't provide debuginfo
aa9b77
%global debug_package %{nil}
aa9b77
%endif
aa9b77
aa9b77
#%%global rc_ver 2
aa9b77
212512
%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src
212512
212512
Name:		compiler-rt
aa9b77
Version:	8.0.1
aa9b77
Release:	1%{?rc_ver:.rc%{rc_ver}}%{?dist}
212512
Summary:	LLVM "compiler-rt" runtime libraries
212512
212512
License:	NCSA or MIT
212512
URL:		http://llvm.org
aa9b77
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-%{rc_ver}}/%{crt_srcdir}.tar.xz
212512
aa9b77
Patch0:		0001-PATCH-std-thread-copy.patch
aa9b77
Patch1:		0001-Drop-fno-stack-protector-from-the-compiler-flags.patch
212512
aa9b77
BuildRequires:	gcc
aa9b77
BuildRequires:	gcc-c++
212512
BuildRequires:	cmake
aa9b77
BuildRequires:	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 \
aa9b77
	-DLLVM_CONFIG_PATH:FILEPATH=%{_bindir}/llvm-config-%{__isa_bits} \
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
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
aa9b77
%global libclang_rt_installdir lib/linux
aa9b77
mv -v %{buildroot}%{_prefix}/%{libclang_rt_installdir}/libclang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
212512
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
212512
pushd %{buildroot}%{_libdir}/clang/%{version}/lib
aa9b77
for i in *.a *.so
aa9b77
do
212512
	ln -s ../$i linux/$i
212512
done
aa9b77
popd
aa9b77
aa9b77
# multilib support: also create symlink from lib to lib64
aa9b77
# fixes rhbz#1678240
aa9b77
%ifarch %{ix86}
aa9b77
%post
aa9b77
if test "`uname -m`" = x86_64
aa9b77
then
aa9b77
	cd %{_libdir}/clang/%{version}/lib
aa9b77
	mkdir -p ../../../../lib64/clang/%{version}/lib
aa9b77
	for i in *.a *.so
aa9b77
	do
aa9b77
		ln -s ../../../../%{_lib}/clang/%{version}/lib/$i ../../../../lib64/clang/%{version}/lib/$i
aa9b77
	done
aa9b77
fi
aa9b77
aa9b77
%preun
aa9b77
aa9b77
if test "`uname -m`" = x86_64
aa9b77
then
aa9b77
	cd %{_libdir}/clang/%{version}/lib
aa9b77
	for i in *.a *.so
aa9b77
	do
aa9b77
		rm ../../../../lib64/clang/%{version}/lib/$i
aa9b77
	done
aa9b77
	rmdir -p ../../../../lib64/clang/%{version}/lib 2>/dev/null 1>/dev/null || :
aa9b77
fi
aa9b77
aa9b77
%endif
212512
212512
%check
aa9b77
#make check-all -C _build
212512
212512
%files
212512
%{_includedir}/*
212512
%{_libdir}/clang/%{version}
212512
212512
%changelog
aa9b77
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
aa9b77
- 8.0.1 release
aa9b77
aa9b77
* Thu Jul 4 2019 sguelton@redhat.com - 8.0.1-0.2.rc2
aa9b77
- Fix rhbz#1678240
aa9b77
aa9b77
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
aa9b77
- 8.0.1rc2 Release
aa9b77
aa9b77
* Wed Apr 17 2019 sguelton@redhat.com - 8.0.0-1
aa9b77
- 8.0.0 Release 
aa9b77
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