blob: 16d1a1a5f6db9188317267b9d735a3667857ae09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
%global debug_package %{nil}
Name: libdeflate
Version: 1.21
Release: 1
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
Patch0: libdeflate-gcc-13.3-binutils-2.40.patch
BuildRequires: gcc cmake 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 -p1
%build
%cmake \
-DLIBDEFLATE_BUILD_STATIC_LIB:BOOL=OFF \
-DLIBDEFLATE_BUILD_SHARED_LIB:BOOL=ON \
-DLIBDEFLATE_COMPRESSION_SUPPORT:BOOL=ON \
-DLIBDEFLATE_DECOMPRESSION_SUPPORT:BOOL=ON \
-DLIBDEFLATE_ZLIB_SUPPORT:BOOL=ON \
-DLIBDEFLATE_GZIP_SUPPORT:BOOL=ON \
-DLIBDEFLATE_FREESTANDING:BOOL=OFF \
-DLIBDEFLATE_BUILD_GZIP:BOOL=ON \
-DLIBDEFLATE_BUILD_TESTS:BOOL=ON \
-DLIBDEFLATE_USE_SHARED_LIBS:BOOL=ON
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%doc NEWS.md README.md
%license COPYING
%{_libdir}/libdeflate.so.0
%files devel
%{_includedir}/libdeflate.h
%{_libdir}/libdeflate.so
%{_libdir}/cmake/libdeflate/*.cmake
%{_libdir}/pkgconfig/*
%files utils
%{_bindir}/libdeflate-gzip
%{_bindir}/libdeflate-gunzip
%changelog
* Sun Aug 11 2024 Funda Wang <fundawang@yeah.net> - 1.21-1
- update to 1.21
* 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
|