%global forgeurl https://github.com/dreamworksanimation %global cmodver 1.0.0.12 %bcond tests 1 Name: arras4_node Version: 4.7.1.8 Release: %autorelease -b 2 Summary: Arras service for distributed rendering 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: boost-devel Requires: ArrasCore Provides: ArrasNode = %{baseversion} Provides: ArrasNode = %{version} %description Arras service for distributed rendering %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} BuildRequires: cmake(ArrasCore) %description devel The %{name}-devel package contains libraries and header files of %{name}, required to build other parts of OpenMoonRay. %prep %autosetup -p1 -n %{name}-%{name}-%{version} mkdir -p cmake_modules tar -xzf %{SOURCE1} --strip-components=1 -C $_ # Include minor releases sed -i "14s|'[^']*'|'%{version}'|" \ package.py %build ARRAS_SESSION_PATH=%{_libdir}/openmoonray/sessions \ %cmake \ -DCMAKE_MODULE_PATH=%{_builddir}/%{buildsubdir}/cmake_modules/cmake \ -DBUILD_TESTING=%{expr:%{with tests}?"ON":"OFF"} \ -DMOONRAY_USE_OPTIX=OFF \ -DCMAKE_POLICY_DEFAULT_CMP0012=NEW %cmake_build %install %cmake_install %files %license LICENSE %{_bindir}/arras4_node %{_bindir}/arras4_router %{_prefix}/lib/libnode_messages.so %{_prefix}/lib/libnode_router.so %{_prefix}/lib/libnode_session.so %files devel %{_includedir}/node %{_includedir}/session %{_libdir}/cmake/ArrasNode-%{version} %changelog %autochangelog