Blame SPECS/trousers.spec

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