2019-03-04 13:32:42 +00:00
|
|
|
%global rc_ver 3
|
2018-11-27 10:50:06 +00:00
|
|
|
%global libcxxabi_srcdir libcxxabi-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
|
|
|
|
|
|
2017-02-27 20:05:22 +00:00
|
|
|
Name: libcxxabi
|
2019-02-13 15:55:07 +00:00
|
|
|
Version: 8.0.0
|
2019-03-04 13:32:42 +00:00
|
|
|
Release: 0.3%{?rc_ver:.rc%{rc_ver}}%{?dist}
|
2017-02-27 20:05:22 +00:00
|
|
|
Summary: Low level support for a standard C++ library
|
|
|
|
License: MIT or NCSA
|
|
|
|
URL: http://libcxxabi.llvm.org/
|
2018-11-27 10:50:06 +00:00
|
|
|
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{libcxxabi_srcdir}.tar.xz
|
2017-04-22 19:56:43 +00:00
|
|
|
BuildRequires: clang llvm-devel cmake llvm-static
|
2017-02-27 20:05:22 +00:00
|
|
|
BuildRequires: libcxx-devel >= %{version}
|
|
|
|
%if 0%{?rhel}
|
|
|
|
# libcxx-devel has this, so we need to as well.
|
|
|
|
ExcludeArch: ppc64 ppc64le
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
libcxxabi provides low level support for a standard C++ library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers and libraries for libcxxabi devel
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static libraries for libcxxabi
|
|
|
|
|
|
|
|
%description static
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
2018-01-29 13:55:46 +00:00
|
|
|
%setup -q -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
2017-02-27 20:05:22 +00:00
|
|
|
|
|
|
|
sed -i 's|${LLVM_BINARY_DIR}/share/llvm/cmake|%{_libdir}/cmake/llvm|g' CMakeLists.txt
|
|
|
|
|
|
|
|
%build
|
2017-02-27 21:03:49 +00:00
|
|
|
%ifarch armv7hl
|
|
|
|
# disable ARM exception handling
|
2017-12-19 16:14:36 +00:00
|
|
|
sed -i 's|#define _LIBCXXABI_ARM_EHABI||g' include/__cxxabi_config.h
|
2017-02-27 21:03:49 +00:00
|
|
|
%endif
|
|
|
|
|
2017-02-27 20:05:22 +00:00
|
|
|
mkdir _build
|
|
|
|
cd _build
|
|
|
|
%ifarch s390 s390x
|
|
|
|
%if 0%{?fedora} < 26
|
|
|
|
# clang requires z10 at minimum
|
|
|
|
# workaround until we change the defaults for Fedora
|
|
|
|
%global optflags %(echo %{optflags} | sed 's/-march=z9-109 /-march=z10 /')
|
|
|
|
%endif
|
|
|
|
%endif
|
2017-02-27 20:31:19 +00:00
|
|
|
|
2018-03-21 17:38:05 +00:00
|
|
|
# Filter out cflags not supported by clang.
|
2019-02-06 17:44:38 +00:00
|
|
|
%global optflags %(echo %{optflags} | sed -e 's/-mcet//g' -e 's/-fcf-protection//g' -e 's/-fstack-clash-protection//g')
|
2018-03-21 17:38:05 +00:00
|
|
|
|
2017-02-27 20:05:22 +00:00
|
|
|
%cmake .. \
|
|
|
|
-DCMAKE_C_COMPILER=/usr/bin/clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
|
|
|
|
-DLLVM_CONFIG=%{_bindir}/llvm-config \
|
|
|
|
-DCMAKE_CXX_FLAGS="-std=c++11" \
|
|
|
|
-DLIBCXXABI_LIBCXX_INCLUDES=%{_includedir}/c++/v1/ \
|
2017-02-27 20:08:28 +00:00
|
|
|
%if 0%{?__isa_bits} == 64
|
2017-02-27 20:05:22 +00:00
|
|
|
-DLIBCXXABI_LIBDIR_SUFFIX:STRING=64 \
|
|
|
|
%endif
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd _build
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
cd ..
|
|
|
|
cp -a include/* %{buildroot}%{_includedir}
|
|
|
|
|
2019-01-22 17:39:37 +00:00
|
|
|
%ldconfig_scriptlets
|
2017-02-27 20:05:22 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.TXT
|
|
|
|
%doc CREDITS.TXT
|
|
|
|
%{_libdir}/libc++abi.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/libc++abi.so
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%{_libdir}/libc++abi.a
|
|
|
|
|
|
|
|
%changelog
|
2019-03-06 17:59:01 +00:00
|
|
|
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3
|
2019-03-04 13:32:42 +00:00
|
|
|
- 8.0.0 Release candidate 3
|
|
|
|
|
2019-02-24 14:31:22 +00:00
|
|
|
* Sun Feb 24 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
|
|
|
|
- 8.0.0 Release candidate 2
|
|
|
|
|
|
|
|
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
|
|
|
|
- 8.0.0 Release candidate 1
|
2019-02-13 15:55:07 +00:00
|
|
|
|
2019-02-06 17:44:38 +00:00
|
|
|
* Wed Feb 6 2019 Tom Callaway <spot@fedoraproject.org> - 7.0.1-2
|
|
|
|
- remove -fstack-clash-protection
|
|
|
|
|
2019-02-01 06:53:42 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-1.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-17 11:15:11 +00:00
|
|
|
* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1
|
|
|
|
- 7.0.1 Release
|
|
|
|
|
2018-11-27 10:50:06 +00:00
|
|
|
* Mon Dec 10 2018 sguelton@redhat.com - 7.0.1-0.1.rc3
|
|
|
|
- 7.0.1-rc3 Release
|
|
|
|
|
2018-12-04 14:36:15 +00:00
|
|
|
* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-2
|
|
|
|
- Ensure rpmlint passes on specfile
|
|
|
|
|
2018-09-25 13:13:08 +00:00
|
|
|
* Tue Sep 25 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
|
|
|
|
- 7.0.0 Release
|
|
|
|
|
2018-09-12 20:28:03 +00:00
|
|
|
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc3
|
|
|
|
- 7.0.0-rc3 Release
|
|
|
|
|
2018-07-13 07:57:19 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-12-04 14:36:15 +00:00
|
|
|
* Tue Jun 26 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.1-1
|
2018-06-26 18:08:23 +00:00
|
|
|
- update to 6.0.1
|
|
|
|
|
2018-03-21 17:38:05 +00:00
|
|
|
* Wed Mar 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-2
|
|
|
|
- Use default LDFLAGS/CXXFLAGS/CFLAGS and filter out flags not supported by
|
|
|
|
clang
|
|
|
|
|
2018-03-14 14:49:24 +00:00
|
|
|
* Wed Mar 14 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.0-1
|
|
|
|
- update to 6.0.0 final
|
|
|
|
|
2018-02-07 21:24:41 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.2.rc1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-29 13:55:46 +00:00
|
|
|
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
|
|
|
|
- 6.0.1-rc1 Release
|
|
|
|
|
2017-12-21 16:18:56 +00:00
|
|
|
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
|
|
|
|
- 5.0.1 Release
|
|
|
|
|
2017-12-19 16:14:36 +00:00
|
|
|
* Tue Dec 19 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-2
|
|
|
|
- Fix disabling of ARM exception handling
|
|
|
|
|
2017-09-08 22:19:50 +00:00
|
|
|
* Fri Sep 8 2017 Tom Callaway <spot@fedoraproject.org> - 5.0.0-1
|
|
|
|
- update to 5.0.0
|
|
|
|
|
2017-08-03 01:19:18 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 18:41:16 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-23 16:39:48 +00:00
|
|
|
* Fri Jun 23 2017 Tom Callaway <spot@fedoraproject.org> - 4.0.1-1
|
|
|
|
- update to 4.0.1
|
|
|
|
|
2017-04-22 19:34:37 +00:00
|
|
|
* Sat Apr 22 2017 Tom Callaway <spot@fedoraproject.org> - 4.0.0-1
|
|
|
|
- update to 4.0.0
|
|
|
|
|
2017-02-27 20:05:22 +00:00
|
|
|
* Mon Feb 20 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
|
|
|
|
- update to 3.9.0
|
|
|
|
- apply fixes from libcxx
|
|
|
|
|
|
|
|
* Wed Sep 7 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.1-1
|
|
|
|
- update to 3.8.1
|
|
|
|
|
|
|
|
* Mon Jul 25 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-2
|
|
|
|
- make static subpackage
|
|
|
|
|
|
|
|
* Tue May 3 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-1
|
|
|
|
- initial package
|