]> git.pld-linux.org Git - packages/zstd.git/blob - zstd.spec
- new
[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:        0.5.1
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
10 # Source0-md5:  0f972162c5ec73d04bb2243d520d18f0
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.*.*.*
85 %attr(755,root,root) %ghost %{_libdir}/libzstd.so.0
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
This page took 0.111579 seconds and 4 git commands to generate.