|
23 | 23 | %global github_repo_url https://github.com/intel/ipp-crypto |
24 | 24 | %global github_source_archive_name develop |
25 | 25 |
|
| 26 | +%global rpm_name intel-ipp-crypto-mb |
| 27 | +%global product_name Intel(R) IPP Cryptography multi-buffer library |
| 28 | + |
26 | 29 | # disable producing debuginfo for this package |
27 | 30 | %global debug_package %{nil} |
28 | 31 |
|
29 | | -Summary: Crypto Multi-buffer Library |
30 | | -Name: intel-crypto-mb |
| 32 | +Summary: %{product_name} |
| 33 | +Name: %{rpm_name} |
31 | 34 | Release: 1%{?dist} |
32 | 35 | Version: %{fullversion} |
33 | 36 | License: ASL 2.0 |
34 | 37 | Group: Development/Tools |
35 | 38 | ExclusiveArch: x86_64 |
36 | | -Source0: %{github_repo_url}/archive/%{github_source_archive_name}.zip |
| 39 | +Source0: %{github_repo_url}/archive/%{github_source_archive_name}.zip#/%{rpm_name}-%{github_source_archive_name}.zip |
37 | 40 | URL: %{github_repo_url} |
38 | 41 | BuildRequires: cmake >= 3.10 |
39 | 42 | BuildRequires: openssl >= 1.1.0 |
40 | 43 | BuildRequires: gcc >= 8.2 |
41 | 44 |
|
42 | 45 | %description |
43 | | -Crypto Multi-buffer Library optimized for Intel Architecture |
| 46 | +%{product_name} |
44 | 47 |
|
45 | 48 | For additional information please refer to: |
46 | 49 | %{github_repo_url}/blob/develop/sources/ippcp/crypto_mb |
47 | 50 |
|
48 | | -%package -n intel-crypto-mb-devel |
49 | | -Summary: Crypto Multi-buffer Library |
50 | | -License: BSD |
51 | | -Requires: intel-crypto-mb >= %{fullversion} |
| 51 | +%package -n %{rpm_name}-devel |
| 52 | +Summary: %{product_name} (Development Files) |
| 53 | +License: ASL 2.0 |
| 54 | +Requires: %{name}%{?_isa} = %{version}-%{release} |
52 | 55 | Group: Development/Tools |
53 | 56 | ExclusiveArch: x86_64 |
54 | 57 |
|
55 | | -%description -n intel-crypto-mb-devel |
56 | | -Crypto Multi-buffer Library optimized for Intel Architecture |
| 58 | +%description -n %{rpm_name}-devel |
| 59 | +%{product_name} (Development Files) |
57 | 60 |
|
58 | 61 | For additional information please refer to: |
59 | 62 | %{github_repo_url}/blob/develop/sources/ippcp/crypto_mb |
60 | 63 |
|
61 | 64 | %prep |
62 | 65 | %setup -n ipp-crypto-%{github_source_archive_name} |
63 | 66 |
|
64 | | -%post -p /sbin/ldconfig |
65 | | - |
66 | | -%postun -p /sbin/ldconfig |
67 | | - |
68 | 67 | %build |
69 | 68 | cmake sources/ippcp/crypto_mb/CMakeLists.txt -B_build-crypto-mb -DCMAKE_STATIC_ENABLE=1 |
70 | 69 | cd _build-crypto-mb |
71 | | -make %{?_smp_mflags} |
| 70 | +%make_build |
72 | 71 |
|
73 | 72 | %install |
74 | | -rm -rf "%{buildroot}" |
75 | | -# Install the license |
76 | | -install -d %{buildroot}/%{_licensedir}/%{name}-%{fullversion} |
77 | | -install -m 0644 LICENSE %{buildroot}/%{_licensedir}/%{name}-%{fullversion} |
78 | | -# Install headers |
| 73 | +rm -rf %{buildroot} |
79 | 74 | install -d %{buildroot}/%{_includedir}/crypto_mb |
80 | | -install -d %{buildroot}/%{_includedir}/crypto_mb/internal/common |
81 | | -install -d %{buildroot}/%{_includedir}/crypto_mb/internal/rsa |
| 75 | +install -d %{buildroot}/%{_includedir}/internal/common |
| 76 | +install -d %{buildroot}/%{_includedir}/internal/rsa |
82 | 77 | install -m 0644 -t %{buildroot}/%{_includedir}/crypto_mb sources/ippcp/crypto_mb/include/crypto_mb/*.h |
83 | | -install -m 0644 -t %{buildroot}/%{_includedir}/crypto_mb/internal/common sources/ippcp/crypto_mb/include/internal/common/*.h |
84 | | -install -m 0644 -t %{buildroot}/%{_includedir}/crypto_mb/internal/rsa sources/ippcp/crypto_mb/include/internal/rsa/*.h |
85 | | -# Install the library |
| 78 | +install -m 0644 -t %{buildroot}/%{_includedir}/internal/common sources/ippcp/crypto_mb/include/internal/common/*.h |
| 79 | +install -m 0644 -t %{buildroot}/%{_includedir}/internal/rsa sources/ippcp/crypto_mb/include/internal/rsa/*.h |
86 | 80 | install -d %{buildroot}/%{_libdir} |
87 | 81 | install -s -m 0755 -T _build-crypto-mb/bin/libcrypto_mb.so %{buildroot}/%{_libdir}/libcrypto_mb.so.%{fullversion} |
88 | 82 | cd %{buildroot}/%{_libdir} |
89 | | -ln -s libcrypto_mb.so.%{fullversion} libcrypto_mb.so.0 |
| 83 | +ln -s libcrypto_mb.so.%{fullversion} libcrypto_mb.so.%{major} |
90 | 84 | ln -s libcrypto_mb.so.%{fullversion} libcrypto_mb.so |
91 | 85 |
|
| 86 | +%if 0%{?rhel} && 0%{?rhel} < 8 |
| 87 | +%ldconfig_scriptlets |
| 88 | +%endif |
| 89 | + |
92 | 90 | %files |
93 | | -%license %{_licensedir}/%{name}-%{fullversion}/LICENSE |
| 91 | +%license LICENSE |
94 | 92 | %doc sources/ippcp/crypto_mb/Readme.md |
95 | 93 | %{_libdir}/libcrypto_mb.so.%{fullversion} |
96 | 94 | %{_libdir}/libcrypto_mb.so.%{major} |
97 | | -%{_libdir}/libcrypto_mb.so |
98 | 95 |
|
99 | | -%files -n intel-crypto-mb-devel |
| 96 | +%files -n %{rpm_name}-devel |
100 | 97 | %dir %{_includedir}/crypto_mb |
101 | 98 | %{_includedir}/crypto_mb/defs.h |
102 | 99 | %{_includedir}/crypto_mb/x25519.h |
103 | 100 | %{_includedir}/crypto_mb/status.h |
104 | 101 | %{_includedir}/crypto_mb/cpu_features.h |
105 | 102 | %{_includedir}/crypto_mb/rsa.h |
106 | | -%{_includedir}/crypto_mb/internal/rsa/ifma_div_104_by_52.h |
107 | | -%{_includedir}/crypto_mb/internal/rsa/ifma_rsa_arith.h |
108 | | -%{_includedir}/crypto_mb/internal/rsa/ifma_rsa_layer_cp.h |
109 | | -%{_includedir}/crypto_mb/internal/rsa/ifma_rsa_method.h |
110 | | -%{_includedir}/crypto_mb/internal/rsa/ifma_rsa_layer_ssl.h |
111 | | -%{_includedir}/crypto_mb/internal/common/ifma_math.h |
112 | | -%{_includedir}/crypto_mb/internal/common/ifma_defs.h |
113 | | -%{_includedir}/crypto_mb/internal/common/ifma_cvt52.h |
| 103 | +%{_includedir}/internal/rsa/ifma_div_104_by_52.h |
| 104 | +%{_includedir}/internal/rsa/ifma_rsa_arith.h |
| 105 | +%{_includedir}/internal/rsa/ifma_rsa_layer_cp.h |
| 106 | +%{_includedir}/internal/rsa/ifma_rsa_method.h |
| 107 | +%{_includedir}/internal/rsa/ifma_rsa_layer_ssl.h |
| 108 | +%{_includedir}/internal/common/ifma_math.h |
| 109 | +%{_includedir}/internal/common/ifma_defs.h |
| 110 | +%{_includedir}/internal/common/ifma_cvt52.h |
| 111 | +%{_libdir}/libcrypto_mb.so |
0 commit comments