|
|
0e3081 |
Name: trousers
|
|
|
0e3081 |
Summary: TCG's Software Stack v1.2
|
|
|
0e3081 |
Version: 0.3.14
|
|
|
0e3081 |
Release: 2%{?dist}
|
|
|
0e3081 |
License: BSD
|
|
|
0e3081 |
Group: System Environment/Libraries
|
|
|
0e3081 |
Url: http://trousers.sourceforge.net
|
|
|
0e3081 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
0e3081 |
Source1: tcsd.service
|
|
|
0e3081 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
0e3081 |
BuildRequires: libtool, openssl-devel
|
|
|
0e3081 |
BuildRequires: systemd-units
|
|
|
0e3081 |
Requires(pre): shadow-utils
|
|
|
0e3081 |
Requires(post): systemd-units
|
|
|
0e3081 |
Requires(preun): systemd-units
|
|
|
0e3081 |
Requires(postun): systemd-units
|
|
|
0e3081 |
# submitted upstream https://sourceforge.net/p/trousers/mailman/message/35766729/
|
|
|
0e3081 |
Patch0001: unlock-in-err-path.patch
|
|
|
0e3081 |
|
|
|
0e3081 |
%description
|
|
|
0e3081 |
TrouSerS is an implementation of the Trusted Computing Group's Software Stack
|
|
|
0e3081 |
(TSS) specification. You can use TrouSerS to write applications that make use
|
|
|
0e3081 |
of your TPM hardware. TPM hardware can create, store and use RSA keys
|
|
|
0e3081 |
securely (without ever being exposed in memory), verify a platform's software
|
|
|
0e3081 |
state using cryptographic hashes and more.
|
|
|
0e3081 |
|
|
|
0e3081 |
%package static
|
|
|
0e3081 |
Summary: TrouSerS TCG Device Driver Library
|
|
|
0e3081 |
Group: Development/Libraries
|
|
|
0e3081 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
0e3081 |
|
|
|
0e3081 |
%description static
|
|
|
0e3081 |
The TCG Device Driver Library (TDDL) used by the TrouSerS tcsd as the
|
|
|
0e3081 |
interface to the TPM's device driver. For more information about writing
|
|
|
0e3081 |
applications to the TDDL interface, see the latest TSS spec at
|
|
|
0e3081 |
https://www.trustedcomputinggroup.org/specs/TSS.
|
|
|
0e3081 |
|
|
|
0e3081 |
%package devel
|
|
|
0e3081 |
Summary: TrouSerS header files and documentation
|
|
|
0e3081 |
Group: Development/Libraries
|
|
|
0e3081 |
Requires: %{name} = %{version}-%{release}
|
|
|
0e3081 |
|
|
|
0e3081 |
%description devel
|
|
|
0e3081 |
Header files and man pages for use in creating Trusted Computing enabled
|
|
|
0e3081 |
applications.
|
|
|
0e3081 |
|
|
|
0e3081 |
%prep
|
|
|
0e3081 |
%setup -cq
|
|
|
0e3081 |
%patch1 -p1
|
|
|
0e3081 |
|
|
|
0e3081 |
sed -i -e 's|/var/tpm|/var/lib/tpm|g' -e 's|/usr/local/var|/var|g' man/man5/tcsd.conf.5.in man/man8/tcsd.8.in
|
|
|
0e3081 |
|
|
|
0e3081 |
%build
|
|
|
0e3081 |
# fix man page paths
|
|
|
0e3081 |
%configure --with-gui=openssl
|
|
|
0e3081 |
make -k %{?_smp_mflags}
|
|
|
0e3081 |
|
|
|
0e3081 |
%install
|
|
|
0e3081 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
0e3081 |
mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/tpm
|
|
|
0e3081 |
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
|
|
0e3081 |
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libtspi.la
|
|
|
0e3081 |
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
|
0e3081 |
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/
|
|
|
0e3081 |
|
|
|
0e3081 |
%clean
|
|
|
0e3081 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
0e3081 |
|
|
|
0e3081 |
%pre
|
|
|
0e3081 |
getent group tss >/dev/null || groupadd -g 59 -r tss
|
|
|
0e3081 |
getent passwd tss >/dev/null || \
|
|
|
0e3081 |
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \
|
|
|
0e3081 |
-c "Account used by the trousers package to sandbox the tcsd daemon" tss
|
|
|
0e3081 |
exit 0
|
|
|
0e3081 |
|
|
|
0e3081 |
%post
|
|
|
0e3081 |
%systemd_post tcsd.service
|
|
|
0e3081 |
/sbin/ldconfig
|
|
|
0e3081 |
|
|
|
0e3081 |
%preun
|
|
|
0e3081 |
%systemd_preun tcsd.service
|
|
|
0e3081 |
|
|
|
0e3081 |
%postun
|
|
|
0e3081 |
%systemd_postun_with_restart tcsd.service
|
|
|
0e3081 |
/sbin/ldconfig
|
|
|
0e3081 |
|
|
|
0e3081 |
%files
|
|
|
0e3081 |
%defattr(-, root, root, -)
|
|
|
0e3081 |
%doc README LICENSE ChangeLog
|
|
|
0e3081 |
%{_sbindir}/tcsd
|
|
|
0e3081 |
%{_libdir}/libtspi.so.?
|
|
|
0e3081 |
%{_libdir}/libtspi.so.?.?.?
|
|
|
0e3081 |
%config(noreplace) %attr(0600, tss, tss) %{_sysconfdir}/tcsd.conf
|
|
|
0e3081 |
%doc %{_mandir}/man5/*
|
|
|
0e3081 |
%doc %{_mandir}/man8/*
|
|
|
0e3081 |
%attr(644,root,root) %{_unitdir}/tcsd.service
|
|
|
0e3081 |
%attr(0700, tss, tss) %{_localstatedir}/lib/tpm/
|
|
|
0e3081 |
|
|
|
0e3081 |
%files devel
|
|
|
0e3081 |
# The files to be used by developers, 'trousers-devel'
|
|
|
0e3081 |
%defattr(-, root, root, -)
|
|
|
0e3081 |
%doc doc/LTC-TSS_LLD_08_r2.pdf doc/TSS_programming_SNAFUs.txt
|
|
|
0e3081 |
%attr(0755, root, root) %{_libdir}/libtspi.so
|
|
|
0e3081 |
%{_includedir}/tss/
|
|
|
0e3081 |
%{_includedir}/trousers/
|
|
|
0e3081 |
%doc %{_mandir}/man3/Tspi_*
|
|
|
0e3081 |
|
|
|
0e3081 |
%files static
|
|
|
0e3081 |
%defattr(-, root, root, -)
|
|
|
0e3081 |
# The only static library shipped by trousers, the TDDL
|
|
|
0e3081 |
%{_libdir}/libtddl.a
|
|
|
0e3081 |
|
|
|
0e3081 |
%changelog
|
|
|
0e3081 |
* Mon Apr 03 2017 Jerry Snitselaar <jsnitsel@redhat.com> 0.3.14-2
|
|
|
0e3081 |
- release mutex in err path for obj_context_set_machine_name
|
|
|
0e3081 |
|
|
|
0e3081 |
* Thu Mar 30 2017 Jerry Snitselaar <jsnitsel@redhat.com> 0.3.14-1
|
|
|
0e3081 |
Resolves: rhbz#1384446 Rebase Trousers to latest version
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sun May 24 2015 Avesh Agarwal <avagarwa@redhat.com> 0.3.13-1
|
|
|
0e3081 |
Resolves: rhbz#1173221 New upstream bug fix release
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3.11.2-3
|
|
|
0e3081 |
- Mass rebuild 2014-01-24
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.11.2-2
|
|
|
0e3081 |
- Mass rebuild 2013-12-27
|
|
|
0e3081 |
|
|
|
0e3081 |
* Mon Aug 19 2013 Steve Grubb <sgrubb@redhat.com> 0.3.11.2-1
|
|
|
0e3081 |
- New upstream bug fix and license change release
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sun Jun 02 2013 Steve Grubb <sgrubb@redhat.com> 0.3.10-3
|
|
|
0e3081 |
- Remove +x bit from service file (#963916)
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.10-2
|
|
|
0e3081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
0e3081 |
|
|
|
0e3081 |
* Tue Sep 25 2012 Steve Grubb <sgrubb@redhat.com> 0.3.10-1
|
|
|
0e3081 |
- New upstream bug fix release
|
|
|
0e3081 |
|
|
|
0e3081 |
* Thu Aug 30 2012 Steve Grubb <sgrubb@redhat.com> 0.3.9-4
|
|
|
0e3081 |
- Make daemon full RELRO
|
|
|
0e3081 |
|
|
|
0e3081 |
* Mon Aug 27 2012 Steve Grubb <sgrubb@redhat.com> 0.3.9-3
|
|
|
0e3081 |
- bz #836476 - Provide native systemd service
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.9-2
|
|
|
0e3081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0e3081 |
|
|
|
0e3081 |
* Thu Jun 21 2012 Steve Grubb <sgrubb@redhat.com> 0.3.9-1
|
|
|
0e3081 |
- New upstream bug fix release
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
|
|
|
0e3081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Apr 08 2011 Steve Grubb <sgrubb@redhat.com> 0.3.6-1
|
|
|
0e3081 |
- New upstream bug fix release
|
|
|
0e3081 |
|
|
|
0e3081 |
* Thu Feb 10 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0.3.4-5
|
|
|
0e3081 |
- Fix paths in man pages, mark them as %%doc -- fix BZ#676394
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-4
|
|
|
0e3081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sat May 01 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 0.3.4-3
|
|
|
0e3081 |
- Fix init script to conform to Fedora guidelines
|
|
|
0e3081 |
- Do not overuse macros
|
|
|
0e3081 |
|
|
|
0e3081 |
* Mon Feb 08 2010 Steve Grubb <sgrubb@redhat.com> 0.3.4-2
|
|
|
0e3081 |
- Fix issue freeing a data structure
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Jan 29 2010 Steve Grubb <sgrubb@redhat.com> 0.3.4-1
|
|
|
0e3081 |
- New upstream bug fix release
|
|
|
0e3081 |
- Upstream requested the tpm-emulator patch be dropped
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.3.1-19
|
|
|
0e3081 |
- rebuilt with new openssl
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-18
|
|
|
0e3081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
0e3081 |
|
|
|
0e3081 |
* Thu May 14 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.3.1-17
|
|
|
0e3081 |
- Do not overuse macros.
|
|
|
0e3081 |
- Removed unnecessary file requirements on chkconfig, ldconfig and service,
|
|
|
0e3081 |
now requiring the initscripts and chkconfig packages.
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed May 06 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.3.1-16
|
|
|
0e3081 |
- Fix a typo in groupadd causing the %%pre scriptlet to fail (resolves BZ#486155).
|
|
|
0e3081 |
|
|
|
0e3081 |
* Mon Apr 27 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.3.1-15
|
|
|
0e3081 |
- Fix FTBFS: added trousers-0.3.1-gcc44.patch
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-14
|
|
|
0e3081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
0e3081 |
|
|
|
0e3081 |
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 0.3.1-13
|
|
|
0e3081 |
- rebuild with new openssl
|
|
|
0e3081 |
|
|
|
0e3081 |
* Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> - 0.3.1-12
|
|
|
0e3081 |
- Bump release to avoid wrong tag in rawhide
|
|
|
0e3081 |
|
|
|
0e3081 |
* Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> - 0.3.1-11
|
|
|
0e3081 |
- Work around SELinux namespace pollution (#464037)
|
|
|
0e3081 |
- Use SO_REUSEADDR
|
|
|
0e3081 |
- Use TPM emulator if it's available and no hardware is
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Aug 08 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-10
|
|
|
0e3081 |
- Use the uid/gid pair assigned to trousers from BZ#457593
|
|
|
0e3081 |
|
|
|
0e3081 |
* Fri Aug 01 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-9
|
|
|
0e3081 |
- Incorporated changes from the RHEL package which were done by Steve Grubb
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Jun 04 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-8
|
|
|
0e3081 |
- Fix cast issue preventing successful build on ppc64 and x86_64
|
|
|
0e3081 |
|
|
|
0e3081 |
* Tue Jun 03 2008 Emily Ratliff <ratliff@austin.ibm.com> - 0.3.1-7
|
|
|
0e3081 |
- Fix for BZ #434267 and #440733. Patch authored by Debora Velarde
|
|
|
0e3081 |
|
|
|
0e3081 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.1-6
|
|
|
0e3081 |
- Autorebuild for GCC 4.3
|
|
|
0e3081 |
|
|
|
0e3081 |
* Mon Dec 17 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-5
|
|
|
0e3081 |
- Updated static rpm's comment line (too long)
|
|
|
0e3081 |
|
|
|
0e3081 |
* Thu Dec 13 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-4
|
|
|
0e3081 |
- Updated specfile for RHBZ#323441 comment #28
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Dec 12 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-3
|
|
|
0e3081 |
- Updated specfile for RHBZ#323441 comment #22
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Nov 28 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-2
|
|
|
0e3081 |
- Updated to include the include dirs in the devel package;
|
|
|
0e3081 |
added the no-install-hooks patch
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Nov 28 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1-1
|
|
|
0e3081 |
- Updated specfile for RHBZ#323441 comment #13
|
|
|
0e3081 |
|
|
|
0e3081 |
* Mon Nov 12 2007 Kent Yoder <kyoder@users.sf.net> - 0.3.1
|
|
|
0e3081 |
- Updated specfile for comments in RHBZ#323441
|
|
|
0e3081 |
|
|
|
0e3081 |
* Wed Jun 07 2006 Kent Yoder <kyoder@users.sf.net> - 0.2.6-1
|
|
|
0e3081 |
- Updated build section to use smp_mflags
|
|
|
0e3081 |
- Removed .la file from installed dest and files section
|
|
|
0e3081 |
|
|
|
0e3081 |
* Tue Jun 06 2006 Kent Yoder <kyoder@users.sf.net> - 0.2.6-1
|
|
|
0e3081 |
- Initial add of changelog tag for trousers CVS
|