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