tpm-tools/tpm-tools.spec

102 lines
2.5 KiB
RPMSpec

#
# spec file for package tpm-tools (Version 1.3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
BuildRequires: atk-devel expat fontconfig-devel freetype2-devel glib2-devel gtk2-devel libtspi1 openssl-devel pango-devel trousers-devel xorg-x11-devel xorg-x11-libs
Name: tpm-tools
Url: http://trousers.sourceforge.net/
License: IBM Public License
Group: Productivity/Security
AutoReqProv: on
Version: 1.3.1
Release: 2
Summary: Trusted Platform Module (TPM) administration tools
Source0: %name-%version.tar.bz2
Source1: %name-rpmlintrc
#Patch0: %name-%version.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
Trusted Computing is a set of specifications published by the Trusted
Computing Group (TCG). The Trusted Platform Module (TPM) is the
hardware component for Trusted Computing. The tpm-tools package
provides tools for enablement and configuration of the TPM and
associated interfaces. Also look inside the trousers package for more
software for TC.
Authors:
--------
IBM Corp.
%prep
%setup -q
pwd
#%patch0 -p1
#%patch1 -p1
#cp %{S:1} .
%build
CC=gcc
CFLAGS="$RPM_OPT_FLAGS -Wall -pipe -fno-strict-aliasing"
SHARE=/usr/share
DOC=%_defaultdocdir
export CC CFLAGS
rm -f config.guess config.sub ltmain.sh depcomp install-sh missing mkinstalldirs
sh ./bootstrap.sh
./configure \
--prefix=/usr \
--mandir=$SHARE/man \
--infodir=$SHARE/info \
--datadir=$DOC \
--libdir=%_libdir
#make clean
#make distclean
make
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/usr/%_lib/*.la
cp include/*.h $RPM_BUILD_ROOT/usr/include/tpm_tools
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README LICENSE
%{_mandir}/man*/*
/usr/sbin/*
/usr/bin/*
/usr/%{_lib}/*.a
/usr/%{_lib}/*.so
/usr/%{_lib}/*.so.*
/usr/include/tpm_tools
%changelog
* Fri Mar 28 2008 meissner@suse.de
- Imported from buildservice
- ingore rpmlint shared library errors, shared lib
is only used in here.
* Mon Aug 13 2007 skh@suse.de
- initial build service import with version 1.2.5.1
* Thu Nov 10 2005 draht@suse.de
- initial package, version 1.1.0