]> git.pld-linux.org Git - packages/QATzip.git/blob - QATzip.spec
6e7060f0b130dbbc26b907d8dc20750fc9455283
[packages/QATzip.git] / QATzip.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 Summary:        Intel QuickAssist Technology (QAT) QATzip library
6 Summary(pl.UTF-8):      Biblioteka QATzip wykorzystująca Intel QuickAssist Technology (QAT)
7 Name:           QATzip
8 Version:        1.1.1
9 Release:        1
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
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)
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}
57 Requires:       lz4-devel
58 Requires:       qatlib-devel >= 22.7
59 Requires:       zlib-devel >= 1.2.7
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
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
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83
84 %build
85 %{__libtoolize}
86 %{__aclocal} -I m4
87 %{__autoconf}
88 %{__automake}
89 %configure \
90         --disable-silent-rules \
91         %{!?with_static_libs:--disable-static}
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 # obsoleted by pkg-config
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqatzip.la
103
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)
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*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libqatzip.so
121 %{_includedir}/qatzip.h
122 %{_pkgconfigdir}/qatzip.pc
123
124 %if %{without static}
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libqatzip.a
128 %endif
This page took 0.084523 seconds and 2 git commands to generate.