2221ec5
%global selinuxtype targeted
f3cbc8b
%global with_tests 1
2221ec5
b6c8a33
Name: tpm2-abrmd
efecd6c
Version: 3.0.0
d261c56
Release: 5%{?dist}
b6c8a33
Summary: A system daemon implementing TPM2 Access Broker and Resource Manager
b6c8a33
4c4daed
License: BSD-2-Clause
b55c3c1
URL:     https://github.com/tpm2-software/tpm2-abrmd
b55c3c1
Source0: https://github.com/tpm2-software/tpm2-abrmd/releases/download/%{version}/%{name}-%{version}.tar.gz
b55c3c1
b6c8a33
%{?systemd_requires}
c47c136
BuildRequires: make
b6c8a33
BuildRequires: systemd
b6c8a33
BuildRequires: libtool
b6c8a33
BuildRequires: autoconf-archive
b6c8a33
BuildRequires: pkgconfig(dbus-1)
b6c8a33
BuildRequires: pkgconfig(gio-unix-2.0)
b55c3c1
BuildRequires: pkgconfig(tss2-mu)
b55c3c1
BuildRequires: pkgconfig(tss2-sys)
b55c3c1
# tpm2-abrmd depends on tpm2-tss-devel for tss2-mu/sys libs
4521ea5
BuildRequires: tpm2-tss-devel >= 2.4.0
f3cbc8b
%if 0%{?with_tests}
f3cbc8b
BuildRequires: pkgconfig(cmocka)
f3cbc8b
%endif
b55c3c1
b55c3c1
# tpm2-abrmd depends on the package that contains its SELinux policy module
2221ec5
Requires: (%{name}-selinux >= 2.0.0-1%{?dist} if selinux-policy-%{selinuxtype})
3e0e219
Requires(pre): tpm2-tss >= 2.4.0
b6c8a33
b6c8a33
%description
b6c8a33
tpm2-abrmd is a system daemon implementing the TPM2 access broker (TAB) and
b6c8a33
Resource Manager (RM) spec from the TCG.
b6c8a33
4521ea5
%package devel
4521ea5
Summary: Headers, static libraries and package config files of tpm2-abrmd
4521ea5
Requires: %{name}%{_isa} = %{version}-%{release}
4521ea5
# tpm2-abrmd-devel depends on tpm2-tss-devel for tss2-mu/sys libs
4521ea5
Requires: tpm2-tss-devel%{?_isa} >= 2.4.0
4521ea5
4521ea5
%description devel
4521ea5
This package contains headers, static libraries and package config files
4521ea5
required to build applications that use tpm2-abrmd.
4521ea5
4521ea5
b6c8a33
%prep
32e3d5e
%autosetup -p1 -n %{name}-%{version}
b6c8a33
b6c8a33
%build
b6c8a33
%configure --disable-static --disable-silent-rules \
b6c8a33
           --with-systemdsystemunitdir=%{_unitdir} \
f3cbc8b
           --with-systemdpresetdir=%{_presetdir} \
f3cbc8b
           --with-dbuspolicydir=%{_datarootdir}/dbus-1/system.d/
