Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > 3847f7125792af8b43017f0bdc8b81d8 > files > 3

tpm-tools-1.3.3-2mdv2010.1.src.rpm

%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define srcversion 1.3.3-2

Summary:	Management tools for the TPM hardware
Name:		tpm-tools
Version:	1.3.3
Release:	%mkrel 2
Group:		System/Servers
License:	CPL
URL:		http://www.sf.net/projects/trousers
Source0:	http://downloads.sourceforge.net/trousers/%{name}-%{srcversion}.tar.gz
Patch0:		tpm-tools-linkage_fix.diff
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	trousers-devel
BuildRequires:	opencryptoki-devel
BuildRequires:	openssl-devel
Requires:       trousers
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
tpm-tools is a group of tools to manage and utilize the Trusted Computing
Group's TPM hardware. TPM hardware can create, store and use RSA keys
securely (without ever being exposed in memory), verify a platform's
software state using cryptographic hashes and more.

%package -n	%{libname}
Summary:	Implementation of the TCG's Software Stack v1.1 Specification
Group:          System/Libraries

%description -n	%{libname}
tpm-tools is a group of tools to manage and utilize the Trusted Computing
Group's TPM hardware. TPM hardware can create, store and use RSA keys
securely (without ever being exposed in memory), verify a platform's
software state using cryptographic hashes and more.

%package -n	%{develname}
Summary:	Files to use the library routines supplied with tpm-tools
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}

%description -n	%{develname}
tpm-tools-devel is a package that contains the libraries and headers
necessary for developing tpm-tools applications.

%package	pkcs11
Summary:	Data management tools that use a PKCS#11 interface to the TPM
Group:		System/Servers
Requires:	%{name} = %{version}
Requires:	opencryptoki >= 2.2.4

%description	pkcs11
tpm-tools-pkcs11 is a group of tools that uses the TPM PKCS#11 token
developed in the opencryptoki project.  All data contained in the
PKCS#11 data store is protected by the TPM (keys, certificates, etc.).
You can import keys and certificates, list out the objects in the data
store, and protect data.

%prep
%setup -q
%patch0 -p0
sed -i -e "s/-Wall -Werror//" configure*

%build
rm -rf autom4te.cache 
autoreconf --force --install

%configure2_5x \
    --disable-rpath

%make

%install
rm -rf %{buildroot}

%makeinstall_std

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/tpm_*
%attr(755,root,root) %{_sbindir}/tpm_*
%{_mandir}/man1/tpm_*
%{_mandir}/man8/tpm_*

%files -n %{libname}
%defattr(-,root,root)
%doc LICENSE README
%{_libdir}/*.so.%{major}*

%files pkcs11
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/tpmtoken_*
%{_mandir}/man1/tpmtoken_*

%files -n %{develname}
%defattr(-,root,root,-)
%dir %{_includedir}/tpm_tools
%{_includedir}/tpm_tools/*.h
%{_libdir}/*.so
%{_libdir}/*.la
%{_mandir}/man3/tpmUnseal*


%changelog
* Mon Apr 12 2010 Funda Wang <fwang@mandriva.org> 1.3.3-2mdv2010.1
+ Revision: 533636
- rebuild

* Mon Aug 17 2009 Frederik Himpe <fhimpe@mandriva.org> 1.3.3-1mdv2010.0
+ Revision: 417377
- Update to new version 1.3.3-2
- Remove -Wall -Werror CFLAGS, because it does not build
  with these

* Tue Nov 11 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.1-2mdv2009.1
+ Revision: 302192
- rebuilt against new libxcb

* Sun Sep 07 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.1-1mdv2009.0
+ Revision: 282296
- check %%major
- 1.3.1
- fix linkage (P0)

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue Sep 18 2007 Oden Eriksson <oeriksson@mandriva.com> 1.2.5.1-1mdv2008.1
+ Revision: 89598
- Import tpm-tools



* Tue Sep 18 2007 Oden Eriksson <oeriksson@mandriva.com> 1.2.5.1-1mdv2008.0
- initial Mandriva package