summaryrefslogtreecommitdiffstats
path: root/libaec/libaec.spec
blob: 3925b7cdb5495a582d6f3d625442f683e070d85e (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
Name:           libaec
Version:        1.0.0
Release:        0
Summary:        Adaptive Entropy Coding library
License:        BSD-2-Clause
Url:            https://gitlab.dkrz.de/k202009/libaec
Source:         https://gitlab.dkrz.de/k202009/libaec/uploads/631e85bcf877c2dcaca9b2e6d6526339/libaec-1.0.0.tar.gz

%description
Libaec provides fast lossless compression of 1 up to 32 bit wide
signed or unsigned integers (samples). The library achieves best
results for low entropy data as often encountered in space imaging
instrument data or numerical model output from weather or climate
simulations. While floating point representations are not directly
supported, they can also be efficiently coded by grouping exponents
and mantissa.

Libaec implements Golomb Rice coding as defined in the Space Data
System Standard documents 121.0-B-2 and 120.0-G-2.

Libaec includes a free drop-in replacement for the SZIP
library (http://www.hdfgroup.org/doc_resource/SZIP).

%package devel
Summary:        Devel package for libaec (Adaptive Entropy Coding library)
Requires:       libaec

%description devel
Devel files and static library for libaec (Adaptive Entropy Coding library).

%prep
%setup -q

%build
%configure --disable-static
%make_build
#make %{?_smp_mflags} CFLAGS="%{optflags}"

%install
%make_install
find $RPM_BUILD_ROOT%{_libdir} -name 'lib*.la' -delete

%check
make %{?_smp_mflags} check VERBOSE=1

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%doc README README.SZIP ChangeLog
%license COPYING doc/patent.txt
%{_bindir}/aec
%{_libdir}/lib*.so.*

%files devel
%{_includedir}/*.h
%{_libdir}/lib*.so

%changelog