File tpm2-openssl.spec of Package tpm2-openssl

Name:		tpm2-openssl
Version:	1.1.1
Release:	1%{?candidate:.%{candidate}}%{?dist}
Summary:	Provider for integration of TPM 2.0 to OpenSSL 3.0

License:	BSD
URL:		https://github.com/tpm2-software/tpm2-openssl
Source0:	https://github.com/tpm2-software/%{name}/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz

BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	pkg-config
BuildRequires:	autoconf automake libtool
BuildRequires:	tpm2-tss-devel
BuildRequires:	openssl-devel >= 3.0.0
BuildRequires:	tpm2-tools >= 5.2

%description
Makes the TPM 2.0 accessible via the standard OpenSSL API and command-line
tools, so one can add TPM support to (almost) any  OpenSSL 3.0 based 
application.

%prep
%autosetup -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}

%build
%configure
%{make_build}

%install
%make_install
[ -f $RPM_BUILD_ROOT%{_libdir}/ossl-modules/tpm2.la ] && rm $RPM_BUILD_ROOT%{_libdir}/ossl-modules/tpm2.la

%files
%doc docs
%license LICENSE
%{_libdir}/ossl-modules/tpm2.so

%changelog
* Tue Mar 28 2023 Adrian Freihofer <adrian.freihofer@siemens.com> 1.1.1-1
- new package built with tito

* Mon Nov 21 2022 Traxtopel <traxtopel@gmail.com> - 1.1.1-1
- Initial build.
openSUSE Build Service is sponsored by