spec for 0.5.1-5
This commit is contained in:
parent
f10ac57101
commit
e4e251d2e2
22
libtpms.spec
22
libtpms.spec
@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
%define name libtpms
|
%define name libtpms
|
||||||
%define version 0.5.1
|
%define version 0.5.1
|
||||||
%define release 4
|
%define release 5
|
||||||
|
|
||||||
# Valid crypto subsystems are 'freebl' and 'openssl'
|
# Valid crypto subsystems are 'freebl' and 'openssl'
|
||||||
%define crypto_subsystem freebl
|
%define crypto_subsystem freebl
|
||||||
|
|
||||||
|
# Valid build types are 'production' or 'debug'
|
||||||
|
%define build_type production
|
||||||
|
|
||||||
Summary: Library providing Trusted Platform Module (TPM) functionality
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
@ -19,7 +22,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|||||||
%if %{crypto_subsystem} == openssl
|
%if %{crypto_subsystem} == openssl
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
%else
|
%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
|
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -54,7 +59,8 @@ Libtpms header files and documentation.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} -f makefile-libtpms all RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
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
|
||||||
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
|
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 \
|
make %{?_smp_mflags} -f makefile-libtpms install \
|
||||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
||||||
DESTDIR="$RPM_BUILD_ROOT" \
|
DESTDIR="$RPM_BUILD_ROOT" \
|
||||||
CRYPTO_SUBSYSTEM=%{crypto_subsystem}
|
CRYPTO_SUBSYSTEM=%{crypto_subsystem} \
|
||||||
|
BUILD_TYPE=%{build_type}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
|
||||||
- small fixes to libtpms makefile
|
- small fixes to libtpms makefile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user