]> git.pld-linux.org Git - packages/zstd.git/blob - zstd.spec
4ed39438aa6e5416dc84542a7f40ed94e80bc9e8
[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.4.5
5 Release:        3
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:  0083d997dc845d9e1fc4249f450b7ce3
11 URL:            https://github.com/facebook/zstd
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
51
52 %build
53 CC="%{__cc}" \
54 CXX="%{__cxx}" \
55 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
56 CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
57 LDFLAGS="%{rpmldflags}" \
58 %{__make} allmost manual \
59         V=1
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT/%{_lib}
64
65 %{__make} install \
66         V=1 \
67         DESTDIR=$RPM_BUILD_ROOT \
68         PREFIX=%{_prefix} \
69         LIBDIR=%{_libdir}
70
71 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libzstd.so.* $RPM_BUILD_ROOT/%{_lib}
72 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libzstd.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libzstd.so
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc LICENSE CHANGELOG README.md
83 %attr(755,root,root) %{_bindir}/unzstd
84 %attr(755,root,root) %{_bindir}/zstd
85 %attr(755,root,root) %{_bindir}/zstdcat
86 %attr(755,root,root) %{_bindir}/zstdgrep
87 %attr(755,root,root) %{_bindir}/zstdless
88 %attr(755,root,root) %{_bindir}/zstdmt
89 %attr(755,root,root) /%{_lib}/libzstd.so.*.*.*
90 %attr(755,root,root) %ghost /%{_lib}/libzstd.so.1
91 %{_mandir}/man1/unzstd.1*
92 %{_mandir}/man1/zstd.1*
93 %{_mandir}/man1/zstdcat.1*
94 %{_mandir}/man1/zstdgrep.1*
95 %{_mandir}/man1/zstdless.1*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %doc doc/{zstd_compression_format.md,zstd_manual.html,images}
100 %attr(755,root,root) %{_libdir}/libzstd.so
101 %{_includedir}/zbuff.h
102 %{_includedir}/zdict.h
103 %{_includedir}/zstd.h
104 %{_includedir}/zstd_errors.h
105 %{_pkgconfigdir}/libzstd.pc
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/libzstd.a
This page took 0.059357 seconds and 2 git commands to generate.