summaryrefslogtreecommitdiffstats
path: root/libslz/libslz.spec
blob: 90810c3e0775aab05aeb97590027fbb4bff9158d (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
%global _hardened_build 1

Name:		libslz
Version:	1.1.0
Release:	1%{?dist}
Summary:	StateLess Zip

Group:		System Environment/Libraries
License:	MIT
URL:		http://1wt.eu/projects/libslz/
Source:		http://git.1wt.eu/web?p=%{name}.git;a=snapshot;h=v%{version};sf=tgz#/%{name}-%{version}.tar.gz
Patch:		build.patch
# TODO when upstream is ready
# URL:		http://libslz.org/
# Source:	http://libslz.org/path/to/%{name}-%{version}.tar.gz


%description
SLZ is a fast and memory-less stream compressor which produces an output that
can be decompressed with zlib or gzip. It does not implement decompression at
all, zlib is perfectly fine for this.

The purpose is to use SLZ in situations where a zlib-compatible stream is
needed and zlib's resource usage would be too high while the compression ratio
is not critical. The typical use case is in HTTP servers and gateways which
have to compress many streams in parallel with little CPU resources to assign
to this task, and without having to limit the compression ratio due to the
memory usage. In such an environment, the server's memory usage can easily be
divided by 10 and the CPU usage by 3.


%package devel

Summary:	Development files for %{name}
Requires:	%{name}%{?_isa} = %{version}-%{release}


%description devel
Development files for SLZ, the zenc and zdec commands that respectively
compress using SLZ and dump the decoding process.


%prep
%setup -qn %{name}
%patch -p1


%build
%make_build CFLAGS="%{optflags}"


%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
rm %{buildroot}%{_libdir}/*.a


%files
%doc README
%license LICENSE
%{_libdir}/*.so.*


%files devel
%{_libdir}/*.so
%{_bindir}/*
%{_includedir}/*


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%changelog
* Sun Sep 25 2016 - Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 1.1.0-1
- Initial spec.