kunpengsecl/kunpengsecl.spec

216 lines
7.1 KiB
RPMSpec
Raw Normal View History

2021-12-26 13:54:20 +08:00
%global name kunpengsecl
2023-06-09 14:58:01 +08:00
%global version 2.0.1
2022-08-10 10:40:53 +08:00
%undefine _missing_build_ids_terminate_build
2021-12-26 13:54:20 +08:00
Name: %{name}
Version: %{version}
2023-03-25 22:24:53 +08:00
Release: 1%{?dist}
2021-12-26 13:54:20 +08:00
Summary: A remote attestation security software components running on Kunpeng processors.
Summary(zh_CN): 一款运行于鲲鹏处理器上的远程证明安全软件组件
2022-08-04 02:01:29 +00:00
License: MulanPSL-2.0
2021-12-26 13:54:20 +08:00
URL: https://gitee.com/openeuler/kunpengsecl
Source0: %{name}-v%{version}.tar.gz
2022-08-07 23:05:09 +08:00
Source1: vendor.tar.gz
2021-12-26 13:54:20 +08:00
BuildRequires: gettext make golang
BuildRequires: protobuf-compiler compat-openssl11-devel
2023-03-25 22:24:53 +08:00
BuildRequires: cjson-devel
2021-12-26 13:54:20 +08:00
2023-03-25 22:24:53 +08:00
%ifarch aarch64
BuildRequires: itrustee_sdk-devel
%endif
Packager: leezhenxiang, WangLi, Wucaijun, gwei3
2021-12-26 13:54:20 +08:00
%description
2023-03-25 22:24:53 +08:00
This is %{name} project, including rac, ras, rahub, qcaserver, attester and tas packages.
2021-12-26 13:54:20 +08:00
%package rac
Summary: the rac package.
2023-03-25 22:24:53 +08:00
Requires: compat-openssl11-libs
%ifarch aarch64
Requires: itrustee_sdk
%endif
2021-12-26 13:54:20 +08:00
%description rac
2022-07-30 10:46:47 +00:00
This is the rac rpm package, which is used to install the client of the program.
2021-12-26 13:54:20 +08:00
%package ras
Summary: the ras package.
2023-03-25 22:24:53 +08:00
Requires: %{name}-attester
2021-12-26 13:54:20 +08:00
%description ras
2022-07-30 10:46:47 +00:00
This is the ras rpm package, which is used to install the server of the program.
2021-12-26 13:54:20 +08:00
%package rahub
Summary: the rahub package.
%description rahub
2022-07-30 10:46:47 +00:00
This is the rahub rpm package, which is used to cascade clients.
2021-12-26 13:54:20 +08:00
2023-03-25 22:24:53 +08:00
%package qcaserver
Summary: the qcaserver package.
%description qcaserver
This is the qcaserver rpm package, which is used to invoke libqca.
%package attester
Summary: the attester package.
Requires: cjson
Requires: compat-openssl11-libs
%description attester
This is the attester rpm package, which is used to verify ta reports.
%package tas
Summary: the tas package.
Requires: %{name}-attester
%description tas
This is the tas rpm package, which is used to sign ak cert.
2023-06-09 14:58:01 +08:00
%package devel
Summary: the develop package.
Requires: %{name}-attester
%description devel
This is the devel rpm package, which provide supporting header file.
2021-12-26 13:54:20 +08:00
%prep
2022-08-07 23:05:09 +08:00
%setup -q -c -a 1
2021-12-26 13:54:20 +08:00
%build
make build
%install
2022-09-02 21:35:04 +08:00
make install DESTDIR=%{buildroot}
2021-12-26 13:54:20 +08:00
# %check
# make check
%post
%preun
%files rac
%{_bindir}/raagent
2022-07-30 10:46:47 +00:00
#%{_bindir}/tbprovisioner
2021-12-26 13:54:20 +08:00
%{_sysconfdir}/attestation/rac/config.yaml
2022-07-30 10:46:47 +00:00
%{_sysconfdir}/attestation/default_test/ascii_runtime_measurements*
%{_sysconfdir}/attestation/default_test/binary_bios_measurements*
2021-12-26 13:54:20 +08:00
%{_datadir}/attestation/rac/containerintegritytool.sh
%{_datadir}/attestation/rac/pcieintegritytool.sh
%{_datadir}/attestation/rac/hostintegritytool.sh
2022-07-30 10:46:47 +00:00
%{_datadir}/attestation/rac/prepare-racconf-env.sh
2021-12-26 13:54:20 +08:00
%{_docdir}/attestation/rac/README.md
%{_docdir}/attestation/rac/README.en.md
%{_docdir}/attestation/rac/LICENSE
2023-03-25 22:24:53 +08:00
%ifarch aarch64
%{_libdir}/libkta.so
%endif
2021-12-26 13:54:20 +08:00
%files ras
%{_bindir}/ras
%{_sysconfdir}/attestation/ras/config.yaml
%{_datadir}/attestation/ras/prepare-database-env.sh
%{_datadir}/attestation/ras/clear-database.sh
%{_datadir}/attestation/ras/createTable.sql
%{_datadir}/attestation/ras/clearTable.sql
%{_datadir}/attestation/ras/dropTable.sql
2022-07-30 10:46:47 +00:00
%{_datadir}/attestation/ras/prepare-rasconf-env.sh
2021-12-26 13:54:20 +08:00
%{_docdir}/attestation/ras/README.md
%{_docdir}/attestation/ras/README.en.md
%{_docdir}/attestation/ras/LICENSE
%files rahub
%{_bindir}/rahub
%{_sysconfdir}/attestation/rahub/config.yaml
2022-07-30 10:46:47 +00:00
%{_datadir}/attestation/rahub/prepare-hubconf-env.sh
2021-12-26 13:54:20 +08:00
%{_docdir}/attestation/rahub/README.md
%{_docdir}/attestation/rahub/README.en.md
%{_docdir}/attestation/rahub/LICENSE
2023-03-25 22:24:53 +08:00
%files qcaserver
%{_bindir}/qcaserver
%{_sysconfdir}/attestation/qcaserver/config.yaml
%{_datadir}/attestation/qcaserver/prepare-qcaconf-env.sh
%{_docdir}/attestation/qcaserver/README.md
%{_docdir}/attestation/qcaserver/README.en.md
%{_docdir}/attestation/qcaserver/LICENSE
%{_datadir}/attestation/qcaserver/libqca.so
%{_datadir}/attestation/qcaserver/libteec.so
%files attester
%{_bindir}/attester
%{_sysconfdir}/attestation/attester/config.yaml
%{_datadir}/attestation/attester/prepare-attesterconf-env.sh
%{_docdir}/attestation/attester/README.md
%{_docdir}/attestation/attester/README.en.md
%{_docdir}/attestation/attester/LICENSE
%{_libdir}/libteeverifier.so
%files tas
%{_bindir}/tas
%{_bindir}/*.pem
%{_sysconfdir}/attestation/tas/config.yaml
%{_datadir}/attestation/tas/prepare-tasconf-env.sh
%{_docdir}/attestation/tas/README.md
%{_docdir}/attestation/tas/README.en.md
%{_docdir}/attestation/tas/LICENSE
2023-06-09 14:58:01 +08:00
%files devel
%{_includedir}/teeverifier.h
2021-12-26 13:54:20 +08:00
%changelog
2023-06-09 14:58:01 +08:00
* Thu Mar 23 2023 leezhenxiang <1172294056@qq.com> - 2.0.1-1
- update to 2.0.1
- add devel package
2023-03-25 22:24:53 +08:00
* Thu Mar 23 2023 leezhenxiang <1172294056@qq.com> - 2.0.0-1
- update to 2.0.0
- add qcaserver, attester, and tas packages
- add BuildRequires itrustee_sdk-devel, cjson-devel and Requires itrustee_sdk, cjson
- modify makefile to adapt to different architectures
- specify the build requires in rac and attester package
* Fri Feb 10 2023 gwei3 <11015100@qq.com> - 1.1.2-2
- update BuildRequires & Requires to replace openssl* with compat-openssl11* to adapt to latest Mainline
- remove redundent clean label in spec file
2022-09-16 13:03:30 +08:00
* Thu Sep 15 2022 gwei3 <11015100@qq.com> - 1.1.2-1
- update to 1.1.2
- add slice length checks to avoid buffer overflow while extracting and verifying
- update integration test data to meet restapi parameter check requirement
- modify raagent/main.go file, change log to logger, os.Exit returns different values based on diff errors
- close RAS restapi server in signal handler
- Add parameter format checking for pcr/bios/ima in POST {id}/newbasevalue API
- Fix bugs in v1.1.1
bug 1: hostintegritytool.sh can only add the 2nd part of ima policy into /etc/ima/ima-policy.
bug 2: running hostintegritytool.sh multiple times will add duplicated linux cmdlines in /etc/default/grub.
bug 3: rahub config path was assigned wrong values, which is caused by copy/paste
- fix the issue that Makefile not sync vendor
- modify readme file
2022-09-02 21:35:04 +08:00
* Fri Sep 02 2022 gwei3 <11015100@qq.com> - 1.1.1-1
- update to 1.1.1
- reuse makefile to do install
- remove the empty kunpengsecl binary rpm
2022-08-07 23:05:09 +08:00
* Tue Aug 09 2022 wangli <3214053332@qq.com> - 1.1.0-3
- process vendor directory
2022-08-04 02:01:29 +00:00
* Wed Aug 03 2022 fushanqing <fushanqing@kylinos.cn> - 1.1.0-2
2022-08-07 23:05:09 +08:00
- Unified license name specification
* Sun Jul 24 2022 wangli <3214053332@qq.com> - 1.1.0-1
2022-07-30 10:46:47 +00:00
- add some test files
- prepare corresponding script for ras\rac\rahub to deploy config file respectively
- update part of file paths
- update to 1.1.0
2022-08-07 23:05:09 +08:00
* Fri Jan 21 2022 wangli <3214053332@qq.com> - 1.0.0-5
- install some test files to support the running of program.
* Mon Dec 27 2021 gwei3 <11015100@qq.com> - 1.0.0-4
- update the source tar to remove intermediate files.
2022-08-07 23:05:09 +08:00
* Wed Dec 08 2021 wangli <3214053332@qq.com> - 1.0.0-3
2021-12-26 13:54:20 +08:00
- add the rahub package.
- reorganize the directory structure of all packages.
- add BuildRequires protobuf-compiler and Requires openssl.
* Fri Nov 12 2021 wucaijun <wucaijun2001@163.com> - 1.0.0-2
- create the rpmbuild directory.
- modify the kunpengsecl.spec and buildrpm.sh files.
- add root Makefile to build/clean rpm package.
2022-08-07 23:05:09 +08:00
* Thu Nov 11 2021 wangli <3214053332@qq.com> - 1.0.0-1
2022-09-02 21:35:04 +08:00
- update to 1.0.0