Add conditionals for RC builds
This commit is contained in:
parent
6267a325c8
commit
3276e33ce3
@ -1,8 +1,11 @@
|
||||
%bcond_without rc
|
||||
%if %{with rc}
|
||||
%global candidate rc0
|
||||
%endif
|
||||
|
||||
Name: tpm2-tss
|
||||
Version: 3.2.0
|
||||
Release: 0.2%{?candidate:.%{candidate}}%{?dist}
|
||||
Release: 0.3%{?candidate:.%{candidate}}%{?dist}
|
||||
Summary: TPM2.0 Software Stack
|
||||
|
||||
# The entire source code is under BSD except implementation.h and tpmb.h which
|
||||
@ -15,15 +18,19 @@ Patch0: tpm2-tss-3.0.0-doxygen.patch
|
||||
|
||||
%global udevrules_prefix 60-
|
||||
|
||||
BuildRequires: make
|
||||
%if %{with rc}
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: autoconf-archive
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
%endif
|
||||
BuildRequires: make
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: json-c-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: systemd
|
||||
@ -38,6 +45,10 @@ APIs for applications to access TPM module through kernel TPM drivers.
|
||||
%autosetup -n %{name}-%{version}%{?candidate:-%{candidate}} -p1
|
||||
|
||||
%build
|
||||
%if %{with rc}
|
||||
./bootstrap
|
||||
%endif
|
||||
|
||||
# Use built-in tpm-udev.rules, with specified installation path and prefix.
|
||||
%configure --disable-static --disable-silent-rules \
|
||||
--with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=%{udevrules_prefix} \
|
||||
@ -123,6 +134,9 @@ use tpm2-tss.
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 08 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 3.2.0-0.3.rc0
|
||||
- Add conditionals for RC builds
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-0.2.rc0
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user