diff --git a/libdispatch.spec b/libdispatch.spec index 1a576b4..448e891 100644 --- a/libdispatch.spec +++ b/libdispatch.spec @@ -3,13 +3,14 @@ Name: libdispatch Version: 5.6.0 -Release: 1%{?dist} +Release: 2%{?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 +Patch0: noerrors.patch BuildRequires: clang BuildRequires: libbsd-devel @@ -57,6 +58,7 @@ Development files for libdispatch %prep %setup -q -n swift-corelibs-libdispatch-swift-%{reltag} +%patch0 -p0 %build export CXX=clang++ @@ -84,6 +86,8 @@ chrpath --delete %{buildroot}%{_libdir}/libdispatch.so %changelog +* Wed Mar 23 2022 Ron Olson 5.6.0-2 +- Added patch to allow for building on EPEL-8 * 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 diff --git a/noerrors.patch b/noerrors.patch new file mode 100644 index 0000000..9640ceb --- /dev/null +++ b/noerrors.patch @@ -0,0 +1,10 @@ +--- cmake/modules/DispatchCompilerWarnings.cmake.orig 2022-03-23 15:34:30.474065670 -0500 ++++ cmake/modules/DispatchCompilerWarnings.cmake 2022-03-23 15:46:39.228684206 -0500 +@@ -2,7 +2,6 @@ + if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC") + # TODO: someone needs to provide the msvc equivalent warning flags + else() +- add_compile_options($<$,$>:-Werror>) + add_compile_options($<$,$>:-Wall>) + add_compile_options($<$,$>:-Wextra>) +