|
|
56375a |
Name: tpm2-abrmd
|
|
|
56375a |
Version: 1.1.0
|
|
|
56375a |
Release: 11%{?dist}
|
|
|
56375a |
Summary: A system daemon implementing TPM2 Access Broker and Resource Manager
|
|
|
56375a |
|
|
|
56375a |
License: BSD
|
|
|
56375a |
URL: https://github.com/01org/tpm2-abrmd
|
|
|
56375a |
Source0: https://github.com/01org/tpm2-abrmd/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
56375a |
# upstream commit 418d49669a33f9e6b029787e3869b3a534bb7de8
|
|
|
56375a |
Patch0: 0001-tcti-tabrmd-Fix-NULL-deref-bug-by-moving-debug-outpu.patch
|
|
|
56375a |
Patch1: autoconf-fixup.patch
|
|
|
56375a |
|
|
|
56375a |
%{?systemd_requires}
|
|
|
56375a |
BuildRequires: systemd
|
|
|
56375a |
BuildRequires: libtool
|
|
|
56375a |
BuildRequires: autoconf-archive
|
|
|
56375a |
BuildRequires: pkgconfig(cmocka)
|
|
|
56375a |
BuildRequires: pkgconfig(dbus-1)
|
|
|
56375a |
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
56375a |
BuildRequires: pkgconfig(sapi)
|
|
|
56375a |
BuildRequires: pkgconfig(tcti-device)
|
|
|
56375a |
BuildRequires: pkgconfig(tcti-socket)
|
|
|
56375a |
# tpm2-abrmd build depends on tpm2-tss-devel for sapi/tcti-device/tcti-socket libs
|
|
|
56375a |
BuildRequires: tpm2-tss-devel%{?_isa} >= 1.4.0-1%{?dist}
|
|
|
56375a |
|
|
|
56375a |
# this package does not support big endian arch so far,
|
|
|
56375a |
# and has been verified only on Intel platforms.
|
|
|
56375a |
ExclusiveArch: %{ix86} x86_64
|
|
|
56375a |
|
|
|
56375a |
# tpm2-abrmd depends on tpm2-tss for sapi/tcti-device/tcti-socket libs
|
|
|
56375a |
Requires: tpm2-tss%{?_isa} >= 1.4.0-1%{?dist}
|
|
|
56375a |
|
|
|
56375a |
%description
|
|
|
56375a |
tpm2-abrmd is a system daemon implementing the TPM2 access broker (TAB) and
|
|
|
56375a |
Resource Manager (RM) spec from the TCG.
|
|
|
56375a |
|
|
|
56375a |
%prep
|
|
|
56375a |
%autosetup -p1 -n %{name}-%{version}
|
|
|
56375a |
autoreconf -vif
|
|
|
56375a |
|
|
|
56375a |
%build
|
|
|
56375a |
%configure --disable-static --disable-silent-rules \
|
|
|
56375a |
--with-systemdsystemunitdir=%{_unitdir} \
|
|
|
56375a |
--with-udevrulesdir=%{_udevrulesdir}
|
|
|
56375a |
%make_build
|
|
|
56375a |
|
|
|
56375a |
%install
|
|
|
56375a |
%make_install
|
|
|
56375a |
rm -f %{buildroot}/%{_udevrulesdir}/tpm-udev.rules
|
|
|
56375a |
find %{buildroot}%{_libdir} -type f -name \*.la -delete
|
|
|
56375a |
|
|
|
56375a |
%pre
|
|
|
56375a |
getent group tss >/dev/null || groupadd -g 59 -r tss
|
|
|
56375a |
getent passwd tss >/dev/null || \
|
|
|
56375a |
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \
|
|
|
56375a |
-c "Account used by tpm2-abrmd package to sandbox the tpm2-abrmd daemon" tss
|
|
|
56375a |
exit 0
|
|
|
56375a |
|
|
|
56375a |
%files
|
|
|
56375a |
%doc README.md CHANGELOG.md
|
|
|
56375a |
%license LICENSE
|
|
|
56375a |
%{_libdir}/libtcti-tabrmd.so.*
|
|
|
56375a |
%{_sbindir}/tpm2-abrmd
|
|
|
56375a |
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
|
|
|
56375a |
%{_unitdir}/tpm2-abrmd.service
|
|
|
56375a |
%{_mandir}/man3/tss2_tcti_tabrmd_init.3.gz
|
|
|
56375a |
%{_mandir}/man3/tss2_tcti_tabrmd_init_full.3.gz
|
|
|
56375a |
%{_mandir}/man7/tcti-tabrmd.7.gz
|
|
|
56375a |
%{_mandir}/man8/tpm2-abrmd.8.gz
|
|
|
56375a |
|
|
|
56375a |
|
|
|
56375a |
%package devel
|
|
|
56375a |
Summary: Headers, static libraries and package config files of tpm2-abrmd
|
|
|
56375a |
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
56375a |
# tpm2-abrmd-devel depends on tpm2-tss-devel for sapi/tcti-device/tcti-socket libs
|
|
|
56375a |
Requires: tpm2-tss-devel%{?_isa} >= 1.4.0-1%{?dist}
|
|
|
56375a |
|
|
|
56375a |
%description devel
|
|
|
56375a |
This package contains headers, static libraries and package config files
|
|
|
56375a |
required to build applications that use tpm2-abrmd.
|
|
|
56375a |
|
|
|
56375a |
%files devel
|
|
|
56375a |
%{_includedir}/tcti/tcti-tabrmd.h
|
|
|
56375a |
%{_libdir}/libtcti-tabrmd.so
|
|
|
56375a |
%{_libdir}/pkgconfig/tcti-tabrmd.pc
|
|
|
56375a |
|
|
|
56375a |
# on package installation
|
|
|
56375a |
%post
|
|
|
56375a |
/sbin/ldconfig
|
|
|
56375a |
%systemd_post tpm2-abrmd.service
|
|
|
56375a |
|
|
|
56375a |
%preun
|
|
|
56375a |
%systemd_preun tpm2-abrmd.service
|
|
|
56375a |
|
|
|
56375a |
%postun
|
|
|
56375a |
/sbin/ldconfig
|
|
|
56375a |
%systemd_postun tpm2-abrmd.service
|
|
|
56375a |
|
|
|
56375a |
%changelog
|
|
|
56375a |
* Wed Mar 25 2019 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-11
|
|
|
56375a |
- Fix Requires to be against tpm2-tss instead of tpm2-tss-devel
|
|
|
56375a |
- Add BuildRequires to specify version tpm2-tss-devel needed
|
|
|
56375a |
- Add Requires to tpm2-abrmd-devel for tpm2-tss-devel
|
|
|
56375a |
resolves: rhbz#1627827
|
|
|
56375a |
|
|
|
56375a |
* Thu Sep 06 2018 Jerry Snitselaar <jsnitsel@redhat,com> - 1.1.0-10
|
|
|
56375a |
- update tpm2-tss-devel requirement to 1.4.0-1
|
|
|
56375a |
resolves: rhbz#1626227
|
|
|
56375a |
|
|
|
56375a |
* Mon Jun 18 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-9
|
|
|
56375a |
- udev rules moved to tpm2-tss package.
|
|
|
56375a |
resolves: rhbz#1592583
|
|
|
56375a |
|
|
|
56375a |
* Thu Dec 14 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-8
|
|
|
56375a |
- Fix package version used by autoconf
|
|
|
56375a |
resolves: rhbz#1492466
|
|
|
56375a |
|
|
|
56375a |
* Wed Oct 18 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-7
|
|
|
56375a |
- tcti-abrmd: Fix null deref
|
|
|
56375a |
resolves: rhbz#1492466
|
|
|
56375a |
|
|
|
56375a |
* Wed Oct 11 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-6
|
|
|
56375a |
- Add scriptlet to add tss user if doesn't exist.
|
|
|
56375a |
resolves: rhbz#1492466
|
|
|
56375a |
|
|
|
56375a |
* Wed Aug 16 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-5
|
|
|
56375a |
- Updated source0 URL to fix rpmlint warnings
|
|
|
56375a |
|
|
|
56375a |
* Tue Aug 15 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
|
|
|
56375a |
- Rename and relocate udev rules file to _udevrulesdir
|
|
|
56375a |
- Update scriptlet to add service name after systemd_postrun
|
|
|
56375a |
|
|
|
56375a |
* Tue Aug 1 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
|
|
|
56375a |
- Use config option with-systemdsystemunitdir to set systemd unit file location
|
|
|
56375a |
|
|
|
56375a |
* Mon Jul 31 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
|
|
|
56375a |
- Removed BuildRequires for gcc
|
|
|
56375a |
- Move tpm2-abrmd systemd service to /usr/lib/systemd/system
|
|
|
56375a |
- Added scriptlet for tpm2-abrmd systemd service
|
|
|
56375a |
- Use autoreconf instead of bootstrap
|
|
|
56375a |
|
|
|
56375a |
* Wed Jul 26 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
|
|
|
56375a |
- Initial packaging
|