%global forgeurl https://github.com/PixlOne/ipcgull Epoch: 0 Name: ipcgull Version: 0.1 Release: 1%{?dist} Summary: A GDBus-based IPC library for modern C++ %forgemeta License: GPL-3.0-or-later URL: %{forgeurl} Source: %{forgesource} # Change from static to dynamic lib Patch0: ipcgull-shared-lib.patch Patch1: ipcgull-include-stdexcept.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glib2-devel BuildRequires: libstdc++-devel %description Ipcgull is a C++ IPC library that takes advantage of modern C++17 features to provide a simple interface for developers to handle IPC. Currently, Ipcgull only supports a D-Bus backend (via GDBus), but this is abstracted by the library and can theoretically be replaced. However, that is out of scope for this project. %package devel Summary: A GDBus-based IPC library for modern C++ Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains header files and other files needed to develop with ipcgull. %prep %autosetup -p1 %build %{cmake} -DPROJECT_EPOCH=%{epoch} %{cmake_build} %install %{cmake_install} install -D -pm 755 redhat-linux-build/libipcgull_shared.so.%{version} %{buildroot}%{_libdir}/libipcgull_shared.so.%{version} install -D -pm 755 redhat-linux-build/libipcgull_shared.so.%{epoch} %{buildroot}%{_libdir}/libipcgull_shared.so.%{epoch} %files %{_libdir}/*.so.* %license LICENSE %doc README.md %files devel %{_libdir}/*.so %{_includedir}/ipcgull/ %changelog * Thu Jul 20 2023 Nicolas De Amicis - 0.1-1 - Initial packaging