Name: reproc Version: 14.2.2 Release: 1%{?dist} Summary: A cross-platform (C99/C++11) process library License: MIT URL: https://github.com/DaanDeMeyer/reproc Source0: https://github.com/DaanDeMeyer/reproc/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ %description reproc (Redirected Process) is a cross-platform C/C++ library that simplifies starting, stopping and communicating with external programs. The main use case is executing command line applications directly from C or C++ code and retrieving their output. reproc consists out of two libraries: reproc and reproc++. reproc is a C99 library that contains the actual code for working with external programs. reproc++ depends on reproc and adapts its API to an idiomatic C++11 API. It also adds a few extras that simplify working with external programs from C++. %package devel Summary: Development files for %{name} License: MIT Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake-filesystem Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup %build %cmake -DREPROC++=ON -DREPROC_TEST=ON %cmake_build %install %cmake_install %check %ctest %files %doc CHANGELOG.md README.md %license LICENSE %{_libdir}/*.so.14* %files devel %{_includedir}/reproc/ %{_includedir}/reproc++/ %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/cmake/reproc/ %{_libdir}/cmake/reproc++/ %changelog * Wed Jun 16 2021 Orion Poplawski - 14.2.2-1 - Initial package