libcxx/libcxx.spec

221 lines
6.3 KiB
RPMSpec
Raw Normal View History

2016-06-06 14:18:49 +00:00
# If you need to bootstrap this, turn this on.
# Otherwise, you have a loop with libcxxabi
2020-02-06 20:46:38 +00:00
%global bootstrap 0
2020-02-14 09:41:11 +00:00
%global rc_ver 2
%global baserelease 0.1
2019-09-24 04:12:22 +00:00
2018-11-27 10:42:14 +00:00
%global libcxx_srcdir libcxx-%{version}%{?rc_ver:rc%{rc_ver}}.src
2016-06-06 14:18:49 +00:00
Name: libcxx
2020-02-06 19:57:29 +00:00
Version: 10.0.0
2019-09-24 04:12:22 +00:00
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
2016-06-06 14:18:49 +00:00
Summary: C++ standard library targeting C++11
License: MIT or NCSA
URL: http://libcxx.llvm.org/
2018-11-27 10:42:14 +00:00
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{libcxx_srcdir}.tar.xz
2020-02-06 19:57:29 +00:00
Source1: https://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{libcxx_srcdir}.tar.xz.sig
Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
BuildRequires: gcc-c++ llvm-devel cmake llvm-static
2016-06-06 14:18:49 +00:00
%if %{bootstrap} < 1
BuildRequires: libcxxabi-devel
2017-03-03 15:32:33 +00:00
BuildRequires: python3
2016-06-06 14:18:49 +00:00
%endif
# PPC64 (on EL7) doesn't like this code.
# /builddir/build/BUILD/libcxx-3.8.0.src/include/thread:431:73: error: '(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
# _LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
%if 0%{?rhel}
2016-06-06 14:18:49 +00:00
ExcludeArch: ppc64 ppc64le
%endif
2016-06-06 14:18:49 +00:00
%description
libc++ is a new implementation of the C++ standard library, targeting C++11.
%package devel
Summary: Headers and libraries for libcxx devel
Requires: %{name}%{?_isa} = %{version}-%{release}
%if %{bootstrap} < 1
Requires: libcxxabi-devel
%endif
%description devel
%{summary}.
2017-04-22 19:55:40 +00:00
%package static
Summary: Static libraries for libcxx
%description static
%{summary}.
2016-06-06 14:18:49 +00:00
%prep
2018-01-29 12:38:15 +00:00
%setup -q -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src
2016-06-06 14:18:49 +00:00
%build
mkdir _build
cd _build
2016-06-06 14:18:49 +00:00
%cmake .. \
-DLLVM_CONFIG=%{_bindir}/llvm-config \
%if %{bootstrap} < 1
-DLIBCXX_CXX_ABI=libcxxabi \
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=%{_includedir} \
2017-03-03 15:32:33 +00:00
-DPYTHONINTERP_FOUND=ON \
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \
2016-06-06 14:18:49 +00:00
%endif
2016-06-06 16:00:38 +00:00
%if 0%{?__isa_bits} == 64
2016-06-06 14:18:49 +00:00
-DLIBCXX_LIBDIR_SUFFIX:STRING=64 \
%endif
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
%install
cd _build
make install DESTDIR=%{buildroot}
%ldconfig_scriptlets
2016-06-06 14:18:49 +00:00
%files
%license LICENSE.TXT
%doc CREDITS.TXT TODO.TXT
%{_libdir}/libc++.so.*
%files devel
%{_includedir}/c++/
%{_libdir}/libc++.so
2017-04-22 19:55:40 +00:00
%files static
%license LICENSE.TXT
%{_libdir}/libc++*.a
2016-06-06 14:18:49 +00:00
%changelog
2020-02-14 09:41:11 +00:00
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2
- 10.0.0 rc2
2020-02-06 20:46:38 +00:00
* Thu Feb 6 2020 sguelton@redhat.com - 10.0.0-0.2.rc1
- bootstrap off
2020-02-06 19:57:29 +00:00
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
- 10.0.0 rc1
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-16 18:13:36 +00:00
* Thu Jan 16 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
- 9.0.1 Release
* Thu Jan 16 2020 Tom Stellard <tstellar@redhat.com> - 9.0.0-2
- Build with gcc on all arches
2019-09-24 04:12:22 +00:00
* Mon Sep 23 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
- 9.0.0 Release
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-03-20 23:24:21 +00:00
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
- 8.0.0 final
2019-03-12 14:15:43 +00:00
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4
- 8.0.0 Release candidate 4
2019-03-04 13:25:38 +00:00
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3
- 8.0.0 Release candidate 3
2019-02-24 14:30:27 +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
2019-02-13 15:54:03 +00:00
- 8.0.0 Release candidate 1
2019-02-06 15:57:24 +00:00
* Wed Feb 06 2019 sguelton@redhat.com - 7.0.1-1
- 7.0.1 Release
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-0.2.rc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-11-27 10:42:14 +00:00
* Mon Dec 10 2018 sguelton@redhat.com - 7.0.1-0.1.rc3
- 7.0.1-rc3 Release
2018-09-25 13:11:37 +00:00
* Tue Sep 25 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
- 7.0.0 Release
2018-09-12 20:03:23 +00:00
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc3
- 7.0.0-rc3 Release
* 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-06-26 16:40:24 +00:00
* Tue Jun 26 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.1-1
- update to 6.0.1
* 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:33 +00:00
* Wed Mar 14 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.0-1
- 6.0.0 final
* 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 12:38:15 +00:00
* Sat Jan 20 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
- 6.0.0-rc1
2017-12-21 16:03:16 +00:00
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
- 5.0.1 Release
2017-09-08 22:19:41 +00:00
* Fri Sep 8 2017 Tom Callaway <spot@fedoraproject.org> - 5.0.0-1
- update to 5.0.0
* 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
* 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:38:15 +00:00
* Fri Jun 23 2017 Tom Callaway <spot@fedoraproject.org> - 4.0.1-1
- update to 4.0.1
2017-04-22 19:33:04 +00:00
* Sat Apr 22 2017 Tom Callaway <spot@fedoraproject.org> - 4.0.0-1
- update to 4.0.0
2017-04-22 19:29:24 +00:00
* Wed Mar 8 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.1-1
- update to 3.9.1
2017-03-03 15:32:33 +00:00
* Fri Mar 3 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-4
- LIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON
2017-03-01 18:09:44 +00:00
* Wed Mar 1 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-3
- disable bootstrap
* Tue Feb 21 2017 Dan Horák <dan[at]danny.cz> - 3.9.0-2
- apply s390(x) workaround only in Fedora < 26
2017-02-20 19:52:01 +00:00
* Mon Feb 20 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
- update to 3.9.0 (match clang)
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-08-26 18:24:19 +00:00
* Fri Aug 26 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.1-1
- update to 3.8.1
* Thu Jun 09 2016 Dan Horák <dan[at]danny.cz> - 3.8.0-4
- exclude Power only in EPEL
- default to z10 on s390(x)
2016-06-06 14:18:49 +00:00
* Thu May 19 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-3
- use gcc on el7, fedora < 24. use clang on el6 and f24+
MAGIC.
- bootstrap on
* Tue May 3 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-2
- bootstrap off
* Tue May 3 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-1
- initial package
- bootstrap on