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