automatic version update by autodist [release 16.0.4-1mamba;Mon May 22 2023]
This commit is contained in:
parent
e4743b45e6
commit
58fa931f5c
4
libcxx-CmakeLists.txt
Normal file
4
libcxx-CmakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.13.4)
|
||||||
|
project(Runtimes C CXX ASM)
|
||||||
|
add_subdirectory(libcxxabi)
|
||||||
|
add_subdirectory(libcxx)
|
75
libcxx.spec
75
libcxx.spec
@ -1,5 +1,5 @@
|
|||||||
Name: libcxx
|
Name: libcxx
|
||||||
Version: 11.1.0
|
Version: 16.0.4
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: An implementation of the C++ standard library, targeting C++11, C++14 and above
|
Summary: An implementation of the C++ standard library, targeting C++11, C++14 and above
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -9,7 +9,8 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|||||||
URL: https://libcxx.llvm.org/
|
URL: https://libcxx.llvm.org/
|
||||||
Source: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz
|
Source: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz
|
||||||
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxxabi-%{version}.src.tar.xz
|
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
|
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
|
||||||
|
Source5: libcxx-CmakeLists.txt
|
||||||
License: MIT, BSD
|
License: MIT, BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -18,7 +19,7 @@ BuildRequires: libgcc
|
|||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
Provides: libc++
|
Provides: libc++
|
||||||
Obsoletes: libc++
|
Obsoletes: libc++ < 13.0.0
|
||||||
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -28,9 +29,9 @@ libc++ is an implementation of the C++ standard library, targeting C++11, C++14
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: libcxxabi-devel = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Provides: libc++-devel
|
Provides: libc++-devel
|
||||||
Obsoletes: libc++-devel
|
Obsoletes: libc++-devel < 13.0.0
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains libraries and header files for developing applications that use %{name}.
|
This package contains libraries and header files for developing applications that use %{name}.
|
||||||
@ -42,28 +43,44 @@ Summary: Low level support for the LLVM C++ standard library
|
|||||||
%description -n libcxxabi
|
%description -n libcxxabi
|
||||||
Low level support for the LLVM C++ standard library.
|
Low level support for the LLVM C++ standard library.
|
||||||
|
|
||||||
|
%package -n libcxxabi-devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for libcxxabi
|
||||||
|
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description -n libcxxabi-devel
|
||||||
|
This package contains libraries and header files for developing applications that use libcxxabi.
|
||||||
|
|
||||||
%debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -a0 -a1 -a2
|
%setup -q -c -a1 -a2
|
||||||
#% setup -q -c -D -T
|
#% setup -q -c -D -T
|
||||||
#:<< _EOF
|
#:<< _EOF
|
||||||
mv llvm-%{version}.src llvm
|
mv libcxx-%{version}.src libcxx
|
||||||
mv libcxx-%{version}.src llvm/projects/libcxx
|
mv libcxxabi-%{version}.src libcxxabi
|
||||||
mv libcxxabi-%{version}.src llvm/projects/libcxxabi
|
mv cmake-%{version}.src cmake
|
||||||
|
cp %{SOURCE5} CMakeLists.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -d build \
|
#:<< _EOF
|
||||||
-G Ninja \
|
mkdir -p build
|
||||||
-DCMAKE_C_COMPILER=clang \
|
cd build
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
cmake -G Ninja \
|
||||||
-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=NO \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
%ifarch x86_64 aarch64
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DLLVM_LIBDIR_SUFFIX="64" \
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
|
%if 0%{?__isa_bits} == 64
|
||||||
|
-DLIBCXX_LIBDIR_SUFFIX:STRING=64 \
|
||||||
|
-DLIBCXXABI_LIBDIR_SUFFIX:STRING=64 \
|
||||||
%endif
|
%endif
|
||||||
../llvm
|
-DLIBCXX_INCLUDE_BENCHMARKS=OFF \
|
||||||
|
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
|
||||||
|
-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \
|
||||||
|
..
|
||||||
|
|
||||||
ninja cxx cxx_experimental
|
ninja
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -82,24 +99,38 @@ DESTDIR=%{buildroot} ninja install-cxx install-cxxabi
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libc++.so.*
|
%{_libdir}/libc++.so.*
|
||||||
%doc llvm/projects/libcxx/LICENSE.TXT llvm/projects/libcxx/CREDITS.TXT
|
%doc libcxx/LICENSE.TXT libcxx/CREDITS.TXT
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_includedir}/c++
|
%dir %{_includedir}/c++
|
||||||
%dir %{_includedir}/c++/v1
|
%dir %{_includedir}/c++/v1
|
||||||
%{_includedir}/c++/v1/*
|
%{_includedir}/c++/v1/*
|
||||||
|
%exclude %{_includedir}/c++/v1/cxxabi.h
|
||||||
|
%exclude %{_includedir}/c++/v1/__cxxabi_config.h
|
||||||
%{_libdir}/libc++.a
|
%{_libdir}/libc++.a
|
||||||
|
%{_libdir}/libc++experimental.a
|
||||||
%{_libdir}/libc++.so
|
%{_libdir}/libc++.so
|
||||||
%{_libdir}/libc++abi.a
|
|
||||||
%{_libdir}/libc++abi.so
|
|
||||||
|
|
||||||
%files -n libcxxabi
|
%files -n libcxxabi
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libc++abi.so.*
|
%{_libdir}/libc++abi.so.*
|
||||||
%doc llvm/projects/libcxxabi/LICENSE.TXT llvm/projects/libcxxabi/CREDITS.TXT
|
%doc libcxxabi/LICENSE.TXT libcxxabi/CREDITS.TXT
|
||||||
|
|
||||||
|
%files -n libcxxabi-devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/c++/v1/cxxabi.h
|
||||||
|
%{_includedir}/c++/v1/__cxxabi_config.h
|
||||||
|
%{_libdir}/libc++abi.so
|
||||||
|
%{_libdir}/libc++abi.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 22 2023 Automatic Build System <autodist@mambasoft.it> 16.0.4-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Mon Apr 26 2021 Automatic Build System <autodist@mambasoft.it> 12.0.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-1mamba
|
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-1mamba
|
||||||
- update to 11.1.0
|
- update to 11.1.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user