Cleanup spec
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
5b483f1a22
commit
d0f83e6b9c
2
sources
2
sources
@ -1 +1 @@
|
||||
4a476b4f036dd20a764fb54fc24edbec trousers-0.3.14.tar.gz
|
||||
SHA512 (trousers-0.3.14.tar.gz) = bf87f00329cf1d76a12cf6b6181fa22f90e76af3c5786e6e2db98438d2d3f0c0e05364374664173f45e3a2f6c0e2364948d0b958a7845cb23fcb340150cd9b21
|
||||
|
@ -57,13 +57,7 @@ Header files and man pages for use in creating Trusted Computing enabled
|
||||
applications.
|
||||
|
||||
%prep
|
||||
%setup -cq
|
||||
%patch1 -p1 -b .noinline
|
||||
%patch2 -p1 -b .unlock
|
||||
%patch3 -p1 -b .indent_obj_policy
|
||||
%patch4 -p1 -b .double_free
|
||||
%patch5 -p1 -b .indent_tspi_key
|
||||
%patch6 -p1 -b .header
|
||||
%autosetup -c -p1
|
||||
# fix man page paths
|
||||
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
|
||||
|
||||
@ -72,11 +66,11 @@ sed -i -e 's|/var/tpm|/var/lib/tpm|g' -e 's|/usr/local/var|/var|g' man/man5/tcsd
|
||||
make -k %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/tpm
|
||||
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
||||
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libtspi.la
|
||||
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
||||
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/tpm
|
||||
%make_install
|
||||
find %{buildroot} -type f -name '*.la' -print -delete
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
install -Dpm0644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
||||
|
||||
%pre
|
||||
getent group tss >/dev/null || groupadd -g 59 -r tss
|
||||
@ -94,8 +88,6 @@ exit 0
|
||||
%postun
|
||||
%systemd_postun_with_restart tcsd.service
|
||||
|
||||
%ldconfig_scriptlets lib
|
||||
|
||||
%files
|
||||
%doc README ChangeLog
|
||||
%{_sbindir}/tcsd
|
||||
@ -107,8 +99,7 @@ exit 0
|
||||
|
||||
%files lib
|
||||
%license LICENSE
|
||||
%{_libdir}/libtspi.so.?
|
||||
%{_libdir}/libtspi.so.?.?.?
|
||||
%{_libdir}/libtspi.so.1*
|
||||
|
||||
%files devel
|
||||
# The files to be used by developers, 'trousers-devel'
|
||||
|
Loading…
Reference in New Issue
Block a user