Skip to content

Commit a5423a6

Browse files
committed
Crypto Multi-Buffer Library rpm spec file updated
1 parent 87d413b commit a5423a6

File tree

2 files changed

+35
-37
lines changed

2 files changed

+35
-37
lines changed

sources/ippcp/crypto_mb/tools/rpm/intel-crypto-mb.spec

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -23,91 +23,89 @@
2323
%global github_repo_url https://github.com/intel/ipp-crypto
2424
%global github_source_archive_name develop
2525

26+
%global rpm_name intel-ipp-crypto-mb
27+
%global product_name Intel(R) IPP Cryptography multi-buffer library
28+
2629
# disable producing debuginfo for this package
2730
%global debug_package %{nil}
2831

29-
Summary: Crypto Multi-buffer Library
30-
Name: intel-crypto-mb
32+
Summary: %{product_name}
33+
Name: %{rpm_name}
3134
Release: 1%{?dist}
3235
Version: %{fullversion}
3336
License: ASL 2.0
3437
Group: Development/Tools
3538
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
3740
URL: %{github_repo_url}
3841
BuildRequires: cmake >= 3.10
3942
BuildRequires: openssl >= 1.1.0
4043
BuildRequires: gcc >= 8.2
4144

4245
%description
43-
Crypto Multi-buffer Library optimized for Intel Architecture
46+
%{product_name}
4447

4548
For additional information please refer to:
4649
%{github_repo_url}/blob/develop/sources/ippcp/crypto_mb
4750

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}
5255
Group: Development/Tools
5356
ExclusiveArch: x86_64
5457

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)
5760

5861
For additional information please refer to:
5962
%{github_repo_url}/blob/develop/sources/ippcp/crypto_mb
6063

6164
%prep
6265
%setup -n ipp-crypto-%{github_source_archive_name}
6366

64-
%post -p /sbin/ldconfig
65-
66-
%postun -p /sbin/ldconfig
67-
6867
%build
6968
cmake sources/ippcp/crypto_mb/CMakeLists.txt -B_build-crypto-mb -DCMAKE_STATIC_ENABLE=1
7069
cd _build-crypto-mb
71-
make %{?_smp_mflags}
70+
%make_build
7271

7372
%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}
7974
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
8277
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
8680
install -d %{buildroot}/%{_libdir}
8781
install -s -m 0755 -T _build-crypto-mb/bin/libcrypto_mb.so %{buildroot}/%{_libdir}/libcrypto_mb.so.%{fullversion}
8882
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}
9084
ln -s libcrypto_mb.so.%{fullversion} libcrypto_mb.so
9185

86+
%if 0%{?rhel} && 0%{?rhel} < 8
87+
%ldconfig_scriptlets
88+
%endif
89+
9290
%files
93-
%license %{_licensedir}/%{name}-%{fullversion}/LICENSE
91+
%license LICENSE
9492
%doc sources/ippcp/crypto_mb/Readme.md
9593
%{_libdir}/libcrypto_mb.so.%{fullversion}
9694
%{_libdir}/libcrypto_mb.so.%{major}
97-
%{_libdir}/libcrypto_mb.so
9895

99-
%files -n intel-crypto-mb-devel
96+
%files -n %{rpm_name}-devel
10097
%dir %{_includedir}/crypto_mb
10198
%{_includedir}/crypto_mb/defs.h
10299
%{_includedir}/crypto_mb/x25519.h
103100
%{_includedir}/crypto_mb/status.h
104101
%{_includedir}/crypto_mb/cpu_features.h
105102
%{_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
3.81 MB
Binary file not shown.

0 commit comments

Comments
 (0)