Split libtspi to a trousers-lib subpackage (#1225062)

epel9
Tomas Mraz 10 years ago
parent 6adf09c4d0
commit f6cede619f

@ -1,7 +1,7 @@
Name: trousers Name: trousers
Summary: TCG's Software Stack v1.2 Summary: TCG's Software Stack v1.2
Version: 0.3.13 Version: 0.3.13
Release: 3%{?dist} Release: 4%{?dist}
License: BSD License: BSD
Group: System Environment/Libraries Group: System Environment/Libraries
Url: http://trousers.sourceforge.net Url: http://trousers.sourceforge.net
@ -15,6 +15,7 @@ Requires(pre): shadow-utils
Requires(post): systemd-units Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units
Requires: %{name}-lib%{?_isa} = %{version}-%{release}
%description %description
TrouSerS is an implementation of the Trusted Computing Group's Software Stack TrouSerS is an implementation of the Trusted Computing Group's Software Stack
@ -23,10 +24,19 @@ 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 securely (without ever being exposed in memory), verify a platform's software
state using cryptographic hashes and more. state using cryptographic hashes and more.
%package lib
Summary: TrouSerS libtspi library
Group: Development/Libraries
# Needed obsoletes due to the -lib subpackage split
Obsoletes: trousers < 0.3.13-4
%description lib
The libtspi library for use in Trusted Computing enabled applications.
%package static %package static
Summary: TrouSerS TCG Device Driver Library Summary: TrouSerS TCG Device Driver Library
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static %description static
The TCG Device Driver Library (TDDL) used by the TrouSerS tcsd as the The TCG Device Driver Library (TDDL) used by the TrouSerS tcsd as the
@ -37,7 +47,7 @@ https://www.trustedcomputinggroup.org/specs/TSS.
%package devel %package devel
Summary: TrouSerS header files and documentation Summary: TrouSerS header files and documentation
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}-lib%{?_isa} = %{version}-%{release}
%description devel %description devel
Header files and man pages for use in creating Trusted Computing enabled Header files and man pages for use in creating Trusted Computing enabled
@ -68,26 +78,31 @@ exit 0
%post %post
%systemd_post tcsd.service %systemd_post tcsd.service
/sbin/ldconfig
%preun %preun
%systemd_preun tcsd.service %systemd_preun tcsd.service
%postun %postun
%systemd_postun_with_restart tcsd.service %systemd_postun_with_restart tcsd.service
/sbin/ldconfig
%post lib -p /sbin/ldconfig
%postun lib -p /sbin/ldconfig
%files %files
%doc README LICENSE ChangeLog %doc README ChangeLog
%{_sbindir}/tcsd %{_sbindir}/tcsd
%{_libdir}/libtspi.so.?
%{_libdir}/libtspi.so.?.?.?
%config(noreplace) %attr(0600, tss, tss) %{_sysconfdir}/tcsd.conf %config(noreplace) %attr(0600, tss, tss) %{_sysconfdir}/tcsd.conf
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man8/* %{_mandir}/man8/*
%attr(644,root,root) %{_unitdir}/tcsd.service %attr(644,root,root) %{_unitdir}/tcsd.service
%attr(0700, tss, tss) %{_localstatedir}/lib/tpm/ %attr(0700, tss, tss) %{_localstatedir}/lib/tpm/
%files lib
%license LICENSE
%{_libdir}/libtspi.so.?
%{_libdir}/libtspi.so.?.?.?
%files devel %files devel
# The files to be used by developers, 'trousers-devel' # The files to be used by developers, 'trousers-devel'
%doc doc/LTC-TSS_LLD_08_r2.pdf doc/TSS_programming_SNAFUs.txt %doc doc/LTC-TSS_LLD_08_r2.pdf doc/TSS_programming_SNAFUs.txt
@ -101,6 +116,9 @@ exit 0
%{_libdir}/libtddl.a %{_libdir}/libtddl.a
%changelog %changelog
* Tue May 26 2015 Tomáš Mráz <tmraz@redhat.com> 0.3.13-4
- Split libtspi to a trousers-lib subpackage (#1225062)
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.13-3 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

Loading…
Cancel
Save