%global debug_package %{nil} Name: libdeflate Version: 1.22 Release: 2 Summary: Fast implementation of DEFLATE, gzip, and zlib License: MIT URL: https://github.com/ebiggers/libdeflate Source0: https://github.com/ebiggers/libdeflate/releases/download/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: cmake >= 3.7 BuildRequires: ninja-build BuildRequires: zlib-devel %description libdeflate is a library for fast, whole-buffer DEFLATE-based compression and decompression, supporting DEFLATE, gzip, and zlib. %package devel Summary: Development files for libdeflate Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for libdeflate. %package utils Summary: Binaries from libdeflate Requires: %{name}%{?_isa} = %{version}-%{release} %description utils Binaries from libdeflate. %prep %autosetup %build %cmake -G Ninja \ -DLIBDEFLATE_BUILD_STATIC_LIB=OFF \ -DLIBDEFLATE_BUILD_TESTS=ON %cmake_build %install %cmake_install %check %ctest %files %doc NEWS.md README.md %license COPYING %{_libdir}/libdeflate.so.* %files devel %{_includedir}/libdeflate.h %{_libdir}/libdeflate.so %{_libdir}/cmake/libdeflate %{_libdir}/pkgconfig/* %files utils %{_bindir}/libdeflate-gzip %{_bindir}/libdeflate-gunzip %changelog * Sat Nov 09 2024 Funda Wang - 1.22-2 - adopt to new cmake macro - cleanup spec * Tue Oct 22 2024 binshuo zu - 1.22-1 - upgrade to 1.22 * Sat Jun 3 2023 guoyizhang - 1.18-1 - update to 1.18 * Fri Jan 28 2022 herengui - 1.9-1 - Initial package