automatic version update by autodist [release 2021.6.0-1mamba;Thu Sep 22 2022]

This commit is contained in:
Automatic Build System 2024-01-05 18:21:00 +01:00
parent 67a1b63829
commit 6ab9033871

View File

@ -1,14 +1,14 @@
%define pkg_version %(echo %version | tr -d .) %define pkg_version %(echo %version | tr -d .)
Name: tbb Name: tbb
Version: 2020.3 Version: 2021.6.0
Release: 1mamba Release: 1mamba
Summary: The Threading Building Blocks library abstracts low-level threading details Summary: The Threading Building Blocks library abstracts low-level threading details
Group: Development/Tools Group: Development/Tools
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.threadingbuildingblocks.org/ URL: https://github.com/oneapi-src/oneTBB
Source0: https://github.com/intel/tbb.git/v%{version}/tbb-%{version}.tar.bz2 Source0: https://github.com/intel/tbb.git/v%{version}/tbb-%{version}.tar.bz2
#Source0: https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb%{pkg_version}oss_src.tgz #Source0: https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb%{pkg_version}oss_src.tgz
Source1: http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Getting_Started.pdf Source1: http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Getting_Started.pdf
@ -19,13 +19,12 @@ Patch1: tbb-2.2-mfence.patch
License: GPL with exceptions License: GPL with exceptions
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libhwloc-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: net-tools BuildRequires: net-tools
BuildRequires: util-linux-ng BuildRequires: util-linux-ng
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Threading Building Blocks (TBB) is a C++ runtime library that abstracts the low-level threading details necessary for optimal multi-core performance. It uses common C++ templates and coding style to eliminate tedious threading implementation work. Threading Building Blocks (TBB) is a C++ runtime library that abstracts the low-level threading details necessary for optimal multi-core performance. It uses common C++ templates and coding style to eliminate tedious threading implementation work.
@ -36,7 +35,7 @@ Group: System/Libraries
Summary: The Threading Building Blocks C++ headers and shared development libraries Summary: The Threading Building Blocks C++ headers and shared development libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: %{name} Provides: %{name}
Obsoletes: %{name} Obsoletes: %{name} < 2021.5.0
%description -n lib%{name} %description -n lib%{name}
Threading Building Blocks (TBB) is a C++ runtime library that abstracts the low-level threading details necessary for optimal multi-core performance. It uses common C++ templates and coding style to eliminate tedious threading implementation work. Threading Building Blocks (TBB) is a C++ runtime library that abstracts the low-level threading details necessary for optimal multi-core performance. It uses common C++ templates and coding style to eliminate tedious threading implementation work.
@ -48,7 +47,7 @@ Group: Development/Libraries
Summary: The Threading Building Blocks C++ headers and shared development libraries Summary: The Threading Building Blocks C++ headers and shared development libraries
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: %{name}-devel Provides: %{name}-devel
Obsoletes: %{name}-devel Obsoletes: %{name}-devel < 2021.5.0
%description -n lib%{name}-devel %description -n lib%{name}-devel
The Threading Building Blocks library abstracts low-level threading details. The Threading Building Blocks library abstracts low-level threading details.
@ -66,29 +65,25 @@ This package contains the Threading Building Blocks (TBB) documentation.
%prep %prep
%setup -q %setup -q
#-D -T
#%patch0 -p1 #%patch0 -p1
#%patch1 -p1 #%patch1 -p1
%build %build
%make CXXFLAGS="$RPM_OPT_FLAGS" tbb_build_prefix=obj #:<< _EOF
%cmake -d build \
-DCMAKE_STRIP=/bin/true \
-DCMAKE_CXX_FLAGS="%{optflags} -Wno-uninitialized -Wno-array-bounds -Wno-use-after-free -Wno-address"
cp -p "%{SOURCE1}" "%{SOURCE2}" "%{SOURCE3}" . #% make CXXFLAGS="$RPM_OPT_FLAGS" tbb_build_prefix=obj
#cp -p "%{SOURCE1}" "%{SOURCE2}" "%{SOURCE3}" .
%make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_libdir} %makeinstall -C build
#,malloc_proxy
pushd build/obj_release
for file in libtbb{,malloc}; do
install -pm 755 ${file}.so.2 %{buildroot}%{_libdir}
ln -s $file.so.2 %{buildroot}%{_libdir}/$file.so
done
popd
mkdir -p %{buildroot}%{_includedir}
cp -a include/tbb %{buildroot}%{_includedir}
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -100,31 +95,38 @@ cp -a include/tbb %{buildroot}%{_includedir}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libtbb.so.* %{_libdir}/libtbb.so.*
%{_libdir}/libtbbmalloc.so.* %{_libdir}/libtbbmalloc.so.*
#%{_libdir}/libtbbmalloc_proxy.so.* %{_libdir}/libtbbbind_2_5.so.*
%doc LICENSE %{_libdir}/libtbbmalloc_proxy.so.*
%doc LICENSE.txt
%files -n lib%{name}-devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/tbb %dir %{_includedir}/tbb
%{_includedir}/tbb/index.html
%{_includedir}/tbb/*.h %{_includedir}/tbb/*.h
%dir %{_includedir}/tbb/compat %{_includedir}/oneapi/tbb.h
%{_includedir}/tbb/compat/* %dir %{_includedir}/oneapi/tbb
%dir %{_includedir}/tbb/internal %{_includedir}/oneapi/tbb/*
%{_includedir}/tbb/internal/*.h
%dir %{_includedir}/tbb/machine
%{_includedir}/tbb/machine/*.h
%{_libdir}/libtbb.so %{_libdir}/libtbb.so
%{_libdir}/libtbbmalloc.so %{_libdir}/libtbbmalloc.so
#%{_libdir}/libtbbmalloc_proxy.so %{_libdir}/libtbbbind_2_5.so
%doc doc/Release_Notes.txt %{_libdir}/libtbbmalloc_proxy.so
%doc CHANGES README %{_libdir}/pkgconfig/tbb*.pc
%dir %{_libdir}/cmake/TBB
%{_libdir}/cmake/TBB/TBB*.cmake
%{_datadir}/doc/TBB/README.md
%doc README.md
%files doc #%files doc
%defattr(-,root,root) #%defattr(-,root,root)
%doc Getting_Started.pdf Reference.pdf Tutorial.pdf #%doc Getting_Started.pdf Reference.pdf Tutorial.pdf
%changelog %changelog
* Thu Sep 22 2022 Automatic Build System <autodist@mambasoft.it> 2021.6.0-1mamba
- automatic version update by autodist
* Fri Jan 07 2022 Automatic Build System <autodist@mambasoft.it> 2021.5.0-1mamba
- automatic version update by autodist
* Wed Sep 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.3-1mamba * Wed Sep 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.3-1mamba
- update to 2020.3 - update to 2020.3