代码拉取完成,页面将自动刷新
%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 <fundawang@yeah.net> - 1.22-2
- adopt to new cmake macro
- cleanup spec
* Tue Oct 22 2024 binshuo zu <binshuo.oerv@isrc.iscas.ac.cn> - 1.22-1
- upgrade to 1.22
* Sat Jun 3 2023 guoyizhang <kuoi@bioarchlinux.org> - 1.18-1
- update to 1.18
* Fri Jan 28 2022 herengui <herengui@uniontech.com> - 1.9-1
- Initial package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。