]>
Commit | Line | Data |
---|---|---|
8edbfa0e JB |
1 | Summary: Zstandard - fast lossless compression algorithm |
2 | Summary(pl.UTF-8): Zstandard - szybki, bezstratny algorytm kompresji | |
3 | Name: zstd | |
46edb54d | 4 | Version: 1.3.5 |
8edbfa0e JB |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
a3eb5c88 JB |
8 | #Source0Download: https://github.com/facebook/zstd/releases |
9 | Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz | |
46edb54d | 10 | # Source0-md5: d2fc97be4852d666f086282053c02319 |
8edbfa0e | 11 | Patch0: %{name}-noquiet.patch |
a3eb5c88 | 12 | URL: https://github.com/facebook/zstd |
8edbfa0e JB |
13 | BuildRequires: gcc >= 5:3.2 |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Zstd, short for Zstandard, is a fast lossless compression algorithm, | |
18 | targeting real-time compression scenarios at zlib-level compression | |
19 | ratio. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | Zstd (skrót od Zstandard) to szybki, bezstratny algorytm kompresji, do | |
23 | zastosowwań przy kompresji w czasie rzeczywistym ze współczynnikiem | |
24 | kompresji zbliżonym do biblioteki zlib. | |
25 | ||
26 | %package devel | |
27 | Summary: Header files for Zstd library | |
28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Zstd | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Header files for Zstd library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki Zstd. | |
37 | ||
38 | %package static | |
39 | Summary: Static Zstd library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka Zstd | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static Zstd library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka Zstd. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | %patch0 -p1 | |
8edbfa0e JB |
53 | |
54 | %build | |
55 | CC="%{__cc}" \ | |
56 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
57 | LDFLAGS="%{rpmldflags}" \ | |
14b5ee43 | 58 | %{__make} -j1 all |
8edbfa0e JB |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT \ | |
65 | PREFIX=%{_prefix} \ | |
66 | LIBDIR=%{_libdir} | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
46edb54d | 76 | %doc LICENSE NEWS README.md |
8edbfa0e JB |
77 | %attr(755,root,root) %{_bindir}/unzstd |
78 | %attr(755,root,root) %{_bindir}/zstd | |
79 | %attr(755,root,root) %{_bindir}/zstdcat | |
a3eb5c88 JB |
80 | %attr(755,root,root) %{_bindir}/zstdgrep |
81 | %attr(755,root,root) %{_bindir}/zstdless | |
46edb54d | 82 | %attr(755,root,root) %{_bindir}/zstdmt |
8edbfa0e | 83 | %attr(755,root,root) %{_libdir}/libzstd.so.*.*.* |
d72b5ebc | 84 | %attr(755,root,root) %ghost %{_libdir}/libzstd.so.1 |
8edbfa0e JB |
85 | %{_mandir}/man1/unzstd.1* |
86 | %{_mandir}/man1/zstd.1* | |
87 | %{_mandir}/man1/zstdcat.1* | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
a3eb5c88 | 91 | %doc doc/{zstd_compression_format.md,zstd_manual.html,images} |
8edbfa0e JB |
92 | %attr(755,root,root) %{_libdir}/libzstd.so |
93 | %{_includedir}/zbuff.h | |
94 | %{_includedir}/zdict.h | |
95 | %{_includedir}/zstd.h | |
a3eb5c88 | 96 | %{_includedir}/zstd_errors.h |
8edbfa0e JB |
97 | %{_pkgconfigdir}/libzstd.pc |
98 | ||
99 | %files static | |
100 | %defattr(644,root,root,755) | |
101 | %{_libdir}/libzstd.a |