]> git.pld-linux.org Git - packages/lz4.git/blame - lz4.spec
fix make callout so that programs are compiled in build stage
[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)
e898c13a 7Group: Libraries
f2003757
ER
8Source0: https://github.com/Cyan4973/lz4/archive/%{version}/%{name}-%{version}.tar.gz
9# Source0-md5: 42b09fab42331da9d3fb33bd5c560de9
e898c13a 10URL: http://fastcompression.blogspot.com/p/lz4.html
61e29706 11BuildRequires: sed >= 4.0
e898c13a
ER
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
16algorithm. It is a LZP2 fork and provides better compression ratio for
17text files.
18
8518f842
JB
19%description -l pl.UTF-8
20LZ4 to bardzo szybki kompresor, oparty na dobrze znanym algorytmie
21LZ77 (Lempel-Ziv). Jest to odgałęzienie LZP2, zapewniające lepszy
22współczynnik kompresji dla plików tekstowych.
23
046bf775
ER
24%package libs
25Summary: LZ4 library
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 68
d6edfe4f 69mv cmake{_unofficial,}
61e29706
ER
70%{__sed} -i -e 's/-Os -march=native/%{rpmcflags}/' cmake/CMakeLists.txt
71
e898c13a 72%build
f2003757 73CFLAGS="%{rpmcflags}" \
d6edfe4f
ER
74%{__make} \
75 CC="%{__cc}" \
97ccedaa
ER
76 CPPFLAGS="%{rpmcppflags}" \
77 lib all
e898c13a
ER
78
79%install
80rm -rf $RPM_BUILD_ROOT
d6edfe4f 81%{__make} install \
f2003757 82 PREFIX=%{_prefix} \
d6edfe4f
ER
83 LIBDIR=%{_libdir} \
84 INSTALL="install -p" \
85 DESTDIR=$RPM_BUILD_ROOT \
e898c13a
ER
86
87%clean
88rm -rf $RPM_BUILD_ROOT
89
046bf775
ER
90%post libs -p /sbin/ldconfig
91%postun libs -p /sbin/ldconfig
e2b4d925 92
e898c13a
ER
93%files
94%defattr(644,root,root,755)
f2003757 95%doc README.md NEWS
e898c13a 96%attr(755,root,root) %{_bindir}/lz4
d6edfe4f
ER
97%attr(755,root,root) %{_bindir}/lz4c
98%attr(755,root,root) %{_bindir}/lz4cat
f2003757 99%attr(755,root,root) %{_bindir}/unlz4
e898c13a 100%{_mandir}/man1/lz4.1*
d6edfe4f
ER
101%{_mandir}/man1/lz4c.1*
102%{_mandir}/man1/lz4cat.1*
f2003757 103%{_mandir}/man1/unlz4.1*
046bf775
ER
104
105%files libs
106%defattr(644,root,root,755)
e2b4d925 107%attr(755,root,root) %{_libdir}/liblz4.so.*.*.*
d6edfe4f 108%attr(755,root,root) %ghost %{_libdir}/liblz4.so.1
e898c13a
ER
109
110%files devel
111%defattr(644,root,root,755)
8518f842 112%attr(755,root,root) %{_libdir}/liblz4.so
e2b4d925
ER
113%{_includedir}/lz4.h
114%{_includedir}/lz4hc.h
f2003757 115%{_includedir}/lz4frame.h
d6edfe4f 116%{_pkgconfigdir}/liblz4.pc
e2b4d925
ER
117
118%files static
119%defattr(644,root,root,755)
120%{_libdir}/liblz4.a
This page took 0.088353 seconds and 4 git commands to generate.