diff --git a/README.md b/README.md index b21dfcd..d8e46e0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libtpms +The libtpms library provides software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0). + diff --git a/libtpms.spec b/libtpms.spec new file mode 100644 index 0000000..0bea0f1 --- /dev/null +++ b/libtpms.spec @@ -0,0 +1,66 @@ +Name: libtpms +Version: 0.9.6 +Release: 1mamba +Summary: Library providing software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0) +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/stefanberger/libtpms +Source: https://github.com/stefanberger/libtpms.git/v%{version}/libtpms-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END + +%description +The libtpms library provides software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0). + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +./autogen.sh + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libtpms.so.* +%doc CREDITS LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libtpms +%{_includedir}/libtpms/* +%{_libdir}/libtpms.a +%{_libdir}/libtpms.so +%{_libdir}/pkgconfig/libtpms.pc +%{_mandir}/man3/TPM*.3* +%doc CHANGES README + +%changelog +* Wed Aug 30 2023 Silvan Calarco 0.9.6-1mamba +- package created using the webbuild interface