Use a release tarball instead of a source code tarball

The current source tarball isn't a release tarball but a source code
tarball. Which means that a configure script isn't present and the
bootstrap script needs to be executed in order to build the package.

But it messes with the PACKAGE_VERSION variable that's correctly set
in the release tarball. So the tools don't provide a correct version:

$ tpm2_createprimary -v
tool="tpm2_createprimary" version="" tctis="libtss2-tctildr" tcti-default=tcti-device

When using the release tarball instead:

$ tpm2_createprimary -v
tool="tpm2_createprimary" version="4.0-rc2" tctis="libtss2-tctildr" tcti-default=tcti-device

Also, the Source URL isn't correct so tools that rely on it won't work:

$ spectool -g tpm2-tools.spec
...
curl: (22) The requested URL returned error: 404 Not Found

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
Javier Martinez Canillas 2019-09-06 18:02:12 +02:00
parent c324fb7dbf
commit ee872d45df
No known key found for this signature in database
GPG Key ID: C751E590D63F3D69
2 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
SHA512 (tpm2-tools-4.0-rc2.tar.gz) = 39a23153649b9322b7cc3de67fce9ea09ab3907fab17d5e15adbcd92d1c4a2393c12723d2594099707099857834d379b74cdeba4e2f71a35abab414b21f5407f
SHA512 (tpm2-tools-4.0-rc2.tar.gz) = dfdf38f488238f06315493c0a708a9efb104e92e0b149180b13a542fb9fa4ff79199121876a7c0ad64b58f0738d3f11206431fffd1b259a1a50a34f6f34a8250

View File

@ -2,12 +2,12 @@
Name: tpm2-tools
Version: 4.0
Release: 0.3%{?candidate:.%{candidate}}%{?dist}
Release: 0.4%{?candidate:.%{candidate}}%{?dist}
Summary: A TPM2.0 testing tool build upon TPM2.0-TSS
License: BSD
URL: https://github.com/tpm2-software/tpm2-tools
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libtool
@ -32,7 +32,6 @@ tpm2-tools is a batch of tools for tpm2.0. It is based on tpm2-tss.
%autosetup -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}
%build
./bootstrap
%configure --prefix=/usr --disable-static --disable-silent-rules
%make_build
@ -47,6 +46,9 @@ tpm2-tools is a batch of tools for tpm2.0. It is based on tpm2-tss.
%{_mandir}/man1/tpm2_*.1.gz
%changelog
* Fri Sep 6 2019 Javier Martinez Canillas <javierm@redhat.com> 4.0-0.4-rc2
- Use a release tarball instead of a source code tarball
* Fri Sep 6 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.3-rc2
- Update to 4.0 RC2