Name: libformfactor Version: 0.3.1 Release: %autorelease Summary: Efficient computation of scattering form factors of arbitrary polyhedra # the library is under GPL-3.0-or-later # test/3rdparty/catch.hpp - BSL-1.0 License: GPL-3.0-or-later URL: https://jugit.fz-juelich.de/mlz/libformfactor Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 # Use GNUInstallDirs to fix the install directory in CMake Patch0: libformfactor-fix-cmake.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: cmake(LibHeinz) %description A C++ library for the efficient computation of scattering form factors (Fourier shape transforms) of arbitrary polyhedra according to Joachim Wuttke, [J Appl Cryst 54, 580-587 (2021)](https://doi.org/10.1107/S1600576721001710). %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=RelWithDebInfo \ %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