%undefine _debugsource_packages Summary: PTL Lightweight C++11 multithreading tasking system featuring thread-pool, task-groups, and lock-free task queue Name: PTL Version: 1.0.1 Release: 1%{?dist} License: MIT Prefix: %{_prefix} #Source: https://github.com/jrmadsen/PTL/archive/v%{version}.tar.gz Source: PTL-%{version}.tar.gz Requires: tbb-devel BuildRequires: gcc-c++ tbb-devel Requires: collier %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 BuildRequires: cmake >= 3.4.3 %else BuildRequires: cmake3 >= 3.4.3 %endif %description PTL Lightweight C++11 multithreading tasking system featuring thread-pool, task-groups, and lock-free task queue %package devel Summary: Lightweight C++11 multithreading tasking system featuring thread-pool, task-groups, and lock-free task queue Requires: %{name}%{?_isa} = %{version}-%{release} %description devel PTL Lightweight C++11 multithreading tasking system featuring thread-pool, task-groups, and lock-free task queue %prep %setup -q %build %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 %cmake \ %else %cmake3 \ %endif . -DPTL_INSTALL_INCLUDEDIR=%{_includedir} -DPTL_INSTALL_LIBDIR=%{_libdir} %if %{?fedora}%{!?fedora:0} %cmake_build %else make %endif %install %if %{?fedora}%{!?fedora:0} %cmake_install %else %make_install %endif %files %defattr(-,root,root) %{_libdir}/lib* %files devel %defattr(-,root,root) %{_includedir}/PTL %{_libdir}/PTL %clean rm -rf %{buildroot} %post ldconfig %changelog * Sun Jan 11 2021 Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de - Initial