]> git.pld-linux.org Git - packages/zstd.git/blob - zstd.spec
- updated to 1.1.4
[packages/zstd.git] / zstd.spec
1 Summary:        Zstandard - fast lossless compression algorithm
2 Summary(pl.UTF-8):      Zstandard - szybki, bezstratny algorytm kompresji
3 Name:           zstd
4 Version:        1.1.4
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/facebook/zstd/releases
9 Source0:        https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  16f16d81ce8bed7d52e1e40b9c73677e
11 Patch0:         %{name}-noquiet.patch
12 URL:            https://github.com/facebook/zstd
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
53
54 %build
55 CC="%{__cc}" \
56 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
57 LDFLAGS="%{rpmldflags}" \
58 %{__make} -j1 all
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)
76 %doc LICENSE NEWS PATENTS README.md
77 %attr(755,root,root) %{_bindir}/unzstd
78 %attr(755,root,root) %{_bindir}/zstd
79 %attr(755,root,root) %{_bindir}/zstdcat
80 %attr(755,root,root) %{_bindir}/zstdgrep
81 %attr(755,root,root) %{_bindir}/zstdless
82 %attr(755,root,root) %{_libdir}/libzstd.so.*.*.*
83 %attr(755,root,root) %ghost %{_libdir}/libzstd.so.1
84 %{_mandir}/man1/unzstd.1*
85 %{_mandir}/man1/zstd.1*
86 %{_mandir}/man1/zstdcat.1*
87
88 %files devel
89 %defattr(644,root,root,755)
90 %doc doc/{zstd_compression_format.md,zstd_manual.html,images}
91 %attr(755,root,root) %{_libdir}/libzstd.so
92 %{_includedir}/zbuff.h
93 %{_includedir}/zdict.h
94 %{_includedir}/zstd.h
95 %{_includedir}/zstd_errors.h
96 %{_pkgconfigdir}/libzstd.pc
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libzstd.a
This page took 0.05207 seconds and 4 git commands to generate.