]> git.pld-linux.org Git - packages/QATzip.git/blame - QATzip.spec
- release 2 (qatlib 23.11.0)
[packages/QATzip.git] / QATzip.spec
CommitLineData
ef90717e
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
e235da16
JB
5Summary: Intel QuickAssist Technology (QAT) QATzip library
6Summary(pl.UTF-8): Biblioteka QATzip wykorzystująca Intel QuickAssist Technology (QAT)
7Name: QATzip
a5f2acf9 8Version: 1.1.2
9843d86f 9Release: 2
e235da16
JB
10License: BSD
11Group: Libraries
12#Source0Download: https://github.com/intel/QATzip/releases
13Source0: https://github.com/intel/QATzip/archive/v%{version}/%{name}-%{version}.tar.gz
a5f2acf9 14# Source0-md5: e0f94367204ffda5e596983719a4b295
e235da16 15Patch0: %{name}-types.patch
ef90717e 16Patch1: %{name}-flags.patch
e235da16 17URL: https://github.com/intel/QATzip
ef90717e
JB
18BuildRequires: autoconf >= 2.69
19BuildRequires: automake >= 1:1.11
20BuildRequires: libtool >= 2:2.4
fb34d78e 21BuildRequires: lz4-devel
ef90717e 22BuildRequires: pkgconfig
a5f2acf9 23BuildRequires: qatlib-devel >= 22.07.0
ef90717e
JB
24BuildRequires: zlib-devel >= 1.2.7
25Requires: zlib >= 1.2.7
e235da16
JB
26# x86_64-specific hardware, allow userspace libs for all ABIs
27ExclusiveArch: %{ix86} %{x8664} x32
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31QATzip is a user space library which builds on top of the Intel(R)
32QuickAssist Technology user space library, to provide extended
33accelerated compression and decompression services by offloading the
34actual compression and decompression request(s) to the Intel(R)
35Chipset Series. QATzip produces data using the standard gzip format
36(RFC1952) with extended headers. The data can be decompressed with a
37compliant gzip implementation. QATzip is designed to take full
38advantage of the performance provided by Intel(R) QuickAssist
39Technology.
40
41%description -l pl.UTF-8
42QATzip to biblioteka przestrzeni użytkownika, oparta na bibliotece
43Intel(R) QuickAssist Technology, zapewniająca usługi rozszerzonej,
44akcelerowanej kompresji i dekompresji przez delegowanie właściwych
45żądań kompresji i dekompresji do układów chipsetu firmy Intel. QATzip
46produkuje dane przy użyciu standardowego formatu gzip (RFC1952) z
47rozszerzonymi nagłówkami. Dane mogą być dekompresowane przy użyciu
48zgodnej implementacji gzipa. QATzip został zaprojektowany tak, aby w
49pełni wykorzystywać wydajność zapewnianą przez Intel(R) QuickAssist
50Technology.
51
52%package devel
53Summary: Header files for QATzip library
54Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QATzip
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
fb34d78e 57Requires: lz4-devel
a5f2acf9 58Requires: qatlib-devel >= 22.07.0
ef90717e 59Requires: zlib-devel >= 1.2.7
e235da16
JB
60
61%description devel
62Header files for QATzip library.
63
64%description devel -l pl.UTF-8
65Pliki nagłówkowe biblioteki QATzip.
66
ef90717e
JB
67%package static
68Summary: Static QATzip library
69Summary(pl.UTF-8): Statyczna biblioteka QATzip
70Group: Development/Libraries
71Requires: %{name}-devel = %{version}-%{release}
72
73%description static
74Static QATzip library.
75
76%description static -l pl.UTF-8
77Statyczna 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
96rm -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
105rm -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
This page took 0.107499 seconds and 4 git commands to generate.