f3cbc8b
b6c8a33
%make_build
b6c8a33
b6c8a33
%install
b6c8a33
%make_install
b6c8a33
find %{buildroot}%{_libdir} -type f -name \*.la -delete
05549de
rm -f %{buildroot}/%{_presetdir}/tpm2-abrmd.preset
b6c8a33
f3cbc8b
%if 0%{?with_tests}
f3cbc8b
%check
f3cbc8b
make check
f3cbc8b
%endif
f3cbc8b
4521ea5
%post
4521ea5
%systemd_post tpm2-abrmd.service
4521ea5
4521ea5
%preun
4521ea5
%systemd_preun tpm2-abrmd.service
4521ea5
4521ea5
%postun
4521ea5
%systemd_postun tpm2-abrmd.service
4521ea5
b6c8a33
%files
b6c8a33
%license LICENSE
4521ea5
%doc README.md CHANGELOG.md
b55c3c1
%{_libdir}/libtss2-tcti-tabrmd.so.*
b6c8a33
%{_sbindir}/tpm2-abrmd
f3cbc8b
%{_datarootdir}/dbus-1/system.d/tpm2-abrmd.conf
b55c3c1
%{_datarootdir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
b6c8a33
%{_unitdir}/tpm2-abrmd.service
46b714b
%{_mandir}/man3/Tss2_Tcti_Tabrmd_Init.3*
46b714b
%{_mandir}/man7/tss2-tcti-tabrmd.7*
46b714b
%{_mandir}/man8/tpm2-abrmd.8*
b6c8a33
b6c8a33
%files devel
b55c3c1
%{_includedir}/tss2/tss2-tcti-tabrmd.h
b55c3c1
%{_libdir}/libtss2-tcti-tabrmd.so
b55c3c1
%{_libdir}/pkgconfig/tss2-tcti-tabrmd.pc
b6c8a33
b6c8a33
b6c8a33
%changelog
d261c56
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
d261c56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d261c56
4c4daed
* Tue Sep 26 2023 Štěpán Horáček <shoracek@redhat.com> - 3.0.0-4
4c4daed
- Migrate license to SPDX
4c4daed
90fdc09
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
90fdc09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
90fdc09
66c3134
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
66c3134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
66c3134
efecd6c
* Wed Dec 21 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.0-1
efecd6c
- Update to 3.0.0
efecd6c
b38d529
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
b38d529
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b38d529
95ee566
* Thu Mar 17 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.1-1
95ee566
- Update to 2.4.1
95ee566
6869261
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-5
6869261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
6869261
91c7bd5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
91c7bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
91c7bd5
3e0e219
* Sat Jun 12 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-3
3e0e219
- The tpm2-tss creates the tss user
3e0e219
f3cbc8b
* Sat Jun 12 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-2
f3cbc8b
- Fix DBus policy location (rhbz #1955150), enable tests
f3cbc8b
4521ea5
* Tue Feb 09 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-1
4521ea5
- Update to 2.4.0
4521ea5
b280aea
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
b280aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b280aea
e4b460b
* Sat Aug 29 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.3-1
e4b460b
- Update to 2.3.3
e4b460b
a160982
* Wed Aug 05 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.2-3
a160982
- Rebuild for tpm2-tss 3.0.0
a160982
91c019e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
91c019e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
91c019e
c9d9bd7
* Sat Jul 04 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.2-1
c9d9bd7
- Update to 2.3.2 release
c9d9bd7
6c36fc7
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
6c36fc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6c36fc7
a667fbb
* Tue Jan 14 2020 Sun Yunying <yunying.sun@intel.com> - 2.3.1-1
a667fbb
- Update to 2.3.1 release
a667fbb
2486519
* Mon Nov 18 2019 Sun Yunying <yunying.sun@intel.com> - 2.3.0-1
2486519
- Update to 2.3.0 release
2486519
- Update dependency to tpm2-tss-devel version
2486519
e39d00e
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
e39d00e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e39d00e
04f7f74
* Thu Jul 18 2019 Sun Yunying <yunying.sun@intel.com> - 2.2.0-1
04f7f74
- Update to 2.2.0 release
04f7f74
- Update .gitignore to exclude source tar ball no matter versions
04f7f74
19deb5c
* Mon Mar 11 2019 Sun Yunying <yunying.sun@intel.com> - 2.1.1-1
19deb5c
- Update to 2.1.1 release
19deb5c
46b714b
* Wed Mar 06 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-3
46b714b
- Remove obsolete scriptlets
46b714b
2221ec5
* Mon Feb 11 2019 Jerry Snitselaar <jsnitsel@redhat.com> - 2.1.0-2
2221ec5
- Fix tpm2-abrmd-selinux requires
2221ec5
9f243f2
* Mon Feb 11 2019 Sun Yunying <yunying.sun@intel.com> - 2.1.0-1
9f243f2
- Update to 2.1.0 release
9f243f2
971ade8
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
971ade8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
971ade8
05549de
* Fri Jan 4 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.0.3-2
05549de
- Remove tpm2-abrmd preset file
05549de
  Resolves: rhbz#1663124
05549de
59a2c96
* Wed Nov 7 2018 Sun Yunying <yunying.sun@intel.com> - 2.0.3-1
59a2c96
- Update to 2.0.3 release
59a2c96
- Remove gdbus related patch and autoreconf scriptlet as it's included in 2.0.3
59a2c96
8f49718
* Tue Oct 16 2018 Sun Yunying <yunying.sun@intel.com> - 2.0.2-1
8f49718
- Update to 2.0.2 release
8f49718
- Add patch to fix configure error, also add autoreconf to update configure
8f49718
666cffc
* Tue Aug 14 2018 Sun Yunying <yunying.sun@intel.com> - 2.0.1-1
666cffc
- Update to 2.0.1 release
666cffc
- Remove the tcti SONAME patch since it's already included in 2.0.1
666cffc
- Update dependency of tpm2-abrmd-selinux to fixed version instead dynamic one
666cffc
758bdc1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
758bdc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
758bdc1
b55c3c1
* Wed Jul 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.0.0-1
b55c3c1
- Download the distributed tarball instead of the source code tarball
b55c3c1
- Update URLs to point to the new project location
b55c3c1
- Update to 2.0.0 release
b55c3c1
6c403a3
* Fri Feb 23 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-12
6c403a3
- Don't install udev rule for TPM character devices
6c403a3
23c5e27
* Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-11
23c5e27
- Remove ExclusiveArch: x86_64 directive
23c5e27
298beb3
* Thu Feb 15 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-10
ed4ecb5
- Remove %%{_isa} from BuildRequires (RHBZ#1545210)
298beb3
2b1578a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
2b1578a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2b1578a
da9b598
* Wed Oct 25 2017 Peter Jones <pjones@redhat.com> - 1.1.0-8
da9b598
- Make only tpm2-abrmd-devel have a runtime dep on tpm2-tools-devel
da9b598
32e3d5e
* Wed Oct 18 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-7
32e3d5e
- tcti-abrmd: Fix null deref
32e3d5e
47d85b1
* Fri Oct 13 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-6
47d85b1
- Add tss user if doesn't currently exist - PR#1 from Jerry Snitselaar
47d85b1
- Removed source tarball and cleared it from .gitignore
47d85b1
b6c8a33
* Wed Aug 16 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-5
b6c8a33
- Updated source0 URL to fix rpmlint warnings
b6c8a33
b6c8a33
* Tue Aug 15 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
b6c8a33
- Rename and relocate udev rules file to _udevrulesdir
b6c8a33
- Update scriptlet to add service name after systemd_postrun
b6c8a33
b6c8a33
* Tue Aug 1 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
b6c8a33
- Use config option with-systemdsystemunitdir to set systemd unit file location
b6c8a33
b6c8a33
* Mon Jul 31 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
b6c8a33
- Removed BuildRequires for gcc
b6c8a33
- Move tpm2-abrmd systemd service to /usr/lib/systemd/system
b6c8a33
- Added scriptlet for tpm2-abrmd systemd service
b6c8a33
- Use autoreconf instead of bootstrap
b6c8a33
b6c8a33
* Wed Jul 26 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
b6c8a33
- Initial packaging