Blame SPECS/compiler-rt.spec

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