]>
Commit | Line | Data |
---|---|---|
ef90717e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
e235da16 JB |
5 | Summary: Intel QuickAssist Technology (QAT) QATzip library |
6 | Summary(pl.UTF-8): Biblioteka QATzip wykorzystująca Intel QuickAssist Technology (QAT) | |
7 | Name: QATzip | |
a5f2acf9 | 8 | Version: 1.1.2 |
9843d86f | 9 | Release: 2 |
e235da16 JB |
10 | License: BSD |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/intel/QATzip/releases | |
13 | Source0: https://github.com/intel/QATzip/archive/v%{version}/%{name}-%{version}.tar.gz | |
a5f2acf9 | 14 | # Source0-md5: e0f94367204ffda5e596983719a4b295 |
e235da16 | 15 | Patch0: %{name}-types.patch |
ef90717e | 16 | Patch1: %{name}-flags.patch |
e235da16 | 17 | URL: https://github.com/intel/QATzip |
ef90717e JB |
18 | BuildRequires: autoconf >= 2.69 |
19 | BuildRequires: automake >= 1:1.11 | |
20 | BuildRequires: libtool >= 2:2.4 | |
fb34d78e | 21 | BuildRequires: lz4-devel |
ef90717e | 22 | BuildRequires: pkgconfig |
a5f2acf9 | 23 | BuildRequires: qatlib-devel >= 22.07.0 |
ef90717e JB |
24 | BuildRequires: zlib-devel >= 1.2.7 |
25 | Requires: zlib >= 1.2.7 | |
e235da16 JB |
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) | |
29 | ||
30 | %description | |
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 | |
39 | Technology. | |
40 | ||
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 | |
50 | Technology. | |
51 | ||
52 | %package devel | |
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} | |
fb34d78e | 57 | Requires: lz4-devel |
a5f2acf9 | 58 | Requires: qatlib-devel >= 22.07.0 |
ef90717e | 59 | Requires: zlib-devel >= 1.2.7 |
e235da16 JB |
60 | |
61 | %description devel | |
62 | Header files for QATzip library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki QATzip. | |
66 | ||
ef90717e JB |
67 | %package static |
68 | Summary: Static QATzip library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka QATzip | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static QATzip library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka QATzip. | |
78 | ||
e235da16 JB |
79 | %prep |
80 | %setup -q | |
81 | %patch0 -p1 | |
ef90717e JB |
82 | %patch1 -p1 |
83 | ||
e235da16 | 84 | %build |
ef90717e JB |
85 | %{__libtoolize} |
86 | %{__aclocal} -I m4 | |
87 | %{__autoconf} | |
ef90717e JB |
88 | %{__automake} |
89 | %configure \ | |
90 | --disable-silent-rules \ | |
91 | %{!?with_static_libs:--disable-static} | |
e235da16 JB |
92 | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
fb34d78e JB |
101 | # obsoleted by pkg-config |
102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqatzip.la | |
103 | ||
e235da16 JB |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
ef90717e | 112 | %doc LICENSE README.md SECURITY.md |
e235da16 JB |
113 | %attr(755,root,root) %{_bindir}/qzip |
114 | %attr(755,root,root) %{_libdir}/libqatzip.so.*.*.* | |
fb34d78e | 115 | %attr(755,root,root) %ghost %{_libdir}/libqatzip.so.3 |
e235da16 JB |
116 | %{_mandir}/man1/qzip.1* |
117 | ||
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
120 | %attr(755,root,root) %{_libdir}/libqatzip.so | |
121 | %{_includedir}/qatzip.h | |
fb34d78e | 122 | %{_pkgconfigdir}/qatzip.pc |
ef90717e JB |
123 | |
124 | %if %{without static} | |
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libqatzip.a | |
128 | %endif |