]> git.pld-linux.org Git - packages/lz4.git/blob - lz4.spec
1774d21f3daeef86c2e7607a3efc1807497fb084
[packages/lz4.git] / lz4.spec
1 Summary:        Hash-based Predictive Lempel-Ziv compressor
2 Summary(pl.UTF-8):      Kompresor wykorzystujący metodę Lempel-Ziv z predykcją opartą na haszach
3 Name:           lz4
4 Version:        r131
5 Release:        1
6 License:        BSD (library), GPL v2+ (CLI utility)
7 Group:          Applications
8 Source0:        https://github.com/Cyan4973/lz4/archive/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  42b09fab42331da9d3fb33bd5c560de9
10 URL:            http://www.lz4.org/
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
15 algorithm. It is a LZP2 fork and provides better compression ratio for
16 text files.
17
18 %description -l pl.UTF-8
19 LZ4 to bardzo szybki kompresor, oparty na dobrze znanym algorytmie
20 LZ77 (Lempel-Ziv). Jest to odgałęzienie LZP2, zapewniające lepszy
21 współczynnik kompresji dla plików tekstowych.
22
23 %package libs
24 Summary:        LZ4 library
25 License:        BSD
26 Group:          Libraries
27 Conflicts:      %{name} < 0.0-1.r121.3
28
29 %description libs
30 LZ4 library.
31
32 %package devel
33 Summary:        Development files for the LZ4 compressor
34 Summary(pl.UTF-8):      Pliki programistyczne kompresora LZ4
35 Group:          Development/Libraries
36 Requires:       %{name}-libs = %{version}-%{release}
37
38 %description devel
39 LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
40 algorithm. It is a LZP2 fork and provides better compression ratio for
41 text files.
42
43 This subpackage contains the header files for developing applications
44 that want to make use of liblz4.
45
46 %description devel -l pl.UTF-8
47 LZ4 to bardzo szybki kompresor, oparty na dobrze znanym algorytmie
48 LZ77 (Lempel-Ziv). Jest to odgałęzienie LZP2, zapewniające lepszy
49 współczynnik kompresji dla plików tekstowych.
50
51 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
52 wykorzystujących liblz4.
53
54 %package static
55 Summary:        Static LZ4 compressor library
56 Summary(pl.UTF-8):      Statyczna biblioteka kompresora LZ4
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static LZ4 compressor library.
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka kompresora LZ4.
65
66 %prep
67 %setup -q
68
69 %build
70 CFLAGS="%{rpmcflags}" \
71 %{__make} \
72         CC="%{__cc}" \
73         CPPFLAGS="%{rpmcppflags}" \
74         lib all
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 %{__make} install \
79         PREFIX=%{_prefix} \
80         LIBDIR=%{_libdir} \
81         INSTALL="install -p" \
82         DESTDIR=$RPM_BUILD_ROOT \
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   libs -p /sbin/ldconfig
88 %postun libs -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc README.md NEWS
93 %attr(755,root,root) %{_bindir}/lz4
94 %attr(755,root,root) %{_bindir}/lz4c
95 %attr(755,root,root) %{_bindir}/lz4cat
96 %attr(755,root,root) %{_bindir}/unlz4
97 %{_mandir}/man1/lz4.1*
98 %{_mandir}/man1/lz4c.1*
99 %{_mandir}/man1/lz4cat.1*
100 %{_mandir}/man1/unlz4.1*
101
102 %files libs
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/liblz4.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/liblz4.so.1
106
107 %files devel
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/liblz4.so
110 %{_includedir}/lz4.h
111 %{_includedir}/lz4hc.h
112 %{_includedir}/lz4frame.h
113 %{_pkgconfigdir}/liblz4.pc
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/liblz4.a
This page took 0.04946 seconds and 2 git commands to generate.