update to 2.4.0
This commit is contained in:
parent
079c068cb2
commit
5e668e2ac5
Binary file not shown.
BIN
tpm2-abrmd-2.4.0.tar.gz
Normal file
BIN
tpm2-abrmd-2.4.0.tar.gz
Normal file
Binary file not shown.
@ -1,15 +1,15 @@
|
|||||||
%global selinuxtype targeted
|
%global selinuxtype targeted
|
||||||
|
|
||||||
Name: tpm2-abrmd
|
Name: tpm2-abrmd
|
||||||
Version: 2.3.3
|
Version: 2.4.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: A system daemon implementing the TPM2 access broker (TAB) & Resource Manager (RM) spec from the TCG
|
Summary: A system daemon implementing the TPM2 access broker (TAB) & Resource Manager (RM) spec from the TCG
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/tpm2-software/tpm2-abrmd
|
URL: https://github.com/tpm2-software/tpm2-abrmd
|
||||||
Source0: https://github.com/tpm2-software/tpm2-abrmd/releases/download/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/tpm2-software/tpm2-abrmd/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: systemd pkgconfig(cmocka) pkgconfig(dbus-1) pkgconfig(gio-unix-2.0) pkgconfig(tss2-mu) pkgconfig(tss2-sys)
|
BuildRequires: systemd pkgconfig(cmocka) pkgconfig(dbus-1) pkgconfig(gio-unix-2.0) pkgconfig(tss2-mu) pkgconfig(tss2-sys)
|
||||||
BuildRequires: tpm2-tss-devel libtool autoconf-archive libgcrypt libgcrypt-devel
|
BuildRequires: tpm2-tss-devel >= 2.4.0 libtool autoconf-archive libgcrypt libgcrypt-devel
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: selinux-policy-devel pkgconfig(systemd)
|
BuildRequires: selinux-policy-devel pkgconfig(systemd)
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ The daemon (tpm2-abrmd) is implemented using Glib and the GObject system.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Files necessary to develop applications with tpm2-abrmd
|
Summary: Files necessary to develop applications with tpm2-abrmd
|
||||||
Requires: %{name}%{_isa} = %{version}-%{release}
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
||||||
Requires: tpm2-tss-devel
|
Requires: tpm2-tss-devel >= 2.4.0
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -51,7 +51,9 @@ export GDBUS_CODEGEN="/usr/bin/gdbus-codegen"
|
|||||||
%configure --disable-static --disable-silent-rules \
|
%configure --disable-static --disable-silent-rules \
|
||||||
--with-systemdsystemunitdir=%{_unitdir} \
|
--with-systemdsystemunitdir=%{_unitdir} \
|
||||||
--with-systemdpresetdir=%{_presetdir} \
|
--with-systemdpresetdir=%{_presetdir} \
|
||||||
--with-sepolicy
|
--with-sepolicy \
|
||||||
|
--with-dbuspolicydir=%{_datadir}/dbus-1/system.d/
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -72,15 +74,7 @@ mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
|||||||
echo "/usr/lib64/" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
echo "/usr/lib64/" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make check
|
||||||
|
|
||||||
%pre
|
|
||||||
#add a user to sandbox the tpm2-abrmd daemon
|
|
||||||
getent group tss >/dev/null || groupadd -g 59 -r tss
|
|
||||||
getent passwd tss >/dev/null || \
|
|
||||||
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \
|
|
||||||
-c "Account used by the tpm2-abrmd package to sandbox the tpm2-abrmd daemon" tss
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%pre selinux
|
%pre selinux
|
||||||
%selinux_relabel_pre -s targeted
|
%selinux_relabel_pre -s targeted
|
||||||
@ -116,7 +110,7 @@ fi
|
|||||||
%{_unitdir}/tpm2-abrmd.service
|
%{_unitdir}/tpm2-abrmd.service
|
||||||
%{_presetdir}/tpm2-abrmd.preset
|
%{_presetdir}/tpm2-abrmd.preset
|
||||||
%{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
|
%{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
|
||||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
|
%{_datadir}/dbus-1/system.d/tpm2-abrmd.conf
|
||||||
%config(noreplace) /etc/ld.so.conf.d/*
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -137,6 +131,12 @@ fi
|
|||||||
%{_datadir}/selinux/packages/tabrmd.pp.bz2
|
%{_datadir}/selinux/packages/tabrmd.pp.bz2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 14 2022 panxiaohe<panxh.life@foxmail.com> - 2.4.0-1
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: update to 2.4.0
|
||||||
|
|
||||||
* Tue May 25 2021 Hugel<gengqihu1@huawei.com> - 2.3.3-2
|
* Tue May 25 2021 Hugel<gengqihu1@huawei.com> - 2.3.3-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user