spec for 0.5.1-5

This commit is contained in:
root 2011-04-13 12:39:42 -04:00
parent f10ac57101
commit e4e251d2e2

View File

@ -2,11 +2,14 @@
%define name libtpms
%define version 0.5.1
%define release 4
%define release 5
# Valid crypto subsystems are 'freebl' and 'openssl'
%define crypto_subsystem freebl
# Valid build types are 'production' or 'debug'
%define build_type production
Summary: Library providing Trusted Platform Module (TPM) functionality
Name: %{name}
Version: %{version}
@ -19,7 +22,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%if %{crypto_subsystem} == openssl
BuildRequires: openssl-devel
%else
BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2, nss-softokn-devel >= 3.12.9-2, gmp-devel
BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
%endif
@ -54,7 +59,8 @@ Libtpms header files and documentation.
%build
make %{?_smp_mflags} -f makefile-libtpms all RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
CRYPTO_SUBSYSTEM=%{crypto_subsystem}
CRYPTO_SUBSYSTEM=%{crypto_subsystem} \
BUILD_TYPE=%{build_type}
%install
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
@ -64,13 +70,21 @@ install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3
make %{?_smp_mflags} -f makefile-libtpms install \
RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
DESTDIR="$RPM_BUILD_ROOT" \
CRYPTO_SUBSYSTEM=%{crypto_subsystem}
CRYPTO_SUBSYSTEM=%{crypto_subsystem} \
BUILD_TYPE=%{build_type}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Wed Apr 13 2011 Stefan Berger - 0.5.1-5
- adding BuildRequires for nss-softokn-freebl-static
- several libtpms-internal changes around state serialization and
deserialization
- fixes to libtpms makefile (makefile-libtpms)
- adding build_type to generate a debug or production build
* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
- small fixes to libtpms makefile