%global toolchain clang %global reltag 5.6-RELEASE Name: libdispatch Version: 5.6.0 Release: 1%{?dist} Summary: Apple's Grand Central Dispatch library License: ASL 2.0 URL: https://github.com/apple/swift-corelibs-libdispatch Source0: https://github.com/apple/swift-corelibs-libdispatch/archive/swift-%{reltag}.tar.gz#/corelibs-libdispatch.tar.gz BuildRequires: clang BuildRequires: libbsd-devel BuildRequires: ninja-build BuildRequires: cmake BuildRequires: chrpath ExclusiveArch: x86_64 aarch64 Provides: libblocksruntime = %{version}-%{release} Obsoletes: libblocksruntime < 7.0.0-5 Epoch: 1 %description Grand Central Dispatch (GCD or libdispatch) provides comprehensive support for concurrent code execution on multicore hardware. libdispatch is currently available on all Darwin platforms. This project aims to make a modern version of libdispatch available on all other Swift platforms. To do this, we will implement as much of the portable subset of the API as possible, using the existing open source C implementation. libdispatch on Darwin is a combination of logic in the xnu kernel alongside the user-space Library. The kernel has the most information available to balance workload across the entire system. As a first step, however, we believe it is useful to bring up the basic functionality of the library using user-space pthread primitives on Linux. Eventually, a Linux kernel module could be developed to support more informed thread scheduling. %package devel Summary: Development files for libdispatch Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} %description devel Development files for libdispatch %prep %setup -q -n swift-corelibs-libdispatch-swift-%{reltag} %build export CXX=clang++ export CC=clang %cmake -G Ninja %cmake_build %install %cmake_install chrpath --delete %{buildroot}%{_libdir}/libdispatch.so %files %license LICENSE %{_libdir}/libBlocksRuntime.so %{_libdir}/libdispatch.so %{_mandir}/man3/* %files devel %{_includedir}/Block.h %{_includedir}/dispatch/* %{_includedir}/os/* %changelog * Tue Mar 22 2022 Ron Olson 5.6.0-1 - Updated to 5.6.0-RELEASE * Tue Dec 14 2021 Ron Olson 5.5.2-1 - Updated to 5.5.2-RELEASE * Fri Oct 29 2021 Ron Olson 5.5.1-1 - Updated to 5.5.1-RELEASE * Tue Jun 01 2021 Ron Olson 5.4.1-1 - Updated to 5.4.1-RELEASE * Sat May 01 2021 Ron Olson 5.4-1 - Updated to 5.4-RELEASE also added explicit CMake step for EPEL8 * Wed Feb 03 2021 Ron Olson 5.3.3-1 - Initial version based on version 5.3.3-RELEASE