65db93
%global selinuxtype targeted
65db93
65db93
Name: tpm2-abrmd
65db93
Version: 2.4.0
65db93
Release: 3%{?dist}
65db93
Summary: A system daemon implementing TPM2 Access Broker and Resource Manager
65db93
65db93
License: BSD
65db93
URL:     https://github.com/tpm2-software/tpm2-abrmd
65db93
Source0: https://github.com/tpm2-software/tpm2-abrmd/releases/download/%{version}/%{name}-%{version}.tar.gz
65db93
65db93
%{?systemd_requires}
65db93
BuildRequires: make
65db93
BuildRequires: systemd
65db93
BuildRequires: libtool
65db93
BuildRequires: autoconf-archive
65db93
BuildRequires: pkgconfig(cmocka)
65db93
BuildRequires: pkgconfig(dbus-1)
65db93
BuildRequires: pkgconfig(gio-unix-2.0)
65db93
BuildRequires: pkgconfig(tss2-mu)
65db93
BuildRequires: pkgconfig(tss2-sys)
65db93
# tpm2-abrmd depends on tpm2-tss-devel for tss2-mu/sys libs
65db93
BuildRequires: tpm2-tss-devel >= 2.4.0
65db93
65db93
# tpm2-abrmd depends on the package that contains its SELinux policy module
65db93
Requires: (%{name}-selinux >= 2.0.0-1%{?dist} if selinux-policy-%{selinuxtype})
65db93
65db93
%description
65db93
tpm2-abrmd is a system daemon implementing the TPM2 access broker (TAB) and
65db93
Resource Manager (RM) spec from the TCG.
65db93
65db93
%package devel
65db93
Summary: Headers, static libraries and package config files of tpm2-abrmd
65db93
Requires: %{name}%{_isa} = %{version}-%{release}
65db93
# tpm2-abrmd-devel depends on tpm2-tss-devel for tss2-mu/sys libs
65db93
Requires: tpm2-tss-devel%{?_isa} >= 2.4.0
65db93
65db93
%description devel
65db93
This package contains headers, static libraries and package config files
65db93
required to build applications that use tpm2-abrmd.
65db93
65db93
65db93
%prep
65db93
%autosetup -p1 -n %{name}-%{version}
65db93
65db93
%build
65db93
%configure --disable-static --disable-silent-rules \
65db93
           --with-systemdsystemunitdir=%{_unitdir} \
65db93
           --with-systemdpresetdir=%{_presetdir}
65db93
%make_build
65db93
65db93
%install
65db93
%make_install
65db93
find %{buildroot}%{_libdir} -type f -name \*.la -delete
65db93
rm -f %{buildroot}/%{_presetdir}/tpm2-abrmd.preset
65db93
65db93
%pre
65db93
getent group tss >/dev/null || groupadd -f -g 59 -r tss
65db93
if ! getent passwd tss >/dev/null ; then
65db93
    if ! getent passwd 59 >/dev/null ; then
65db93
      useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
65db93
    else
65db93
      useradd -r -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
65db93
    fi
