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