3 %bcond_without static_libs # static library
5 Summary: Intel QuickAssist Technology (QAT) QATzip library
6 Summary(pl.UTF-8): Biblioteka QATzip wykorzystująca Intel QuickAssist Technology (QAT)
12 #Source0Download: https://github.com/intel/QATzip/releases
13 Source0: https://github.com/intel/QATzip/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 460777e7cef77ced9d49101572f42782
15 Patch0: %{name}-types.patch
16 Patch1: %{name}-flags.patch
17 URL: https://github.com/intel/QATzip
18 BuildRequires: autoconf >= 2.69
19 BuildRequires: automake >= 1:1.11
20 BuildRequires: libtool >= 2:2.4
21 BuildRequires: lz4-devel
22 BuildRequires: pkgconfig
23 BuildRequires: qatlib-devel >= 22.7
24 BuildRequires: zlib-devel >= 1.2.7
25 Requires: zlib >= 1.2.7
26 # x86_64-specific hardware, allow userspace libs for all ABIs
27 ExclusiveArch: %{ix86} %{x8664} x32
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 QATzip is a user space library which builds on top of the Intel(R)
32 QuickAssist Technology user space library, to provide extended
33 accelerated compression and decompression services by offloading the
34 actual compression and decompression request(s) to the Intel(R)
35 Chipset Series. QATzip produces data using the standard gzip format
36 (RFC1952) with extended headers. The data can be decompressed with a
37 compliant gzip implementation. QATzip is designed to take full
38 advantage of the performance provided by Intel(R) QuickAssist
41 %description -l pl.UTF-8
42 QATzip to biblioteka przestrzeni użytkownika, oparta na bibliotece
43 Intel(R) QuickAssist Technology, zapewniająca usługi rozszerzonej,
44 akcelerowanej kompresji i dekompresji przez delegowanie właściwych
45 żądań kompresji i dekompresji do układów chipsetu firmy Intel. QATzip
46 produkuje dane przy użyciu standardowego formatu gzip (RFC1952) z
47 rozszerzonymi nagłówkami. Dane mogą być dekompresowane przy użyciu
48 zgodnej implementacji gzipa. QATzip został zaprojektowany tak, aby w
49 pełni wykorzystywać wydajność zapewnianą przez Intel(R) QuickAssist
53 Summary: Header files for QATzip library
54 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QATzip
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
58 Requires: qatlib-devel >= 22.7
59 Requires: zlib-devel >= 1.2.7
62 Header files for QATzip library.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki QATzip.
68 Summary: Static QATzip library
69 Summary(pl.UTF-8): Statyczna biblioteka QATzip
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
74 Static QATzip library.
76 %description static -l pl.UTF-8
77 Statyczna biblioteka QATzip.
90 --disable-silent-rules \
91 %{!?with_static_libs:--disable-static}
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
101 # obsoleted by pkg-config
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqatzip.la
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc LICENSE README.md SECURITY.md
113 %attr(755,root,root) %{_bindir}/qzip
114 %attr(755,root,root) %{_libdir}/libqatzip.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libqatzip.so.3
116 %{_mandir}/man1/qzip.1*
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libqatzip.so
121 %{_includedir}/qatzip.h
122 %{_pkgconfigdir}/qatzip.pc
124 %if %{without static}
126 %defattr(644,root,root,755)
127 %{_libdir}/libqatzip.a