]> git.pld-linux.org Git - packages/lz4.git/blob - lz4.spec
up to 1.9.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.9.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:  3a1ab1684e14fc1afc66228ce61b2db3
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         LDFLAGS="%{rpmldflags}" \
83         CC="%{__cc}" \
84         V=1
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 %{__make} install \
89         PREFIX=%{_prefix} \
90         LIBDIR=%{_libdir} \
91         INCLUDEDIR=%{_includedir} \
92         MANDIR=%{_mandir} \
93         INSTALL="install -p" \
94         DESTDIR=$RPM_BUILD_ROOT \
95
96 install -d $RPM_BUILD_ROOT/%{_lib}
97 %{__mv} $RPM_BUILD_ROOT%{_libdir}/liblz4.so.* $RPM_BUILD_ROOT/%{_lib}
98 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/liblz4.so.*.*.*) \
99         $RPM_BUILD_ROOT%{_libdir}/liblz4.so
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   libs -p /sbin/ldconfig
105 %postun libs -p /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %doc LICENSE NEWS README.md
110 %attr(755,root,root) %{_bindir}/lz4
111 %attr(755,root,root) %{_bindir}/lz4c
112 %attr(755,root,root) %{_bindir}/lz4cat
113 %attr(755,root,root) %{_bindir}/unlz4
114 %{_mandir}/man1/lz4.1*
115 %{_mandir}/man1/lz4c.1*
116 %{_mandir}/man1/lz4cat.1*
117 %{_mandir}/man1/unlz4.1*
118
119 %files libs
120 %defattr(644,root,root,755)
121 %doc lib/{LICENSE,README.md}
122 %attr(755,root,root) /%{_lib}/liblz4.so.*.*.*
123 %attr(755,root,root) %ghost /%{_lib}/liblz4.so.1
124
125 %files devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/liblz4.so
128 %{_includedir}/lz4.h
129 %{_includedir}/lz4hc.h
130 %{_includedir}/lz4frame.h
131 %{_includedir}/lz4frame_static.h
132 %{_pkgconfigdir}/liblz4.pc
133
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/liblz4.a
This page took 0.065549 seconds and 3 git commands to generate.