65db93
fi
65db93
exit 0
65db93
65db93
%post
65db93
%systemd_post tpm2-abrmd.service
65db93
65db93
%preun
65db93
%systemd_preun tpm2-abrmd.service
65db93
65db93
%postun
65db93
%systemd_postun tpm2-abrmd.service
65db93
65db93
%files
65db93
%license LICENSE
65db93
%doc README.md CHANGELOG.md
65db93
%{_libdir}/libtss2-tcti-tabrmd.so.*
65db93
%{_sbindir}/tpm2-abrmd
65db93
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf
65db93
%{_datarootdir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
65db93
%{_unitdir}/tpm2-abrmd.service
65db93
%{_mandir}/man3/Tss2_Tcti_Tabrmd_Init.3*
65db93
%{_mandir}/man7/tss2-tcti-tabrmd.7*
65db93
%{_mandir}/man8/tpm2-abrmd.8*
65db93
65db93
%files devel
65db93
%{_includedir}/tss2/tss2-tcti-tabrmd.h
65db93
%{_libdir}/libtss2-tcti-tabrmd.so
65db93
%{_libdir}/pkgconfig/tss2-tcti-tabrmd.pc
65db93
65db93
65db93
%changelog
65db93
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.0-3
65db93
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
65db93
  Related: rhbz#1991688
65db93
65db93
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.0-2
65db93
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
65db93
65db93
* Tue Feb 09 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-1
65db93
- Update to 2.4.0
65db93
65db93
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
65db93
65db93
* Sat Aug 29 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.3-1
65db93
- Update to 2.3.3
65db93
65db93
* Wed Aug 05 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.2-3
65db93
- Rebuild for tpm2-tss 3.0.0
65db93
65db93
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
65db93
65db93
* Sat Jul 04 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.2-1
65db93
- Update to 2.3.2 release
65db93
65db93
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
65db93
65db93
* Tue Jan 14 2020 Sun Yunying <yunying.sun@intel.com> - 2.3.1-1
65db93
- Update to 2.3.1 release
65db93
65db93
* Mon Nov 18 2019 Sun Yunying <yunying.sun@intel.com> - 2.3.0-1
65db93
- Update to 2.3.0 release
65db93
- Update dependency to tpm2-tss-devel version
65db93
65db93
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
65db93
65db93
* Thu Jul 18 2019 Sun Yunying <yunying.sun@intel.com> - 2.2.0-1
65db93
- Update to 2.2.0 release
65db93
- Update .gitignore to exclude source tar ball no matter versions
65db93
65db93
* Mon Mar 11 2019 Sun Yunying <yunying.sun@intel.com> - 2.1.1-1
65db93
- Update to 2.1.1 release
65db93
65db93
* Wed Mar 06 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-3
65db93
- Remove obsolete scriptlets
65db93
65db93
* Mon Feb 11 2019 Jerry Snitselaar <jsnitsel@redhat.com> - 2.1.0-2
65db93
- Fix tpm2-abrmd-selinux requires
65db93
65db93
* Mon Feb 11 2019 Sun Yunying <yunying.sun@intel.com> - 2.1.0-1
65db93
- Update to 2.1.0 release
65db93
65db93
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
65db93
65db93
* Fri Jan 4 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.0.3-2
65db93
- Remove tpm2-abrmd preset file
65db93
  Resolves: rhbz#1663124
65db93
65db93
* Wed Nov 7 2018 Sun Yunying <yunying.sun@intel.com> - 2.0.3-1
65db93
- Update to 2.0.3 release
65db93
- Remove gdbus related patch and autoreconf scriptlet as it's included in 2.0.3
65db93
65db93
* Tue Oct 16 2018 Sun Yunying <yunying.sun@intel.com> - 2.0.2-1
65db93
- Update to 2.0.2 release
65db93
- Add patch to fix configure error, also add autoreconf to update configure
65db93
65db93
* Tue Aug 14 2018 Sun Yunying <yunying.sun@intel.com> - 2.0.1-1
65db93
- Update to 2.0.1 release
65db93
- Remove the tcti SONAME patch since it's already included in 2.0.1
65db93
- Update dependency of tpm2-abrmd-selinux to fixed version instead dynamic one
65db93
65db93
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
65db93
65db93
* Wed Jul 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.0.0-1
65db93
- Download the distributed tarball instead of the source code tarball
65db93
- Update URLs to point to the new project location
65db93
- Update to 2.0.0 release
65db93
65db93
* Fri Feb 23 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-12
65db93
- Don't install udev rule for TPM character devices
65db93
65db93
* Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-11
65db93
- Remove ExclusiveArch: x86_64 directive
65db93
65db93
* Thu Feb 15 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-10
65db93
- Remove %%{_isa} from BuildRequires (RHBZ#1545210)
65db93
65db93
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
65db93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
65db93
65db93
* Wed Oct 25 2017 Peter Jones <pjones@redhat.com> - 1.1.0-8
65db93
- Make only tpm2-abrmd-devel have a runtime dep on tpm2-tools-devel
65db93
65db93
* Wed Oct 18 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-7
65db93
- tcti-abrmd: Fix null deref
65db93
65db93
* Fri Oct 13 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-6
65db93
- Add tss user if doesn't currently exist - PR#1 from Jerry Snitselaar
65db93
- Removed source tarball and cleared it from .gitignore
65db93
65db93
* Wed Aug 16 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-5
65db93
- Updated source0 URL to fix rpmlint warnings
65db93
65db93
* Tue Aug 15 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
65db93
- Rename and relocate udev rules file to _udevrulesdir
65db93
- Update scriptlet to add service name after systemd_postrun
65db93
65db93
* Tue Aug 1 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
65db93
- Use config option with-systemdsystemunitdir to set systemd unit file location
65db93
65db93
* Mon Jul 31 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
65db93
- Removed BuildRequires for gcc
65db93
- Move tpm2-abrmd systemd service to /usr/lib/systemd/system
65db93
- Added scriptlet for tpm2-abrmd systemd service
65db93
- Use autoreconf instead of bootstrap
65db93
65db93
* Wed Jul 26 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
65db93
- Initial packaging