]> git.pld-linux.org Git - packages/zstd.git/blob - zstd.spec
- updated to 1.1.2
[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.2
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:  4c57a080d194bdaac83f2d3251fc7ffc
11 Patch0:         %{name}-noquiet.patch
12 Patch1:         %{name}-no32.patch
13 Patch2:         %{name}-noclean.patch
14 URL:            https://github.com/facebook/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 LICENSE NEWS PATENTS README.md
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) %{_bindir}/zstdgrep
85 %attr(755,root,root) %{_bindir}/zstdless
86 %attr(755,root,root) %{_libdir}/libzstd.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libzstd.so.1
88 %{_mandir}/man1/unzstd.1*
89 %{_mandir}/man1/zstd.1*
90 %{_mandir}/man1/zstdcat.1*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %doc doc/{zstd_compression_format.md,zstd_manual.html,images}
95 %attr(755,root,root) %{_libdir}/libzstd.so
96 %{_includedir}/zbuff.h
97 %{_includedir}/zdict.h
98 %{_includedir}/zstd.h
99 %{_includedir}/zstd_errors.h
100 %{_pkgconfigdir}/libzstd.pc
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libzstd.a
This page took 0.098608 seconds and 4 git commands to generate.