]> git.pld-linux.org Git - packages/lz4.git/blob - lz4.spec
- pl for -libs, License for -devel and -static
[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 Summary(pl.UTF-8):      Biblioteka LZ4
26 License:        BSD
27 Group:          Libraries
28 Conflicts:      %{name} < 0.0-1.r121.3
29
30 %description libs
31 LZ4 library.
32
33 %description libs -l pl.UTF_8
34 Biblioteka LZ4.
35
36 %package devel
37 Summary:        Development files for the LZ4 compressor
38 Summary(pl.UTF-8):      Pliki programistyczne kompresora LZ4
39 License:        BSD
40 Group:          Development/Libraries
41 Requires:       %{name}-libs = %{version}-%{release}
42
43 %description devel
44 LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
45 algorithm. It is a LZP2 fork and provides better compression ratio for
46 text files.
47
48 This subpackage contains the header files for developing applications
49 that want to make use of liblz4.
50
51 %description devel -l pl.UTF-8
52 LZ4 to bardzo szybki kompresor, oparty na dobrze znanym algorytmie
53 LZ77 (Lempel-Ziv). Jest to odgałęzienie LZP2, zapewniające lepszy
54 współczynnik kompresji dla plików tekstowych.
55
56 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
57 wykorzystujących liblz4.
58
59 %package static
60 Summary:        Static LZ4 compressor library
61 Summary(pl.UTF-8):      Statyczna biblioteka kompresora LZ4
62 License:        BSD
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static LZ4 compressor library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka kompresora LZ4.
71
72 %prep
73 %setup -q
74
75 %build
76 CFLAGS="%{rpmcflags}" \
77 %{__make} lib all \
78         CC="%{__cc}" \
79         CPPFLAGS="%{rpmcppflags}"
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 %{__make} install \
84         PREFIX=%{_prefix} \
85         LIBDIR=%{_libdir} \
86         INSTALL="install -p" \
87         DESTDIR=$RPM_BUILD_ROOT \
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   libs -p /sbin/ldconfig
93 %postun libs -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %doc README.md NEWS
98 %attr(755,root,root) %{_bindir}/lz4
99 %attr(755,root,root) %{_bindir}/lz4c
100 %attr(755,root,root) %{_bindir}/lz4cat
101 %attr(755,root,root) %{_bindir}/unlz4
102 %{_mandir}/man1/lz4.1*
103 %{_mandir}/man1/lz4c.1*
104 %{_mandir}/man1/lz4cat.1*
105 %{_mandir}/man1/unlz4.1*
106
107 %files libs
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/liblz4.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/liblz4.so.1
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/liblz4.so
115 %{_includedir}/lz4.h
116 %{_includedir}/lz4hc.h
117 %{_includedir}/lz4frame.h
118 %{_pkgconfigdir}/liblz4.pc
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/liblz4.a
This page took 0.12176 seconds and 3 git commands to generate.