Package init
This commit is contained in:
commit
d59cd78344
BIN
tpm2-abrmd-2.0.1.tar.gz
Normal file
BIN
tpm2-abrmd-2.0.1.tar.gz
Normal file
Binary file not shown.
88
tpm2-abrmd.spec
Normal file
88
tpm2-abrmd.spec
Normal file
@ -0,0 +1,88 @@
|
||||
Name: tpm2-abrmd
|
||||
Version: 2.0.1
|
||||
Release: 2
|
||||
Summary: A system daemon implementing the TPM2 access broker (TAB) & Resource Manager (RM) spec from the TCG
|
||||
License: BSD
|
||||
URL: https://github.com/tpm2-software/tpm2-abrmd
|
||||
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: tpm2-tss-devel libtool autoconf-archive
|
||||
|
||||
%description
|
||||
This is a system daemon implementing the TPM2 access broker (TAB) & Resource Manager (RM) spec from the TCG.
|
||||
The daemon (tpm2-abrmd) is implemented using Glib and the GObject system.
|
||||
|
||||
%package devel
|
||||
Summary: Files necessary to develop applications with tpm2-abrmd
|
||||
Requires: %{name}%{_isa} = %{version}-%{release}
|
||||
Requires: tpm2-tss-devel
|
||||
|
||||
|
||||
%description devel
|
||||
This package contains development library files, headers and config files of tpm2-abrmd
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
export GDBUS_CODEGEN="/usr/bin/gdbus-codegen"
|
||||
%configure --disable-static --disable-silent-rules \
|
||||
--with-systemdsystemunitdir=%{_unitdir} \
|
||||
--with-systemdpresetdir=%{_presetdir}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%delete_la_and_a
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%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
|
||||
|
||||
%preun
|
||||
%systemd_preun tpm2-abrmd.service
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%systemd_post tpm2-abrmd.service
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%systemd_postun tpm2-abrmd.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%doc README.md CHANGELOG.md
|
||||
%{_libdir}/libtss2-tcti-tabrmd.so.*
|
||||
%{_sbindir}/tpm2-abrmd
|
||||
%{_unitdir}/tpm2-abrmd.service
|
||||
%{_presetdir}/tpm2-abrmd.preset
|
||||
%{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
|
||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/tss2/tss2-tcti-tabrmd.h
|
||||
%{_libdir}/libtss2-tcti-tabrmd.so
|
||||
%{_libdir}/pkgconfig/tss2-tcti-tabrmd.pc
|
||||
|
||||
%files help
|
||||
%{_mandir}/man3/*.3.gz
|
||||
%{_mandir}/man7/*.7.gz
|
||||
%{_mandir}/man8/*.8.gz
|
||||
|
||||
%changelog
|
||||
* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.1-2
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user