-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathisa-l_crypto.spec
117 lines (94 loc) · 3.14 KB
/
isa-l_crypto.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# doesn't seem to work on sles 12.3: %%{!?make_build:%%define make_build %%{__make} %%{?_smp_mflags}}
# so...
%if 0%{?suse_version} <= 1320
%define make_build %{__make} %{?_smp_mflags}
%endif
%if 0%{?suse_version} >= 1315
%define isal_libname libisal_crypto2
%define isal_devname libisal_crypto-devel
%else
%define isal_libname libisa-l_crypto
%define isal_devname libisa-l_crypto-devel
%endif
Name: isa-l_crypto
Version: 2.24.0
Release: 1%{?dist}
Summary: Intelligent Storage Acceleration Library Crypto Version
%if 0%{?suse_version} >= 1315
Group: Development/Libraries/C and C++
%else
Group: Development/Libraries
%endif
License: BSD-3-Clause
URL: https://github.com/01org/isa-l_crypto/wiki
Source0: https://github.com/01org/%{name}/archive/v%{version}.tar.gz
BuildRequires: yasm
# to be able to generate configure if not present
BuildRequires: autoconf, automake, libtool
%description
ISA-L_crypto is a collection of optimized low-level functions
targeting storage applications.
%package -n %{isal_libname}
Summary: Dynamic library for isa-l_crypto functions
License: BSD-3-Clause
Obsoletes: %{name} < %{version}
%description -n %{isal_libname}
ISA-L_crypto is a collection of optimized low-level functions
targeting storage applications. ISA-L_crypto includes:
- Multi-buffer hashes - run multiple hash jobs together on one core
for much better throughput than single-buffer versions. (
SHA1, SHA256, SHA512, MD5)
- Multi-hash - Get the performance of multi-buffer hashing with a
single-buffer interface.
- Multi-hash + murmur - run both together.
- AES - block ciphers (XTS, GCM, CBC)
- Rolling hash - Hash input in a window which moves through the input
%package -n %{isal_devname}
Summary: ISA-L_CRYPTO devel package
Requires: %{isal_libname}%{?_isa} = %{version}
Provides: %{isal_libname}-static%{?_isa} = %{version}
%description -n %{isal_devname}
Development files for the %{isal_libname} library.
%if (0%{?suse_version} > 0)
%global __debug_package 1
%global _debuginfo_subpackages 0
%debug_package
%endif
%prep
%autosetup -p1
%build
if [ ! -f configure ]; then
./autogen.sh --no-oshmem
fi
%configure --disable-static
%{make_build}
%install
%make_install
find %{?buildroot} -name *.la -print0 | xargs -r0 rm -f
%if 0%{?suse_version} >= 01315
%post -n %{isal_libname} -p /sbin/ldconfig
%postun -n %{isal_libname} -p /sbin/ldconfig
%else
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files -n %{isal_libname}
%{_libdir}/*.so.*
%files -n %{isal_devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libisal_crypto.pc
%changelog
* Thu Jun 22 2023 Brian J. Murrell <brian.murrell@intel> - 2.24.0-1
- Update to new version
- Disable static library build
- Add debuginfo generation for Leap 15
* Mon Feb 01 2021 Brian J. Murrell <brian.murrell@intel> - 2.23.0-1
- Update to new version
- Add %%{_libdir}/pkgconfig/libisal_crypto.pc to -devel package
* Wed Oct 02 2019 John E. Malmberg <john.e.malmberg@intel> - 2.21.0-3
- Fix the Red Hat family devel package name.
* Wed Oct 02 2019 John E. Malmberg <john.e.malmberg@intel> - 2.21.0-2
- Fix some SUSE rpmlint packaging complaints
* Fri Aug 16 2019 Ryon Jensen <ryon.jensen@intel> - 2.21.0-1
- initial package