# RPM specfile for the trousers project on Fedora %define name trousers %define version 0.3.1 %define release 1cvs Name: %{name} Summary: Implementation of the TCG's Software Stack v1.1 Specification Version: %{version} Release: %{release} License: CPL Group: Development/Libraries Source: %{name}-%{version}.tar.gz Url: http://www.sf.net/projects/trousers BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libtool, gtk2-devel, openssl-devel Requires: gtk+ >= 2.0, openssl %description TrouSerS is an implementation of the Trusted Computing Group's Software Stack (TSS) specification. You can use TrouSerS to write applications that make use of your 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 devel Summary: TrouSerS header files and documentation Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Header files and man pages for use in creating Trusted Computing enabled applications. %prep %setup %build autoreconf make %{?_smp_mflags} %clean [ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}; %post chkconfig --add tcsd /sbin/ldconfig %post devel -p /sbin/ldconfig %install # This line keeps build machines from being affected [ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}; mkdir -p ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}/%{_initrddir} cp dist/fedora/fedora.initrd.tcsd ${RPM_BUILD_ROOT}/%{_initrddir}/tcsd make install DESTDIR=${RPM_BUILD_ROOT} rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libtspi.la %preun %{_initrddir}/tcsd stop chkconfig --del tcsd %postun -p /sbin/ldconfig %postun devel -p /sbin/ldconfig %files %doc README AUTHORS LICENSE %defattr(755, root, root) %attr(755, tss, tss) %{_sbindir}/tcsd %{_libdir}/libtspi.so.? %{_libdir}/libtspi.so.?.?.? %config(noreplace) %attr(600, tss, tss) %{_sysconfdir}/tcsd.conf %attr(644, root, root) %{_mandir}/man5/* %attr(644, root, root) %{_mandir}/man8/* %{_initrddir}/tcsd # The files to be used by developers, 'trousers-devel' %files devel %defattr(755, root, root) %{_libdir}/libtspi.so %attr(644, root, root) %{_libdir}/libtddl.a %attr(644, root, root) %{_includedir}/tss/*.h %attr(644, root, root) %{_includedir}/trousers/*.h %attr(644, root, root) %{_mandir}/man3/Tspi_* %changelog * Mon Oct 1 2007 Kent Yoder - 0.3.1cvs - Updated build to call autoreconf, changed Group name - Changed libtddl.a to mode 644 * Wed Jun 07 2006 Kent Yoder - 0.2.6-1 - Updated build section to use smp_mflags - Removed .la file from installed dest and %files section * Tue Jun 06 2006 Kent Yoder - 0.2.6-1 - Initial add of changelog tag for trousers CVS