%undefine __cmake_in_source_build %undefine __cmake3_in_source_build Name: zfp Version: 0.5.5 Release: 2%{?dist} Summary: Compressed numerical arrays that support high-speed random access License: BSD-3-Clause URL: https://github.com/LLNL/zfp.git Source0: https://github.com/LLNL/zfp/releases/download/0.5.5/zfp-0.5.5.tar.gz %if 0%{?suse_version} >= 1500 BuildRequires: cmake %else BuildRequires: cmake3 %endif BuildRequires: gcc-c++ %if 0%{?suse_version} >= 1500 Requires: libgomp1 %else Requires: libgomp %endif %description ZFP 0.5.5 needed by the carta-backend. %package devel #Requires: Summary: ZFP 0.5.5 development files Provides: zfp-devel %description devel Development package of ZFP 0.5.5 containing the lib and header files. %prep %setup -q %build %if 0%{?suse_version} >= 1500 %cmake -DCMAKE_INSTALL_PREFIX=/usr %cmake_build %install %cmake_install %else %cmake3 -DCMAKE_INSTALL_PREFIX=/usr %cmake3_build %install %cmake3_install %endif %clean rm -rf $RPM_BUILD_ROOT %files devel %{_includedir}/zfp* %{_includedir}/bitstream.h %{_libdir}/cmake/zfp %{_libdir}/lib* %files %{_libdir}/libzfp.so %{_libdir}/libzfp.so.0 %{_libdir}/libzfp.so.0.5.5 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Tue Feb 7 2023 Anthony Moraghan 0.5.5-2 - Rebuilt for opensuse 15.4 * Sat Aug 13 2022 Anthony Moraghan 0.5.5 - Rebuilt for RedHat9 (el9) * Thu Apr 29 2021 Anthony Moraghan 0.5.5 - An initial zfp RPM to be used with carta_backend