File trousers.spec of Package trousers
#
# spec file for package trousers (Version 0.2.3)
#
# Copyright (c) 2006 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: XFree86-devel XFree86-libs atk atk-devel expat fontconfig fontconfig-devel freetype2 freetype2-devel glib2 glib2-devel gtk2 gtk2-devel openssl-devel pango pango-devel pkgconfig
BuildRequires: pkgconfig gtk2-devel openssl-devel
Name: trousers
URL: http://trousers.sourceforge.net/
License: Other License(s), see package, Other uncritical OpenSource License
Group: Productivity/Security
Autoreqprov: on
Version: 0.2.9.1
Release: 0
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
Source0: %name-%version.tar.bz2
Source1: tcsd.init
Source2: trousers_0.2.9-tpm_1.2_dual_v20070206_changelog.txt
Source3: trousers_0.2.9-tpm_1.2_dual_v20070206_tpm1.2-readme.txt
Patch0: %name-%version.diff
Patch1: trousers_0.2.9-tpm_1.2_dual_v20070206.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq pwdutils
Requires: libtspi1
%description
The trousers package provides a TSS implementation through the help of
a user-space daemon, the tcsd, and a library Trousers aims to be
compliant to the 1.1b and 1.2 TSS specifications as available from the
Trusted Computing website http://www.trustedcomputinggroup.org/.
The package needs the /dev/tpm device file to be present on your
system. It is a character device file major 10 minor 224, 0600 tss:tss.
Authors:
--------
Development sponsored by IBM
Ryan Catherman
Seiji Munetoh
Taiga Nakamura
Kent Yoder <shpedoikal@gmail.com>
Megan Schneider
Kathy Robertson
%package devel
Group: Productivity/Security
Autoreqprov: on
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
%description devel
The trousers package provides a TSS implementation through the help of
a user-space daemon, the tcsd, and a library Trousers aims to be
compliant to the 1.1b and 1.2 TSS specifications as available from the
Trusted Computing website http://www.trustedcomputinggroup.org/.
The package needs the /dev/tpm device file to be present on your
system. It is a character device file major 10 minor 224, 0600 tss:tss.
Authors:
--------
Development sponsored by IBM
Ryan Catherman
Seiji Munetoh
Taiga Nakamura
Kent Yoder <shpedoikal@gmail.com>
Megan Schneider
Kathy Robertson
%package -n libtspi1
Group: Productivity/Security
Autoreqprov: on
Summary: TSS (TCG Software Stack) library for TPM chip
Requires: trousers
%description -n libtspi1
The trousers library
%prep
%setup
%patch0 -p1
%patch1 -p0
cp %{S:1} %{S:2} %{S:3} .
%build
CC=gcc
CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
SHARE=/usr/share
DOC=%_defaultdocdir
export CC CFLAGS
%{?suse_update_config:%{suse_update_config -f}}
./configure \
--prefix=/usr \
--mandir=$SHARE/man \
--infodir=$SHARE/info \
--datadir=$DOC \
--libdir=%_libdir \
--with-gui=none
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/var/lib/tpm
mkdir -p $RPM_BUILD_ROOT/etc/init.d
cp -p tcsd.init $RPM_BUILD_ROOT/etc/init.d/tcsd
chmod 755 $RPM_BUILD_ROOT/etc/init.d/tcsd
ln -s /etc/init.d/tcsd $RPM_BUILD_ROOT/usr/sbin/rctcsd
cp -a dist/system.data* $RPM_BUILD_ROOT/var/lib/tpm
%clean
rm -rf $RPM_BUILD_ROOT
%pre
/usr/sbin/groupadd -g 98 tss 2> /dev/null || :
/usr/sbin/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" -d /var/lib/tpm tss 2> /dev/null || :
%files
%defattr(-,root,root)
%config(noreplace) %attr(600,tss,tss) /etc/tcsd.conf
%doc README AUTHORS ChangeLog LICENSE NICETOHAVES TODO doc/*
%doc trousers_0.2.9-tpm_1.2_dual_v20070206_changelog.txt
%doc trousers_0.2.9-tpm_1.2_dual_v20070206_tpm1.2-readme.txt
%{_mandir}/man*/*
/var/lib/tpm
/usr/sbin/tcsd
/usr/sbin/rctcsd
/etc/init.d/tcsd
%files devel
%defattr(-,root,root)
%_includedir/trousers
%_includedir/tss
/usr/%{_lib}/*a
%files -n libtspi1
%defattr(-,root,root)
/usr/%{_lib}/*.so*
%changelog -n trousers
* Wed Jan 11 2006 - draht@suse.de
- #137913: Fix config file permissions and ownership to 0600 tss.tss
* Wed Nov 09 2005 - draht@suse.de
- file list changes, split into trousers and -devel.
* Wed Nov 02 2005 - draht@suse.de
- initial build of the package.