summaryrefslogtreecommitdiff
path: root/libdeflate.spec
blob: 8383e7516c91f86f425d352b0ddfdf330cf95c20 (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
%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