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