2010-01-29 15:34:49 +00:00
|
|
|
%global name trousers
|
|
|
|
%global version 0.3.4
|
|
|
|
%global tarballrev -1
|
|
|
|
%global release 1
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Summary: TCG's Software Stack v1.2
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}%{?dist}
|
|
|
|
License: CPL
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Url: http://trousers.sourceforge.net
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libtool, openssl-devel
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(preun): initscripts
|
|
|
|
Requires(postun): initscripts
|
2007-12-19 16:37:25 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-01-29 15:34:49 +00:00
|
|
|
%package static
|
|
|
|
Summary: TrouSerS TCG Device Driver Library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
2007-12-19 16:37:25 +00:00
|
|
|
|
2010-01-29 15:34:49 +00:00
|
|
|
%description static
|
2007-12-19 16:37:25 +00:00
|
|
|
The TCG Device Driver Library (TDDL) used by the TrouSerS tcsd as the
|
|
|
|
interface to the TPM's device driver. For more information about writing
|
|
|
|
applications to the TDDL interface, see the latest TSS spec at
|
|
|
|
https://www.trustedcomputinggroup.org/specs/TSS.
|
|
|
|
|
2010-01-29 15:34:49 +00:00
|
|
|
%package devel
|
|
|
|
Summary: TrouSerS header files and documentation
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-12-19 16:37:25 +00:00
|
|
|
|
2010-01-29 15:34:49 +00:00
|
|
|
%description devel
|
2007-12-19 16:37:25 +00:00
|
|
|
Header files and man pages for use in creating Trusted Computing enabled
|
|
|
|
applications.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2010-01-29 15:34:49 +00:00
|
|
|
%configure --with-gui=openssl
|
2009-04-27 16:07:23 +00:00
|
|
|
make -k %{?_smp_mflags}
|
2007-12-19 16:37:25 +00:00
|
|
|
|
|
|
|
%install
|
2008-08-01 20:16:11 +00:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2007-12-19 16:37:25 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/tpm
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_initrddir}
|
|
|
|
cp -p dist/fedora/fedora.initrd.tcsd ${RPM_BUILD_ROOT}/%{_initrddir}/tcsd
|
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
|
|
|
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libtspi.la
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%pre
|
2009-05-06 21:55:58 +00:00
|
|
|
getent group tss >/dev/null || groupadd -g 59 -r tss
|
2007-12-19 16:37:25 +00:00
|
|
|
getent passwd tss >/dev/null || \
|
2008-08-13 16:01:39 +00:00
|
|
|
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \
|
2009-05-14 13:53:25 +00:00
|
|
|
-c "Account used by the trousers package to sandbox the tcsd daemon" tss
|
2007-12-19 16:37:25 +00:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/chkconfig --add tcsd
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
2010-01-29 15:34:49 +00:00
|
|
|
/sbin/service tcsd stop > /dev/null 2>&1
|
2007-12-19 16:37:25 +00:00
|
|
|
/sbin/chkconfig --del tcsd
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ $1 -gt 1 ]; then
|
2010-01-29 15:34:49 +00:00
|
|
|
/sbin/service tcsd condrestart > /dev/null 2>&1 || :
|
2007-12-19 16:37:25 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
2010-01-29 15:34:49 +00:00
|
|
|
%doc README LICENSE ChangeLog
|
|
|
|
%{_sbindir}/tcsd
|
2007-12-19 16:37:25 +00:00
|
|
|
%{_libdir}/libtspi.so.?
|
|
|
|
%{_libdir}/libtspi.so.?.?.?
|
2010-01-29 15:34:49 +00:00
|
|
|
%config(noreplace) %attr(0600, tss, tss) %{_sysconfdir}/tcsd.conf
|
|
|
|
%attr(0644, root, root) %{_mandir}/man5/*
|
|
|
|
%attr(0644, root, root) %{_mandir}/man8/*
|
2007-12-19 16:37:25 +00:00
|
|
|
%{_initrddir}/tcsd
|
2010-01-29 15:34:49 +00:00
|
|
|
%attr(0700, tss, tss) %{_localstatedir}/lib/tpm/
|
2007-12-19 16:37:25 +00:00
|
|
|
|
2010-01-29 15:34:49 +00:00
|
|
|
%files devel
|
2007-12-19 16:37:25 +00:00
|
|
|
# The files to be used by developers, 'trousers-devel'
|
|
|
|
%defattr(-, root, root, -)
|
2010-01-29 15:34:49 +00:00
|
|
|
%attr(0755, root, root) %{_libdir}/libtspi.so
|
2007-12-19 16:37:25 +00:00
|
|
|
%{_includedir}/tss/
|
|
|
|
%{_includedir}/trousers/
|
|
|
|
%{_mandir}/man3/Tspi_*
|
|
|
|
|
2010-01-29 15:34:49 +00:00
|
|
|
%files static
|
2008-08-01 20:16:11 +00:00
|
|
|
%defattr(-, root, root, -)
|
2007-12-19 16:37:25 +00:00
|
|
|
# The only static library shipped by trousers, the TDDL
|
|
|
|
%{_libdir}/libtddl.a
|
|
|
|
|
|
|
|
%changelog
|
2010-01-29 15:34:49 +00:00
|
|
|
* Fri Jan 29 2010 Steve Grubb <sgrubb@redhat.com> 0.3.4-1
|
|
|
|
- New upstream bug fix release
|
|
|
|
- Upstream requested the tpm-emulator patch be dropped
|
|
|
|
|
2009-08-21 16:16:42 +00:00
|
|
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.3.1-19
|
|
|
|
- rebuilt with new openssl
|
|
|
|
|
2009-07-27 06:18:09 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-14 13:53:25 +00:00
|
|
|
* Thu May 14 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.3.1-17
|
|
|
|
- Do not overuse macros.
|
|
|
|
- Removed unnecessary file requirements on chkconfig, ldconfig and service,
|
|
|
|
now requiring the initscripts and chkconfig packages.
|
|
|
|
|
2009-05-06 21:55:58 +00:00
|
|
|
* Wed May 06 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.3.1-16
|
|
|
|
- Fix a typo in groupadd causing the %%pre scriptlet to fail (resolves BZ#486155).
|
|
|
|
|
2009-04-27 16:07:23 +00:00
|
|
|
* Mon Apr 27 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.3.1-15
|
|
|
|
- Fix FTBFS: added trousers-0.3.1-gcc44.patch
|
|
|
|
|
2009-02-25 21:56:48 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-18 14:18:02 +00:00
|
|
|
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 0.3.1-13
|
|
|
|
- rebuild with new openssl
|
|
|
|
|
2008-12-16 23:29:59 +00:00
|
|
|
* Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> - 0.3.1-12
|
|
|
|
- Bump release to avoid wrong tag in rawhide
|
|
|
|
|
2008-12-16 23:19:45 +00:00
|
|
|
* Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> - 0.3.1-11
|
|
|
|
- Work around SELinux namespace pollution (#464037)
|
|
|
|
- Use SO_REUSEADDR
|
|
|
|
- Use TPM emulator if it's available and no hardware is
|
|
|
|
|
2008-08-13 16:01:39 +00:00
|
|
|
* Wed Aug 08 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-10
|
|
|
|
- Use the uid/gid pair assigned to trousers from BZ#457593
|
|
|
|
|
2008-08-01 20:16:11 +00:00
|
|
|
* Fri Aug 01 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-9
|
|
|
|
- Incorporated changes from the RHEL package which were done by Steve Grubb
|
|
|
|
|
2008-06-04 04:28:13 +00:00
|
|
|
* Wed Jun 04 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-8
|
|
|
|
- Fix cast issue preventing successful build on ppc64 and x86_64
|
|
|
|
|
2008-06-03 21:31:21 +00:00
|
|
|
* Tue Jun 03 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-7
|
|
|
|
- Fix for BZ #434267 and #440733. Patch authored by Debora Velarde
|
2008-06-03 21:04:37 +00:00
|
|
|
|
2008-02-19 10:17:01 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.1-6
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-12-19 16:37:25 +00:00
|
|
|
* Mon Dec 17 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-5
|
|
|
|
- Updated static rpm's comment line (too long)
|
|
|
|
|
|
|
|
* Thu Dec 13 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-4
|
|
|
|
- Updated specfile for RHBZ#323441 comment #28
|
|
|
|
|
|
|
|
* Wed Dec 12 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-3
|
|
|
|
- Updated specfile for RHBZ#323441 comment #22
|
|
|
|
|
|
|
|
* Wed Nov 28 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-2
|
|
|
|
- Updated to include the include dirs in the devel package;
|
|
|
|
added the no-install-hooks patch
|
|
|
|
|
|
|
|
* Wed Nov 28 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-1
|
|
|
|
- Updated specfile for RHBZ#323441 comment #13
|
|
|
|
|
|
|
|
* Mon Nov 12 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1
|
|
|
|
- Updated specfile for comments in RHBZ#323441
|
|
|
|
|
|
|
|
* Wed Jun 07 2006 Kent Yoder <kyoder@users.sf.net> - 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 <kyoder@users.sf.net> - 0.2.6-1
|
|
|
|
- Initial add of changelog tag for trousers CVS
|