File trousers.spec of Package trousers
#
# spec file for package trousers (Version 0.3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
BuildRequires: gtk2-devel openssl-devel pkgconfig
Name: trousers
Url: http://trousers.sourceforge.net/
License: Other uncritical OpenSource License
Group: Productivity/Security
AutoReqProv: on
Version: 0.3.1
Release: 6
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
Source0: %name-%version.tar.bz2
Source1: tcsd.init
Patch0: %name-0.2.9.1.diff
Patch1: %name-fixes.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq pwdutils
%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
License: Other uncritical OpenSource License
Group: Development/Libraries/C and C++
AutoReqProv: on
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
Requires: trousers = %version libtspi1 = %version
Requires: libopenssl-devel glibc-devel
%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
License: Other uncritical OpenSource License
Group: Productivity/Security
AutoReqProv: on
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
Requires: trousers
%description -n libtspi1
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
%prep
%setup -q
%patch0 -p1
%patch1
cp %{S:1} .
%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
mkdir $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 || :
%postun
%insserv_cleanup
%preun
%stop_on_removal
%post -n libtspi1 -p /sbin/ldconfig
%postun -n libtspi1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) %attr(600,tss,tss) /etc/tcsd.conf
%doc README AUTHORS ChangeLog LICENSE NICETOHAVES TODO doc/*
%{_mandir}/man5/*
%{_mandir}/man8/*
/var/lib/tpm
/usr/sbin/tcsd
/usr/sbin/rctcsd
/etc/init.d/tcsd
%files devel
%defattr(-,root,root)
%_includedir/trousers
%_includedir/tss
%{_mandir}/man3/*
/usr/%{_lib}/*a
/usr/%{_lib}/*.so
%files -n libtspi1
%defattr(-,root,root)
/usr/%{_lib}/*.so.*
%changelog
* Tue Sep 02 2008 meissner@suse.de
- fixed 64bit build issue
* Fri Aug 22 2008 meissner@suse.de
- upgraded to 0.3.1
- TPM 1.2 support throughout the code, see ChangeLog
- lots of new features
- lots of bugfixes
- dropped secondary TPM support patches. is either already
upstream (differently), or will be.
* Tue Apr 15 2008 ro@suse.de
- added baselibs.conf file for multilib support
* Tue Apr 15 2008 meissner@suse.de
- fixed glibc 2.8 build issues
* Fri Mar 28 2008 meissner@suse.de
- merged from buildservice
- lots of build cleanups for rpmlint warnings
* Thu Nov 29 2007 ramunno@polito.it
- configured to remove dependencies from GTK
* Mon Nov 26 2007 draht@suse.de
- manual mutual dependencies added: libtspi1 <-> trousers
* Mon Nov 26 2007 draht@suse.de
- system.data.*auth files added to /var/lib/tpm/. Note: tcsd expects
/var/lib/tpm/system.data . RTFM...
* Mon Nov 26 2007 draht@suse.de
- init file mode'd 755 in %%install.
* Thu Oct 25 2007 skh@suse.de
- added trousers_0.2.9-tpm_1.2_dual_v20070206 and its documentation
* Mon Aug 13 2007 skh@suse.de
- initial build service import with version 0.2.9.1
- split off package libtspi1 to conform to shared library packaging
policy
* 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.