3 %bcond_without static_libs # static library
5 Summary: Optimized low-level functions library for storage systems
6 Summary(pl.UTF-8): Biblioteka zoptymalizowanych funkcji niskopoziomowych do systemów przechowywania danych
12 #Source0Download: https://github.com/intel/isa-l/releases
13 Source0: https://github.com/intel/isa-l/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: c24762075dde2a552a041d7f47c3af8a
15 Patch0: isa-l-x86.patch
16 URL: https://github.com/01org/isa-l
17 BuildRequires: autoconf >= 2.69
18 BuildRequires: automake >= 1:1.11
19 BuildRequires: libtool >= 2:2
20 %ifarch %{ix86} %{x8664} x32
21 # nasm or yasm, whichever has higher "feature number" (max=10 for AVX512+)
22 BuildRequires: nasm >= 2.13
23 BuildRequires: yasm >= 1.2.0
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 ISA-L is a collection of optimized low-level functions targeting
29 storage applications. ISA-L includes:
30 - Erasure codes - fast block Reed-Solomon type erasure codes for any
31 encode/decode matrix in GF(2^8).
32 - CRC - Fast implementations of cyclic redundancy check. Six
33 different polynomials supported.
34 - iscsi32, ieee32, t10dif, ecma64, iso64, jones64.
35 - RAID - calculate and operate on XOR and P+Q parity found in common
37 - Compression - Fast deflate-compatible data compression.
38 - De-compression - Fast inflate-compatible data compression.
40 %description -l pl.UTF-8
41 ISA-L to zbiór zoptymalizowanych funkcji niskopoziomowych,
42 przeznaczonych do zastosowań związanych z przechowywaniem danych.
44 - kody korekcyjne (erasure codes) - szybkie kody korekcyjne typu
45 Reeda-Solomona dla dowolnej macierzy kodowania/dekodowania w GF(2^8)
46 - CRC - szybkie implementacje cyklicznej kontroli nadmiarowej;
47 obsługiwane jest sześć różnych wielomianów
48 - iscsi32, ieee32, t10dif, ecma64, iso64, jones64
49 - RAID - obliczanie i operacje na parzystości XOR oraz P+Q, używanych
50 w popularnych implementacjach RAID
51 - kompresja - szybka kompresja danych zgodna z metodą deflate
52 - dekompresja - szybka kompresja danych zgodna z metodą inflate
55 Summary: Header files for ISA-L library
56 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ISA-L
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 Header files for ISA-L library.
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe biblioteki ISA-L.
67 Summary: Static ISA-L library
68 Summary(pl.UTF-8): Statyczna biblioteka ISA-L
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
75 %description static -l pl.UTF-8
76 Statyczna biblioteka ISA-L.
79 %setup -q -n isa-l-%{version}
88 --disable-silent-rules \
89 %{!?with_static_libs:--disable-static}
92 yasm_args="-f elf32" \
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
104 # no external dependencies, obsoleted by pkg-config
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %doc LICENSE README.md Release_notes.txt
116 %attr(755,root,root) %{_bindir}/igzip
117 %attr(755,root,root) %{_libdir}/libisal.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libisal.so.2
119 %{_mandir}/man1/igzip.1*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libisal.so
125 %{_includedir}/isa-l.h
126 %{_pkgconfigdir}/libisal.pc
128 %if %{with static_libs}
130 %defattr(644,root,root,755)