f56b59e
# If you need to bootstrap this, turn this on.
f56b59e
# Otherwise, you have a loop with libcxxabi
45f91b6
%global bootstrap 0
3758e9b
#%%global rc_ver 1
ff025fe
%global baserelease 1
8561528
0a654cd
%global libcxx_srcdir libcxx-%{version}%{?rc_ver:rc%{rc_ver}}.src
f56b59e
f56b59e
Name:		libcxx
41db51f
Version:	11.0.0
8561528
Release:	%{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
f56b59e
Summary:	C++ standard library targeting C++11
f56b59e
License:	MIT or NCSA
f56b59e
URL:		http://libcxx.llvm.org/
7f1ea69
%if 0%{?rc_ver:1}
7f1ea69
Source0:	https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{libcxx_srcdir}.tar.xz
7f1ea69
Source1:	https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{libcxx_srcdir}.tar.xz.sig
7f1ea69
%else
7f1ea69
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{libcxx_srcdir}.tar.xz
ab6e4b8
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{libcxx_srcdir}.tar.xz.sig
7f1ea69
%endif
0674e18
Source2:	https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
0674e18
41db51f
Patch0:		0001-libcxx-Remove-monorepo-requirement.patch
41db51f
ab6e4b8
BuildRequires:	gcc-c++ llvm-devel cmake llvm-static ninja-build
41db51f
# We need python3-devel for pathfix.py.
41db51f
BuildRequires:  python3-devel
41db51f
f56b59e
%if %{bootstrap} < 1
f56b59e
BuildRequires:	libcxxabi-devel
947aaa0
BuildRequires:	python3
f56b59e
%endif
ab6e4b8
41db51f
ab6e4b8
# For origin certification
ab6e4b8
BuildRequires:	gnupg2
ab6e4b8
f56b59e
# PPC64 (on EL7) doesn't like this code.
f56b59e
# /builddir/build/BUILD/libcxx-3.8.0.src/include/thread:431:73: error: '(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
f56b59e
# _LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
311df88
%if 0%{?rhel}
f56b59e
ExcludeArch:	ppc64 ppc64le
311df88
%endif
f56b59e
f56b59e
%description
f56b59e
libc++ is a new implementation of the C++ standard library, targeting C++11.
f56b59e
f56b59e
%package devel
f56b59e
Summary:	Headers and libraries for libcxx devel
f56b59e
Requires:	%{name}%{?_isa} = %{version}-%{release}
f56b59e
%if %{bootstrap} < 1
f56b59e
Requires:	libcxxabi-devel
f56b59e
%endif
f56b59e
f56b59e
%description devel
f56b59e
%{summary}.
f56b59e
be05952
%package static
be05952
Summary:	Static libraries for libcxx
be05952
be05952
%description static
be05952
%{summary}.
be05952
f56b59e
%prep
ab6e4b8
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
41db51f
%autosetup -n %{libcxx_srcdir} -p2
41db51f
41db51f
pathfix.py -i %{__python3} -pn \
41db51f
	utils/*.py
f56b59e
f56b59e
%build
d603aee
ab6e4b8
%cmake  -GNinja \
41db51f
	-DLIBCXX_STANDALONE_BUILD=ON \
f56b59e
%if %{bootstrap} < 1
f56b59e
	-DLIBCXX_CXX_ABI=libcxxabi \
f56b59e
	-DLIBCXX_CXX_ABI_INCLUDE_PATHS=%{_includedir} \
947aaa0
	-DPYTHONINTERP_FOUND=ON \
947aaa0
	-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
947aaa0
	-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \
f56b59e
%endif
e39e1ea
%if 0%{?__isa_bits} == 64
f56b59e
	-DLIBCXX_LIBDIR_SUFFIX:STRING=64 \
f56b59e
%endif
f56b59e
	-DCMAKE_BUILD_TYPE=RelWithDebInfo
f56b59e
f56b59e
ab6e4b8
%cmake_build
f56b59e
f56b59e
%install
ab6e4b8
ab6e4b8
%cmake_install
f56b59e
b659b98
%ldconfig_scriptlets
f56b59e
f56b59e
%files
f56b59e
%license LICENSE.TXT
f56b59e
%doc CREDITS.TXT TODO.TXT
f56b59e
%{_libdir}/libc++.so.*
f56b59e
f56b59e
%files devel
f56b59e
%{_includedir}/c++/
f56b59e
%{_libdir}/libc++.so
f56b59e
be05952
%files static
be05952
%license LICENSE.TXT
be05952
%{_libdir}/libc++*.a
be05952
be05952
f56b59e
%changelog
ff025fe
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
ff025fe
- Fix NVR
ff025fe
3758e9b
* Tue Oct 13 2020 sguelton@redhat.com - 11.0.0-0.2
3758e9b
- llvm 11.0.0 - final release
3758e9b
41db51f
* Tue Aug 11 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
41db51f
- 11.0.0-rc1 Release
41db51f
f1bfe5f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-3
f1bfe5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f1bfe5f
ab6e4b8
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-2
ab6e4b8
- Use modern cmake macros
ab6e4b8
- Finalize source verification
ab6e4b8
7f1ea69
* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1
7f1ea69
- 10.0.0 final
7f1ea69
1eb3ed2
* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6
1eb3ed2
- 10.0.0 rc6
1eb3ed2
88d6bcc
* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5
88d6bcc
- 10.0.0 rc5
88d6bcc
3559f5a
* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4
3559f5a
- 10.0.0 rc4
3559f5a
9420528
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3
9420528
- 10.0.0 rc3
9420528
ca732f6
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2
ca732f6
- 10.0.0 rc2
ca732f6
45f91b6
* Thu Feb 6 2020 sguelton@redhat.com - 10.0.0-0.2.rc1
45f91b6
- bootstrap off
45f91b6
0674e18
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
0674e18
- 10.0.0 rc1
0674e18
6dd26b7
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.1-2
6dd26b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6dd26b7
db53811
* Thu Jan 16 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
db53811
- 9.0.1 Release
db53811
204afe5
* Thu Jan 16 2020 Tom Stellard <tstellar@redhat.com> - 9.0.0-2
204afe5
- Build with gcc on all arches
204afe5
8561528
* Mon Sep 23 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
8561528
- 9.0.0 Release
8561528
e83b273
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-1.1
e83b273
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e83b273
55bec4f
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
55bec4f
- 8.0.0 final
55bec4f
35ba1aa
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4
35ba1aa
- 8.0.0 Release candidate 4
35ba1aa
cad705e
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3
cad705e
- 8.0.0 Release candidate 3
cad705e
9c40a0a
* Sun Feb 24 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
9c40a0a
- 8.0.0 Release candidate 2
9c40a0a
9c40a0a
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
014ee2a
- 8.0.0 Release candidate 1
014ee2a
86c937d
* Wed Feb 06 2019 sguelton@redhat.com - 7.0.1-1
86c937d
- 7.0.1 Release
86c937d
7e13c15
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-0.2.rc3
7e13c15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7e13c15
0a654cd
* Mon Dec 10 2018 sguelton@redhat.com - 7.0.1-0.1.rc3
0a654cd
- 7.0.1-rc3 Release
0a654cd
67d065f
* Tue Sep 25 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
67d065f
- 7.0.0 Release
67d065f
e1f2263
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc3
e1f2263
- 7.0.0-rc3 Release
e1f2263
0fc1123
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-2
0fc1123
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0fc1123
ed82c1a
* Tue Jun 26 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.1-1
ed82c1a
- update to 6.0.1
ed82c1a
d603aee
* Wed Mar 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-2
d603aee
- Use default LDFLAGS/CXXFLAGS/CFLAGS and filter out flags not supported by clang
d603aee
d9d8c14
* Wed Mar 14 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.0-1
d9d8c14
- 6.0.0 final
d9d8c14
f431076
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.2.rc1
f431076
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f431076
f536e61
* Sat Jan 20 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
f536e61
- 6.0.0-rc1
f536e61
4ee1f9e
* Thu Dec  21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
4ee1f9e
- 5.0.1 Release
4ee1f9e
2b1d3ec
* Fri Sep  8 2017 Tom Callaway <spot@fedoraproject.org> - 5.0.0-1
2b1d3ec
- update to 5.0.0
2b1d3ec
75b80b1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
75b80b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
75b80b1
f5494ae
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
f5494ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f5494ae
624e291
* Fri Jun 23 2017 Tom Callaway <spot@fedoraproject.org> - 4.0.1-1
624e291
- update to 4.0.1
624e291
d0d0df8
* Sat Apr 22 2017 Tom Callaway <spot@fedoraproject.org> - 4.0.0-1
d0d0df8
- update to 4.0.0
d0d0df8
d8ba11b
* Wed Mar  8 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.1-1
d8ba11b
- update to 3.9.1
d8ba11b
947aaa0
* Fri Mar  3 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-4
947aaa0
- LIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON
947aaa0
5ac45bb
* Wed Mar  1 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-3
5ac45bb
- disable bootstrap
5ac45bb
f0aa13e
* Tue Feb 21 2017 Dan Horák <dan[at]danny.cz> - 3.9.0-2
f0aa13e
- apply s390(x) workaround only in Fedora < 26
f0aa13e
f190f97
* Mon Feb 20 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
f190f97
- update to 3.9.0 (match clang)
f190f97
71d7381
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-2
71d7381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71d7381
39f1942
* Fri Aug 26 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.1-1
39f1942
- update to 3.8.1
39f1942
311df88
* Thu Jun 09 2016 Dan Horák <dan[at]danny.cz> - 3.8.0-4
311df88
- exclude Power only in EPEL
311df88
- default to z10 on s390(x)
311df88
f56b59e
* Thu May 19 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-3
f56b59e
- use gcc on el7, fedora < 24. use clang on el6 and f24+
f56b59e
  MAGIC.
f56b59e
- bootstrap on
f56b59e
f56b59e
* Tue May 3 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-2
f56b59e
- bootstrap off
f56b59e
f56b59e
* Tue May 3 2016 Tom Callaway <spot@fedoraproject.org> - 3.8.0-1
f56b59e
- initial package
f56b59e
- bootstrap on