2024-01-06 04:03:54 +01:00
|
|
|
Name: libcxx
|
2024-01-06 04:03:54 +01:00
|
|
|
Version: 11.0.0
|
2024-01-06 04:03:54 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: An implementation of the C++ standard library, targeting C++11, C++14 and above
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://libcxx.llvm.org/
|
|
|
|
Source: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz
|
2024-01-06 04:03:54 +01:00
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxxabi-%{version}.src.tar.xz
|
|
|
|
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
|
2024-01-06 04:03:54 +01:00
|
|
|
License: MIT, BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 04:03:54 +01:00
|
|
|
BuildRequires: libatomic-devel
|
2024-01-06 04:03:54 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
Provides: libc++
|
|
|
|
Obsoletes: libc++
|
2024-01-06 04:03:54 +01:00
|
|
|
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:03:54 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
libc++ is an implementation of the C++ standard library, targeting C++11, C++14 and above.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:03:54 +01:00
|
|
|
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:03:54 +01:00
|
|
|
Provides: libc++-devel
|
|
|
|
Obsoletes: libc++-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%package -n libcxxabi
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Low level support for the LLVM C++ standard library
|
|
|
|
|
|
|
|
%description -n libcxxabi
|
|
|
|
Low level support for the LLVM C++ standard library.
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 04:03:54 +01:00
|
|
|
%setup -q -c -a0 -a1 -a2
|
|
|
|
#% setup -q -c -D -T
|
|
|
|
#:<< _EOF
|
|
|
|
mv llvm-%{version}.src llvm
|
|
|
|
mv libcxx-%{version}.src llvm/projects/libcxx
|
|
|
|
mv libcxxabi-%{version}.src llvm/projects/libcxxabi
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 04:03:54 +01:00
|
|
|
%cmake -d build \
|
|
|
|
-G Ninja \
|
|
|
|
-DCMAKE_C_COMPILER=clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
|
|
|
-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=NO \
|
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
-DLLVM_LIBDIR_SUFFIX="64" \
|
|
|
|
%endif
|
|
|
|
../llvm
|
|
|
|
|
|
|
|
ninja cxx cxx_experimental
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 04:03:54 +01:00
|
|
|
cd build
|
|
|
|
DESTDIR=%{buildroot} ninja install-cxx install-cxxabi
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%post -n libcxxabi -p /sbin/ldconfig
|
|
|
|
%postun -n libcxxabi -p /sbin/ldconfig
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libc++.so.*
|
2024-01-06 04:03:54 +01:00
|
|
|
%doc llvm/projects/libcxx/LICENSE.TXT llvm/projects/libcxx/CREDITS.TXT
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/c++
|
|
|
|
%dir %{_includedir}/c++/v1
|
|
|
|
%{_includedir}/c++/v1/*
|
|
|
|
%{_libdir}/libc++.a
|
|
|
|
%{_libdir}/libc++.so
|
2024-01-06 04:03:54 +01:00
|
|
|
%{_libdir}/libc++abi.a
|
|
|
|
%{_libdir}/libc++abi.so
|
|
|
|
|
|
|
|
%files -n libcxxabi
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libc++abi.so.*
|
|
|
|
%doc llvm/projects/libcxxabi/LICENSE.TXT llvm/projects/libcxxabi/CREDITS.TXT
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 04:03:54 +01:00
|
|
|
* Tue Oct 13 2020 Automatic Build System <autodist@mambasoft.it> 11.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
* Sat Jul 25 2020 Automatic Build System <autodist@mambasoft.it> 10.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
* Mon May 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 10.0.0-1mamba
|
|
|
|
- package created using the webbuild interface
|