%global debug_package %{nil} %global reltag 5.4.2-RELEASE Name: libdispatch Version: 5.4.2 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 cmake -G Ninja -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_usr} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ . ninja %install ninja 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 * Wed Jul 07 2021 Ron Olson 5.4.2-1 - Updated to 5.4.2-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