tpm2-tss/tpm2-tss.spec

146 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: tpm2-tss
Version: 4.0.1
Release: 1mamba
Summary: OSS implementation of the TCG TPM2 Software Stack (TSS2)
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://tpm2-software.github.io
Source: https://github.com/tpm2-software/tpm2-tss.git/%{version}/tpm2-tss-%{version}.tar.bz2
Patch0: tpm2-tss-3.0.3-autoconf-2.70.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcurl-devel
BuildRequires: libjson-c-devel
BuildRequires: libopenssl-devel
BuildRequires: libuuid-devel
## AUTOBUILDREQ-END
BuildRequires: libacl-tools
BuildRequires: uthash-devel
BuildRequires: libcmocka-devel
Requires: libtss2 = %{?epoch:%epoch:}%{version}-%{release}
%description
OSS implementation of the TCG TPM2 Software Stack (TSS2).
%package -n libtss2
Group: System/Libraries
Summary: OSS implementation of the TCG TPM2 Software Stack (TSS2)
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n libtss2
OSS implementation of the TCG TPM2 Software Stack (TSS2).
This package contains shared libraries for %{name}.
%package -n libtss2-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libtss2 = %{?epoch:%epoch:}%{version}-%{release}
%description -n libtss2-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%patch0 -p1
echo %{VERSION} > VERSION
sed -i "s|^git describe|#git describe|" bootstrap
./bootstrap
%build
export PATH=/usr/sbin:$PATH
%configure \
--with-udevrulesdir=%{_udevrulesdir} \
--with-runstatedir=/run \
--with-tmpfilesdir=%{_tmpfilesdir} \
--with-sysusersdir=%{_sysusersdir} \
--with-udevrulesprefix=60- \
--enable-unit
# --enable-integration
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%sysusers_create tpm2-tss
%tmpfiles_create tpm2-tss-fapi
:
%post -n libtss2 -p /sbin/ldconfig
%postun -n libtss2 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/tpm2-tss
%{_sysconfdir}/tpm2-tss/fapi-config.json
%{_sysconfdir}/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json
%{_sysconfdir}/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json
%{_tmpfilesdir}/tpm2-tss-fapi.conf
%{_sysusersdir}/tpm2-tss.conf
%{_udevrulesdir}/60-tpm-udev.rules
%{_mandir}/man5/fapi-config.5*
%{_mandir}/man5/fapi-profile.5*
%files -n libtss2
%defattr(-,root,root)
%{_libdir}/libtss2-*.so.*
%doc LICENSE
%files -n libtss2-devel
%defattr(-,root,root)
%dir %{_includedir}/tss2
%{_includedir}/tss2/tss2_*.h
%{_libdir}/libtss2-*.a
%{_libdir}/libtss2-*.so
%{_libdir}/pkgconfig/tss2-*.pc
%{_mandir}/man3/ESYS_*.3*
%{_mandir}/man3/Esys_*.3*
%{_mandir}/man3/FapiTestgroup.3*
%{_mandir}/man3/Fapi_*.3*
%{_mandir}/man3/Tss2_*.3*
%{_mandir}/man7/tss2-*.7*
%doc README.md
%changelog
* Mon Jan 30 2023 Automatic Build System <autodist@mambasoft.it> 4.0.1-1mamba
- automatic version update by autodist
* Sat Feb 19 2022 Automatic Build System <autodist@mambasoft.it> 3.2.0-1mamba
- automatic version update by autodist
* Tue May 25 2021 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
- automatic version update by autodist
* Wed Apr 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.3-2mamba
- reconfigure with correct system paths
* Wed Nov 25 2020 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
- automatic version update by autodist
* Fri Nov 20 2020 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Thu Sep 24 2020 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
- automatic version update by autodist
* Sat Aug 22 2020 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
- automatic version update by autodist
* Wed May 13 2020 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
- automatic version update by autodist
* Wed Apr 15 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
- package created using the webbuild interface