diff --git a/libtpms-0.8.4.tar.gz b/libtpms-0.8.4.tar.gz new file mode 100644 index 0000000..c7fbf8e --- /dev/null +++ b/libtpms-0.8.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f8b0ed59d52fe22e7245a0d5909e33a72b4d2dac47ee877ea9ff3c307b2ed19 +size 1255255 diff --git a/libtpms.changes b/libtpms.changes index cb1b8be..e787ed7 100644 --- a/libtpms.changes +++ b/libtpms.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Aug 7 15:00:32 UTC 2021 - Callum Farmer + +- Update to version 0.8.4: + * Reset too large size indicators in TPM2B to avoid access + beyond buffer + * Restore original value in buffer if unmarshalled one was + illegal + ------------------------------------------------------------------- Mon Apr 19 07:18:37 UTC 2021 - Gary Ching-Pang Lin diff --git a/libtpms.spec b/libtpms.spec index 50c03b3..c1e7971 100644 --- a/libtpms.spec +++ b/libtpms.spec @@ -18,15 +18,16 @@ %define lname libtpms0 Name: libtpms -Version: 0.8.2 +Version: 0.8.4 Release: 0 Summary: Library providing Trusted Platform Module (TPM) functionality License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: https://github.com/stefanberger/libtpms -Source0: https://github.com/stefanberger/libtpms/archive/v%{version}.tar.gz +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: autoconf BuildRequires: automake +BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: mozilla-nspr-devel @@ -56,26 +57,24 @@ Requires: mozilla-nspr-devel Libtpms header files and documentation. %prep -%setup -q -n libtpms-%{version} +%autosetup %build -./bootstrap.sh +autoreconf -fiv %configure \ --with-tpm2 \ --with-openssl \ --disable-static -make %{?_smp_mflags} - -%check -make %{?_smp_mflags} check +%make_build %install -install -d -m 0755 %{buildroot}%{_libdir} -install -d -m 0755 %{buildroot}%{_includedir}/libtpms -install -d -m 0755 %{buildroot}%{_mandir}/man3 - %make_install +find %{buildroot} -type f -name "*.la" -delete -print +%fdupes -s %{buildroot} + +%check +%make_build check %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig @@ -83,15 +82,12 @@ install -d -m 0755 %{buildroot}%{_mandir}/man3 %files -n %{lname} %doc README CHANGES %license LICENSE -%{_libdir}/%{name}.so.%{version} -%{_libdir}/%{name}.so.0 +%{_libdir}/%{name}.so.* %files devel %{_libdir}/%{name}.so -%{_libdir}/%{name}.la -%dir %{_includedir}/%{name} -%attr(644, root, root) %{_libdir}/pkgconfig/*.pc -%attr(644, root, root) %{_includedir}/%{name}/*.h -%attr(644, root, root) %{_mandir}/man3/* +%{_includedir}/%{name} +%{_libdir}/pkgconfig/*.pc +%{_mandir}/man3/*%{?ext_man} %changelog diff --git a/v0.8.2.tar.gz b/v0.8.2.tar.gz deleted file mode 100644 index 50f80e5..0000000 --- a/v0.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c533017b4eee60d907409ee39ad6f1cd0380c2ceabf583f1749a73ea87e9d3e -size 1253915