summaryrefslogtreecommitdiff
path: root/lz4.spec
blob: 49f16c7e1a28ba95032f635430e35296e30a8d08 (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
81
82
83
84
85
86
87
88
89
90
91
92
Name:           lz4
Version:        1.10.0
Release:        1
Summary:        Extremely fast compression algorithm

License:        GPL-2.0-or-later AND BSD-2-Clause
URL:            https://lz4.org
Source0:        https://github.com/lz4/lz4/releases/download/v%{version}/%{name}-%{version}.tar.gz

Provides:       %{name}-libs = %{version}-%{release}
Obsoletes:      %{name}-libs < %{version}

BuildRequires:	gcc
BuildRequires:  make

%description
LZ4 is lossless compression algorithm, providing compression speed > 500 MB/s per
core (>0.15 Bytes/cycle). It features an extremely fast decoder, with speed in
multiple GB/s per core (~1 Byte/cycle). A high compression derivative, called
LZ4_HC, is available, trading customizable CPU time for compression ratio.

%package        devel
Summary:        Development files for lz4
Requires:       %{name}%{?_isa} = %{version}-%{release}
Provides:       %{name}-static = %{version}-%{release}
Obsoletes:      %{name}-static < %{version}

%description    devel
This package contains the header(.h) and library(.so/.a) files required to build
applications using liblz4 library.

%package_help

%prep
%autosetup -n %{name}-%{version} -p1
cp lib/LICENSE LICENSE-lib

%build
%set_build_flags
%make_build

%install
%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix}

%check
%make_build test

%files
%license programs/COPYING
%doc NEWS
%license LICENSE
%license LICENSE-lib
%{_bindir}/*
%{_libdir}/liblz4.so.*

%files devel
%license lib/LICENSE
%{_includedir}/lz4*.h
%{_libdir}/liblz4.so
%{_libdir}/liblz4.a
%{_libdir}/pkgconfig/liblz4.pc

%files help
%{_mandir}/man?/*

%changelog
* Wed Jul 24 2024 Funda Wang <fundawang@yeah.net> - 1.10.0-1
- update to 1.10.0

* Thu Feb 16 2023 zhangnan <zhangnan134@huawei.com> - 1.9.4-2
- add make check in spec

* Thu Jan 19 2023 Lv Ying <lvying6@huawei.com> - 1.9.4-1
- upgrade to 1.9.4-1

* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> - 1.9.3-4
- add _FORTIFY_SOURCE add enable check

* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.9.3-3
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git

* Sat Jun 19 2021 shixuantong <shixuantong@huawei.com> - 1.9.3-2 
- fix CVE-2021-3520

* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 1.9.3-1
- upgrade version to 1.9.3

* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.2-2
- fix abort in oss-fuzz round_trip_stream_fuzzer.c

* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.2-1
- Package init