%global forgeurl https://github.com/dreamworksanimation %global cmodver 1.0.0.5 %bcond tests 1 # Core Dump Fix %global optflags %(echo '%optflags' | sed s/-Wp,-D_GLIBCXX_ASSERTIONS//) Name: mcrt_messages Version: 13.6.0.0 Release: 1%{?dist} Summary: Communication protocol for Arras and MoonRay License: Apache-2.0 URL: https://openmoonray.org/ Source0: %{forgeurl}/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz Source1: %{forgeurl}/cmake_modules/archive/refs/tags/cmake_modules-%{cmodver}.tar.gz BuildRequires: cmake >= 3.23.1 BuildRequires: gcc-c++ BuildRequires: cmake(ArrasCore) = 4.10.3.0 Requires: ArrasCore = 4.10.3.10 Provides: McrtMessages = %{version} %description Communication protocol for Arras and MoonRay %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake(ArrasCore) = 4.10.3.0 BuildRequires: boost-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 -n %{name}-%{name}-%{version} mkdir -p cmake_modules tar -xzf %{SOURCE1} --strip-components=1 -C $_ %build ARRAS_SESSION_PATH=%{_libdir}/openmoonray/sessions \ %cmake \ -DCMAKE_MODULE_PATH=cmake_modules/cmake \ -DBUILD_TESTING=%{expr:%{with tests}?"ON":"OFF"} %cmake_build %install %cmake_install %files %license LICENSE %{_libdir}/libmcrt_messages.so %files devel %{_includedir}/%{name} %{_libdir}/cmake/McrtMessages-%(echo %{version} | sed 's/\(.*\)\.[0-9]*$/\1/').0 %changelog %autochangelog