]> git.pld-linux.org Git - packages/libdeflate.git/blame - libdeflate.spec
macros for %cmake
[packages/libdeflate.git] / libdeflate.spec
CommitLineData
30ec7443
JB
1Summary: Library for fast, whole-buffer DEFLATE-based compression and decompression
2Summary(pl.UTF-8): Biblioteka do szybkiej kompresji i dekompresji algorytmem DEFLATE dla całego bufora
3Name: libdeflate
39869dd3 4Version: 1.17
950e892b 5Release: 1
30ec7443
JB
6License: MIT
7Group: Libraries
8#Source0Download: https://github.com/ebiggers/libdeflate/releases
9Source0: https://github.com/ebiggers/libdeflate/archive/v%{version}/%{name}-%{version}.tar.gz
39869dd3 10# Source0-md5: 88cecda43f00fcffb62fd2a398f7554e
30ec7443 11URL: https://github.com/ebiggers/libdeflate
39869dd3 12BuildRequires: cmake >= 3.7
5470372e 13BuildRequires: rpmbuild(macros) >= 1.605
30ec7443
JB
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17libdeflate is a library for fast, whole-buffer DEFLATE-based
18compression and decompression.
19
20libdeflate is heavily optimized. It is significantly faster than the
21zlib library, both for compression and decompression, and especially
22on x86 processors. In addition, libdeflate provides optional high
23compression modes that provide a better compression ratio than the
24zlib's "level 9".
25
26%description -l pl.UTF-8
27libdeflate do biblioteka do szybkiej kompresji i dekompresji na całym
28buforze w oparciu o algorytm DEFLATE.
29
30libdeflate jest wydatnie zoptymalizowana; jest znacząco szybsza od
31biblioteki zlib, zarówno przy kompresji, jak i dekompresji, w
32szczególności na procesorach x86. Ponadto libdeflate zapewnia
33opcjonalnie wyższe stopnie kompresji, z lepszym współczynnikiem niż
34"poziom 9" zliba.
35
36%package devel
37Summary: Header file for libdeflate library
38Summary(pl.UTF-8): Plik nagłówkowy biblioteki libdeflate
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41
42%description devel
43Header file for libdeflate library.
44
45%description devel -l pl.UTF-8
46Plik nagłówkowy biblioteki libdeflate.
47
48%package static
49Summary: Static libdeflate library
50Summary(pl.UTF-8): Statyczna biblioteka libdeflate
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
53
54%description static
55Static libdeflate library.
56
57%description static -l pl.UTF-8
58Statyczna biblioteka libdeflate.
59
60%prep
61%setup -q
30ec7443
JB
62
63%build
39869dd3
JB
64install -d build
65cd build
66%cmake ..
67
68%{__make}
30ec7443
JB
69
70%install
71rm -rf $RPM_BUILD_ROOT
21e40d11 72
7ab71862 73# pass also build flags because of .build-config check in Makefile
39869dd3
JB
74%{__make} -C build install \
75 DESTDIR=$RPM_BUILD_ROOT
30ec7443
JB
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post -p /sbin/ldconfig
81%postun -p /sbin/ldconfig
82
83%files
84%defattr(644,root,root,755)
950e892b 85%doc COPYING NEWS.md README.md
30ec7443
JB
86%attr(755,root,root) %{_bindir}/libdeflate-gzip
87%attr(755,root,root) %{_bindir}/libdeflate-gunzip
88%attr(755,root,root) %{_libdir}/libdeflate.so.0
89
90%files devel
91%defattr(644,root,root,755)
92%attr(755,root,root) %{_libdir}/libdeflate.so
93%{_includedir}/libdeflate.h
950e892b 94%{_pkgconfigdir}/libdeflate.pc
39869dd3 95%{_libdir}/cmake/libdeflate
30ec7443
JB
96
97%files static
98%defattr(644,root,root,755)
99%{_libdir}/libdeflate.a
This page took 0.16854 seconds and 4 git commands to generate.