2020-01-20 16:33:54 +08:00
|
|
|
Name: libwd
|
2021-07-06 12:07:31 +00:00
|
|
|
Summary: User Space Accelerator Development Kit
|
2021-12-06 17:30:13 +08:00
|
|
|
Version: 2.3.21
|
2022-07-26 09:56:35 +08:00
|
|
|
Release: 6
|
2020-01-20 16:33:54 +08:00
|
|
|
License: Apache-2.0
|
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
|
Vendor: Huawei Corporation
|
|
|
|
|
ExclusiveOS: linux
|
2021-09-06 02:11:51 +00:00
|
|
|
URL: https://support.huawei.com
|
2020-03-04 02:23:50 +08:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2020-01-20 16:33:54 +08:00
|
|
|
Conflicts: %{name} < %{version}-%{release}
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
2021-12-06 17:30:13 +08:00
|
|
|
BuildRequires: numactl-devel, openssl-devel
|
2019-12-26 20:57:37 +08:00
|
|
|
BuildRequires: automake, autoconf, libtool
|
|
|
|
|
BuildRequires: gcc, make
|
2020-03-15 13:06:59 +08:00
|
|
|
ExclusiveArch: aarch64
|
2022-01-10 16:52:19 +08:00
|
|
|
Patch0001: 0001-uadk-digest-add-stream-mode-for-digest-sync.patch
|
|
|
|
|
Patch0002: 0002-test-digest-support-the-digest-stream-mode.patch
|
|
|
|
|
Patch0003: 0003-aead-cipher-digest-fix-some-code-issues.patch
|
|
|
|
|
Patch0004: 0004-digest-v1-fixed-hmac-key-0-length-checking.patch
|
|
|
|
|
Patch0005: 0005-digest-v1-check-the-length-of-the-key-need-to-be-cha.patch
|
|
|
|
|
Patch0006: 0006-qm-v1-fixup-the-incorrect-configuration-of-the-type.patch
|
|
|
|
|
Patch0007: 0007-qm-fixup-the-incorrect-configuration-of-the-type.patch
|
|
|
|
|
Patch0008: 0008-uadk_benchmark-use-the-uadk_tool-instead-of-uadk_ben.patch
|
|
|
|
|
Patch0009: 0009-digest-some-optimizations-for-digest-stream-mode.patch
|
|
|
|
|
Patch0010: 0010-uadk-fix-error-of-wd_get_avail_ctx-return-value.patch
|
|
|
|
|
Patch0011: 0011-uadk-fix-comment-content.patch
|
|
|
|
|
Patch0012: 0012-uadk-max-numa-number-should-not-be-fixed.patch
|
|
|
|
|
Patch0013: 0013-uadk-mempool-remove-MISC_DVE_UACCE_CTRL.patch
|
|
|
|
|
Patch0014: 0014-uadk-mempool-check-stats-null-pointer.patch
|
|
|
|
|
Patch0015: 0015-uadk-fix-wd_get_config_numa-info.patch
|
|
|
|
|
Patch0016: 0016-uadk-fix-static-check-warning.patch
|
|
|
|
|
Patch0017: 0017-uadk-fix-numa-array-use-too-much-stack-space.patch
|
|
|
|
|
Patch0018: 0018-uadk-fix-get_dev_info.patch
|
|
|
|
|
Patch0019: 0019-uadk-fix-pthread_spin_init.patch
|
|
|
|
|
Patch0020: 0020-uadk-env-optimize-find_async_queue.patch
|
|
|
|
|
Patch0021: 0021-uadk-env-optimize-some-function.patch
|
|
|
|
|
Patch0022: 0022-uadk-v1-delete-unused-parameter.patch
|
|
|
|
|
Patch0023: 0023-uadk-env-fix-wd_add_task_to_async_queue-return-value.patch
|
|
|
|
|
Patch0024: 0024-uadk-sched-fix-memory-leak.patch
|
|
|
|
|
Patch0025: 0025-hisi-sec-bugfix-for-out_bytes-checking.patch
|
2022-02-21 03:30:18 +00:00
|
|
|
Patch0026: 0026-uadk-tools-modify-NO-SVA-test-scenario.patch
|
|
|
|
|
Patch0027: 0027-wd-fix-wd_parse_async_poll_num.patch
|
|
|
|
|
Patch0028: 0028-uadk-optimize-wd_init_async_polling_thread_per_numa.patch
|
|
|
|
|
Patch0029: 0029-uadk-env-fix-wd_add_task_to_async_queue.patch
|
|
|
|
|
Patch0030: 0030-uadk-optimize-find_async_queue.patch
|
|
|
|
|
Patch0031: 0031-uadk-fix-check_after_sink.patch
|
|
|
|
|
Patch0032: 0032-uadk-fix-wd_request_ctx.patch
|
|
|
|
|
Patch0033: 0033-uadk-fix-sched-params-begin-issue.patch
|
|
|
|
|
Patch0034: 0034-uadk-optimize-wd_request_ctx.patch
|
|
|
|
|
Patch0035: 0035-uadk-env-bugfix-for-wd_init_resource.patch
|
|
|
|
|
Patch0036: 0036-uadk-env-fix-wd-ctx-num-init.patch
|
|
|
|
|
Patch0037: 0037-uadk-modify-for-free-and-return.patch
|
|
|
|
|
Patch0038: 0038-uadk-include-fix-uadk-compatibility.patch
|
|
|
|
|
Patch0039: 0039-uadk-fix-for-resources-are-repeatedly-released.patch
|
|
|
|
|
Patch0040: 0040-aead-modify-the-aead-s-request-api.patch
|
|
|
|
|
Patch0041: 0041-cipher-add-semi-weak-keys-checking.patch
|
|
|
|
|
Patch0042: 0042-uadk-ioctl-return-result-should-be-printed.patch
|
|
|
|
|
Patch0043: 0043-uadk-fix-environment-uninit-repeatly-error.patch
|
|
|
|
|
Patch0044: 0044-uadk-fix-wd_free_ctx-and-wd_uninit_sched_config.patch
|
|
|
|
|
Patch0045: 0045-uadk-env-fix-free-ctx-table-memory-leak.patch
|
|
|
|
|
Patch0046: 0046-uadk-remove-uadk_benchmark-binary-and-header-file.patch
|
|
|
|
|
Patch0047: 0047-uadk-fix-for-wd_env_config-numa_num.patch
|
|
|
|
|
Patch0048: 0048-hisi-sec-add-some-dfx-information-in-comments.patch
|
|
|
|
|
Patch0049: 0049-hisi-sec-delete-some-dummy-parameter-checking.patch
|
|
|
|
|
Patch0050: 0050-hisi-qm-udrv-v1-deleted-a-dummy-branch.patch
|
|
|
|
|
Patch0051: 0051-hisi-sec-v1-update-the-SEC-BD1-mode-configuration.patch
|
|
|
|
|
Patch0052: 0052-uadk-optimize-algorithm-initialization.patch
|
|
|
|
|
Patch0053: 0053-uadk-fix-send-exception-handling.patch
|
|
|
|
|
Patch0054: 0054-uadk-sec-fix-hisi_sec_digest_send.patch
|
|
|
|
|
Patch0055: 0055-uadk-sec-some-clean-code.patch
|
|
|
|
|
Patch0056: 0056-uadk-optimize-wd_ctx_qfr_mmap.patch
|
|
|
|
|
Patch0057: 0057-uadk-optimize-wd_sched_rr_instance.patch
|
|
|
|
|
Patch0058: 0058-uadk-optimize-wd_get_accel_list.patch
|
|
|
|
|
Patch0059: 0059-uadk-fix-staic-check-warning.patch
|
|
|
|
|
Patch0060: 0060-uadk-v1-fix-the-waiting-time-for-receiving-task.patch
|
2022-03-01 03:44:14 +00:00
|
|
|
Patch0061: 0061-uadk-comp-optimize-for-spin-lock.patch
|
|
|
|
|
Patch0062: 0062-hisi-comp-cleanup-for-duplication-code.patch
|
|
|
|
|
Patch0063: 0063-wd_comp-remove-some-useless-printf.patch
|
|
|
|
|
Patch0064: 0064-sample-add-a-demo-for-comp.patch
|
|
|
|
|
Patch0065: 0065-uadk-tool-modify-uadk_benchmark-toos-code.patch
|
|
|
|
|
Patch0066: 0066-uadk-tools-modify-uadk-benchmark-clean-code.patch
|
|
|
|
|
Patch0067: 0067-uadk-v1-fix-for-cookie-initialization.patch
|
|
|
|
|
Patch0068: 0068-uadk-update-file-permission-on-cleanup.patch
|
|
|
|
|
Patch0069: 0069-uadk_tool-fix-build-warning-of-sec_wd_benchmark.patch
|
2022-03-22 11:42:15 +08:00
|
|
|
Patch0070: 0070-rsa-fix-interface-name-and-log-msg.patch
|
|
|
|
|
Patch0071: 0071-uadk-modify-param-verification.patch
|
|
|
|
|
Patch0072: 0072-uadk-v1-cleanup-ret-value.patch
|
|
|
|
|
Patch0073: 0073-uadk-wd-fixup-about-checking-device.patch
|
|
|
|
|
Patch0074: 0074-uadk-cleanup-hpre-code.patch
|
|
|
|
|
Patch0075: 0075-uadk-v1-fix-pool-cstatus-memset-problem.patch
|
|
|
|
|
Patch0076: 0076-uadk-bugfix-segment-fault-when-uninitializing.patch
|
|
|
|
|
Patch0077: 0077-drv-sec-support-sm4-ecb-alg-by-new-fs.patch
|
|
|
|
|
Patch0078: 0078-digest-simplify-the-process-of-represent-BD-state.patch
|
|
|
|
|
Patch0079: 0079-uadk-qm_udrv-Modify-goto-err_out.patch
|
|
|
|
|
Patch0080: 0080-uadk-unify-wd-print-format.patch
|
|
|
|
|
Patch0081: 0081-uadk-v1-fix-wd_bmm-pool_init.patch
|
|
|
|
|
Patch0082: 0082-uadk-v1-fix-wd-create-ctx-memory-leak.patch
|
|
|
|
|
Patch0083: 0083-uadk-mempool-fix-redundant-assignment.patch
|
|
|
|
|
Patch0084: 0084-uadk-v1-fix-del-ctx.patch
|
|
|
|
|
Patch0085: 0085-uadk-v1-clean-code-for-wd.patch
|
|
|
|
|
Patch0086: 0086-uadk-v1-fix-drv_reserve_mem-memory-leak.patch
|
|
|
|
|
Patch0087: 0087-uadk-cipher-fix-wd_cipher_check_params.patch
|
|
|
|
|
Patch0088: 0088-sec-unify-print-format.patch
|
|
|
|
|
Patch0089: 0089-drv-hpre-unify-print-format.patch
|
|
|
|
|
Patch0090: 0090-rsa-dh-ecc-unify-print-format.patch
|
|
|
|
|
Patch0091: 0091-drv-hpre-free-memory-when-BD-sends-failed.patch
|
|
|
|
|
Patch0092: 0092-v1-hpre-add-unlikely-for-branch-prefetch.patch
|
|
|
|
|
Patch0093: 0093-comp-unify-print-format.patch
|
|
|
|
|
Patch0094: 0094-drv-comp-unify-print-format.patch
|
|
|
|
|
Patch0095: 0095-comp-add-unlikely-for-branch-prefetch.patch
|
|
|
|
|
Patch0096: 0096-drv-comp-add-unlikely-for-branch-prefetch.patch
|
|
|
|
|
Patch0097: 0097-hisi_hpre-modify-the-return-value-of-function.patch
|
|
|
|
|
Patch0098: 0098-uadk-parse-epoll-flag-from-environment-variable.patch
|
|
|
|
|
Patch0099: 0099-test-enable-epoll-in-sanity-scripts.patch
|
2022-07-26 09:56:35 +08:00
|
|
|
Patch0100: 0100-drv-sec-modification-for-clean-code.patch
|
|
|
|
|
Patch0101: 0101-uadk-fix-mempool-code.patch
|
|
|
|
|
Patch0102: 0102-uadk-some-clean-code-for-wd.patch
|
|
|
|
|
Patch0103: 0103-wd-sched-modify-default-sched-param.patch
|
|
|
|
|
Patch0104: 0104-uadk-update-README.patch
|
|
|
|
|
Patch0105: 0105-uadk-add-BD-id-check-for-sync-mode.patch
|
|
|
|
|
Patch0106: 0106-uadk-ecc-optimize-create_ecc_out-line.patch
|
|
|
|
|
Patch0107: 0107-uadk-fix-parameter-of-function-has-different-name.patch
|
|
|
|
|
Patch0108: 0108-uadk-ecc-fix-local-variable-referenced-in-macro.patch
|
|
|
|
|
Patch0109: 0109-uadk-fix-switch-statement-has-no-default-branch.patch
|
|
|
|
|
Patch0110: 0110-uadk-fix-macro-argument.patch
|
|
|
|
|
Patch0111: 0111-uadk-fix-ret-uninit-problem.patch
|
|
|
|
|
Patch0112: 0112-uadk-qm-optimize-sgl-copy-function.patch
|
|
|
|
|
Patch0113: 0113-uadk-fix-problems-with-referencing-header-files.patch
|
|
|
|
|
Patch0114: 0114-uadk-fix-parameter-used-as-working-variable.patch
|
|
|
|
|
Patch0115: 0115-uadk-move-parameter-check-into-wd_util.c.patch
|
|
|
|
|
Patch0116: 0116-comp-remove-unused-variable-priv.patch
|
|
|
|
|
Patch0117: 0117-ecc-remove-the-lock-in-async-send-funciton.patch
|
|
|
|
|
Patch0118: 0118-dh-remove-the-lock-in-async-send.patch
|
|
|
|
|
Patch0119: 0119-comp-remove-the-lock-in-async-send.patch
|
|
|
|
|
Patch0120: 0120-dh-remove-repeated-send-BD.patch
|
|
|
|
|
Patch0121: 0121-ecc-remove-repeated-send-BD.patch
|
|
|
|
|
Patch0122: 0122-rsa-remove-repeated-send-BD.patch
|
|
|
|
|
Patch0123: 0123-uadk-move-send-and-recv-code-into-wd_util.c.patch
|
|
|
|
|
Patch0124: 0124-uadk-missing-header-file-after-install-uadk.patch
|
|
|
|
|
Patch0125: 0125-uadk-support-some-uadk-dfx-stronger-features.patch
|
|
|
|
|
Patch0126: 0126-uadk-sgl-data-can-be-dumped.patch
|
|
|
|
|
Patch0127: 0127-uadk-supports-zip-and-sec-message-dumping.patch
|
|
|
|
|
Patch0128: 0128-uadk-add-device-isolation-interface.patch
|
|
|
|
|
Patch0129: 0129-uadk-add-WD_DEV_ERR-api.patch
|
|
|
|
|
Patch0130: 0130-uadk-ecc-remove-a-redefined-macro.patch
|
|
|
|
|
Patch0131: 0131-uadk-hisi-remove-a-redefined-macro.patch
|
|
|
|
|
Patch0132: 0132-uadk-doc-fix-text-style-for-wd_design.md.patch
|
|
|
|
|
Patch0133: 0133-uadk_tool-Update-some-new-test-features.patch
|
|
|
|
|
Patch0134: 0134-uadk_tool-Add-SVA-test-function-of-HPRE-algorithm.patch
|
|
|
|
|
Patch0135: 0135-uadk_tool-Add-No-SVA-mode-test-function-to-HPRE.patch
|
|
|
|
|
Patch0136: 0136-uadk_tool-Add-SVA-mode-test-function-to-ZIP-module.patch
|
|
|
|
|
Patch0137: 0137-uadk_tool-Add-NO-SVA-mode-test-function-for-ZIP-modu.patch
|
|
|
|
|
Patch0138: 0138-drv-qm-fix-spin-lock-destroy.patch
|
|
|
|
|
Patch0139: 0139-drv-qm-modify-the-lock-for-send-and-receive-BD.patch
|
|
|
|
|
Patch0140: 0140-uadk-v1-fix-goto-warning.patch
|
|
|
|
|
Patch0141: 0141-uadk-fix-comment-blank.patch
|
|
|
|
|
Patch0142: 0142-uadk-fix-different-name-in-declaration-and-definitio.patch
|
|
|
|
|
Patch0143: 0143-uadk-fix-pointer-parameters-are-not-checked.patch
|
|
|
|
|
Patch0144: 0144-uadk-fix-cqe-phase.patch
|
|
|
|
|
Patch0145: 0145-uadk-v1-fix-include-file-order.patch
|
|
|
|
|
Patch0146: 0146-uadk-fix-BufferOverFlow.patch
|
|
|
|
|
Patch0147: 0147-uadk-fix-macro-argument-warning.patch
|
|
|
|
|
Patch0148: 0148-uadk-driver-init-should-check-ctx-num.patch
|
|
|
|
|
Patch0149: 0149-uadk-fix-cast-pointer-problem.patch
|
|
|
|
|
Patch0150: 0150-uadk-fix-function-params-usage.patch
|
|
|
|
|
Patch0151: 0151-uadk-fix-size_t-usage.patch
|
|
|
|
|
Patch0152: 0152-uadk-fix-atoi-usage.patch
|
|
|
|
|
Patch0153: 0153-uadk-fix-lm-not-link-problem.patch
|
|
|
|
|
Patch0154: 0154-uadk-remove-unneed-comment-and-macro.patch
|
|
|
|
|
Patch0155: 0155-drv-hpre-remove-repeatedly-included-header-file.patch
|
|
|
|
|
Patch0156: 0156-drv-hpre-add-hpre_result_check.patch
|
|
|
|
|
Patch0157: 0157-drv-hpre-move-format-check-to-is_hpre_bin_fmt.patch
|
|
|
|
|
Patch0158: 0158-drv-hpre-change-the-parameter-type.patch
|
|
|
|
|
Patch0159: 0159-drv-hpre-remove-redundant-blank-line.patch
|
|
|
|
|
Patch0160: 0160-drv-qm-add-unlikely-for-branch-prefetch.patch
|
|
|
|
|
Patch0161: 0161-drv-qm-remove-redundant-add-1.patch
|
|
|
|
|
Patch0162: 0162-drv-qm-remove-useless-parameter-sq_head_index.patch
|
|
|
|
|
Patch0163: 0163-uadk-add-wd_-alg-_get_msg.patch
|
|
|
|
|
Patch0164: 0164-drv-hpre-support-dump-BD-when-BD-checks-fail.patch
|
|
|
|
|
Patch0165: 0165-drv-hpre-bugfix-about-sm2-async-parsing-error.patch
|
|
|
|
|
Patch0166: 0166-drv-hpre-bugfix-async-tag-of-rsa-and-dh.patch
|
|
|
|
|
Patch0167: 0167-drv-hpre-cleanup-ecc-sqe-parsing-process.patch
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%description
|
2021-07-06 12:07:31 +00:00
|
|
|
This package contains the User Space Accelerator Library
|
|
|
|
|
for hardware accelerator, compress, symmetric encryption
|
|
|
|
|
and decryption, asymmetric encryption and decryption.
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%prep
|
2020-03-04 02:23:50 +08:00
|
|
|
%global debug_package %{nil}
|
2022-01-10 16:52:18 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
sh autogen.sh
|
|
|
|
|
./configure
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/lib64
|
2022-01-10 16:52:18 +08:00
|
|
|
install -b -m755 .libs/libwd.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 .libs/libwd_crypto.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 .libs/libwd_comp.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 .libs/libhisi_sec.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 .libs/libhisi_hpre.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 .libs/libhisi_zip.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
|
2019-12-26 20:57:37 +08:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/include/warpdrive/include
|
2022-01-10 16:52:18 +08:00
|
|
|
cp v1/uacce.h ${RPM_BUILD_ROOT}/usr/include/warpdrive/include
|
|
|
|
|
cp v1/wd.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
|
|
|
|
cp v1/wd_cipher.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
|
|
|
|
cp v1/wd_comp.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
|
|
|
|
cp v1/wd_dh.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
|
|
|
|
cp v1/wd_digest.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
|
|
|
|
cp v1/wd_rsa.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
|
|
|
|
cp v1/wd_bmm.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
|
2021-11-24 11:56:58 +08:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
2022-01-10 16:52:18 +08:00
|
|
|
cp include/uacce.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_cipher.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_comp.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_dh.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_digest.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_rsa.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_aead.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_ecc.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_ecc_curve.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_alg_common.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_common.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp include/wd_sched.h ${RPM_BUILD_ROOT}/usr/include/uadk
|
|
|
|
|
cp v1/uacce.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd_cipher.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd_comp.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd_dh.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd_digest.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd_rsa.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
|
|
|
|
cp v1/wd_bmm.h ${RPM_BUILD_ROOT}/usr/include/uadk/v1
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(755,root,root)
|
2020-02-03 17:53:43 +08:00
|
|
|
/usr/lib64/libwd.so.%{version}
|
2021-07-06 12:07:31 +00:00
|
|
|
/usr/lib64/libwd_crypto.so.%{version}
|
|
|
|
|
/usr/lib64/libwd_comp.so.%{version}
|
|
|
|
|
/usr/lib64/libhisi_sec.so.%{version}
|
|
|
|
|
/usr/lib64/libhisi_hpre.so.%{version}
|
|
|
|
|
/usr/lib64/libhisi_zip.so.%{version}
|
2019-12-26 20:57:37 +08:00
|
|
|
%defattr(644,root,root)
|
2021-07-21 18:03:36 +08:00
|
|
|
/usr/include/warpdrive/include/uacce.h
|
2019-12-26 20:57:37 +08:00
|
|
|
/usr/include/warpdrive/wd.h
|
|
|
|
|
/usr/include/warpdrive/wd_cipher.h
|
|
|
|
|
/usr/include/warpdrive/wd_comp.h
|
|
|
|
|
/usr/include/warpdrive/wd_dh.h
|
|
|
|
|
/usr/include/warpdrive/wd_digest.h
|
|
|
|
|
/usr/include/warpdrive/wd_rsa.h
|
|
|
|
|
/usr/include/warpdrive/wd_bmm.h
|
2021-11-24 11:56:58 +08:00
|
|
|
/usr/include/uadk/uacce.h
|
2021-07-06 12:07:31 +00:00
|
|
|
/usr/include/uadk/wd.h
|
|
|
|
|
/usr/include/uadk/wd_cipher.h
|
|
|
|
|
/usr/include/uadk/wd_comp.h
|
|
|
|
|
/usr/include/uadk/wd_dh.h
|
|
|
|
|
/usr/include/uadk/wd_digest.h
|
|
|
|
|
/usr/include/uadk/wd_rsa.h
|
|
|
|
|
/usr/include/uadk/wd_aead.h
|
|
|
|
|
/usr/include/uadk/wd_ecc.h
|
|
|
|
|
/usr/include/uadk/wd_ecc_curve.h
|
2021-11-24 11:56:58 +08:00
|
|
|
/usr/include/uadk/wd_alg_common.h
|
|
|
|
|
/usr/include/uadk/wd_common.h
|
|
|
|
|
/usr/include/uadk/wd_sched.h
|
|
|
|
|
/usr/include/uadk/v1/uacce.h
|
|
|
|
|
/usr/include/uadk/v1/wd.h
|
|
|
|
|
/usr/include/uadk/v1/wd_cipher.h
|
|
|
|
|
/usr/include/uadk/v1/wd_comp.h
|
|
|
|
|
/usr/include/uadk/v1/wd_dh.h
|
|
|
|
|
/usr/include/uadk/v1/wd_digest.h
|
|
|
|
|
/usr/include/uadk/v1/wd_rsa.h
|
|
|
|
|
/usr/include/uadk/v1/wd_bmm.h
|
2021-07-06 12:07:31 +00:00
|
|
|
%exclude /usr/lib64/libwd.so.2
|
|
|
|
|
%exclude /usr/lib64/libwd_crypto.so.2
|
|
|
|
|
%exclude /usr/lib64/libwd_comp.so.2
|
|
|
|
|
%exclude /usr/lib64/libhisi_sec.so.2
|
|
|
|
|
%exclude /usr/lib64/libhisi_hpre.so.2
|
|
|
|
|
%exclude /usr/lib64/libhisi_zip.so.2
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
if [ "$1" = "2" ] ; then #2: update
|
|
|
|
|
rm -rf /usr/lib64/libwd.so > /dev/null 2>&1 || true
|
2021-07-06 12:07:31 +00:00
|
|
|
rm -rf /usr/lib64/libwd.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_crypto.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_crypto.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_comp.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_comp.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_sec.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_sec.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_hpre.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_hpre.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_zip.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_zip.so.2 > /dev/null 2>&1 || true
|
2019-12-26 20:57:37 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [[ "$1" = "1" || "$1" = "2" ]] ; then #1: install 2: update
|
|
|
|
|
cd /usr/lib64
|
|
|
|
|
ln -sf libwd.so.%{version} libwd.so
|
2021-07-06 12:07:31 +00:00
|
|
|
ln -sf libwd.so.%{version} libwd.so.2
|
|
|
|
|
ln -sf libwd_crypto.so.%{version} libwd_crypto.so
|
|
|
|
|
ln -sf libwd_crypto.so.%{version} libwd_crypto.so.2
|
|
|
|
|
ln -sf libwd_comp.so.%{version} libwd_comp.so
|
|
|
|
|
ln -sf libwd_comp.so.%{version} libwd_comp.so.2
|
|
|
|
|
ln -sf libhisi_sec.so.%{version} libhisi_sec.so
|
|
|
|
|
ln -sf libhisi_sec.so.%{version} libhisi_sec.so.2
|
|
|
|
|
ln -sf libhisi_hpre.so.%{version} libhisi_hpre.so
|
|
|
|
|
ln -sf libhisi_hpre.so.%{version} libhisi_hpre.so.2
|
|
|
|
|
ln -sf libhisi_zip.so.%{version} libhisi_zip.so
|
|
|
|
|
ln -sf libhisi_zip.so.%{version} libhisi_zip.so.2
|
2019-12-26 20:57:37 +08:00
|
|
|
fi
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ "$1" = "0" ] ; then #0: uninstall
|
|
|
|
|
rm -rf /usr/lib64/libwd.so > /dev/null 2>&1 || true
|
2021-07-06 12:07:31 +00:00
|
|
|
rm -rf /usr/lib64/libwd.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_crypto.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_crypto.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_comp.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libwd_comp.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_sec.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_sec.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_hpre.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_hpre.so.2 > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_zip.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf /usr/lib64/libhisi_zip.so.2 > /dev/null 2>&1 || true
|
2019-12-26 20:57:37 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-07-26 09:56:35 +08:00
|
|
|
* Tue Jul 26 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-6
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.31 to 2.3.36
|
|
|
|
|
|
2022-03-22 11:42:15 +08:00
|
|
|
* Mon Mar 21 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-5
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.28 to 2.3.31
|
|
|
|
|
|
2022-03-01 03:44:14 +00:00
|
|
|
* Tue Mar 1 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-4
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.27 to 2.3.28
|
|
|
|
|
|
2022-02-21 03:30:18 +00:00
|
|
|
* Mon Feb 21 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-3
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.24 to 2.3.27
|
|
|
|
|
|
2022-01-10 16:52:19 +08:00
|
|
|
* Tue Jan 04 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-2
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.21 to 2.3.24
|
|
|
|
|
|
2021-12-06 17:30:13 +08:00
|
|
|
* Mon Dec 06 2021 linwenkai <linwenkai6@hisilicon.com> 2.3.21-1
|
|
|
|
|
- libwd: update uadk from 2.3.20 to 2.3.21
|
|
|
|
|
|
2022-01-10 16:52:19 +08:00
|
|
|
* Wed Nov 24 2021 linwenkai <linwenkai6@hisilicon.com> 2.3.20-2
|
2021-11-24 11:56:58 +08:00
|
|
|
- libwd: add missing head files and fix install path
|
|
|
|
|
|
|
|
|
|
* Mon Nov 22 2021 Yang Shen <shenyang39@huawei.com> 2.3.20-1
|
2021-11-22 02:20:24 +00:00
|
|
|
- libwd: update uadk from 2.3.11 to 2.3.20
|
|
|
|
|
|
2021-11-24 11:56:58 +08:00
|
|
|
* Fri Sep 03 2021 Yang Shen <shenyang39@huawei.com> 2.3.11-4
|
2021-09-06 02:11:51 +00:00
|
|
|
- uadk-access-the-file-isolate-before-read-it.patch
|
|
|
|
|
|
2021-11-24 11:56:58 +08:00
|
|
|
* Fri Aug 06 2021 Pengju Jiang <jiangpengju2@huawei.com> 2.3.11-3
|
2021-08-09 09:50:18 +08:00
|
|
|
- bugfix-of-gcc-10.patch
|
|
|
|
|
|
2021-07-21 18:03:36 +08:00
|
|
|
* Wed Jul 21 2021 caodongxia <caodongxia@huawei.com> 2.3.11-2
|
|
|
|
|
- change uacce.h path.
|
|
|
|
|
|
2021-11-22 02:20:24 +00:00
|
|
|
* Tue Jul 06 2021 Hao Fang <fanghao11@huawei.com> 2.3.11-1
|
2021-07-06 12:07:31 +00:00
|
|
|
- update warpdrive to uadk, support kunpeng 920/930.
|
|
|
|
|
|
2020-03-15 13:06:59 +08:00
|
|
|
* Sun Mar 15 2020 zhangtao <zhangtao221@huawei.com> 1.2.10-3
|
|
|
|
|
- Specify compilation aarch64 as platform
|
|
|
|
|
|
2020-03-04 02:23:50 +08:00
|
|
|
* Tue Mar 03 2020 catastrowings <jianghuhao1994@163.com> 1.2.10-2
|
|
|
|
|
- openEuler init
|
2019-12-26 20:57:37 +08:00
|
|
|
|
2020-01-20 16:33:54 +08:00
|
|
|
* Tue Jan 07 2020 jinbinhua <jinbinhua@huawei.com> 1.2.7-1
|
|
|
|
|
- First Spec Version Include Warpdrive Code
|