Name: libformfactor Version: 0.3.1 Release: %autorelease Summary: Efficient computation of scattering form factors of arbitrary polyhedra License: GPL-3.0-or-later URL: https://jugit.fz-juelich.de/mlz/libformfactor Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 Patch0: libformfactor-fix-cmake.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: cmake(LibHeinz) %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains development files for %{name}. %prep %autosetup -p1 -n %{name}-v%{version} %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libformfactor.so.* %files devel %{_libdir}/libformfactor.so %{_includedir}/ff/ %{_libdir}/cmake/formfactor/ %changelog %autochangelog