Cleanup spec

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-06-08 14:56:14 +02:00
parent 5b483f1a22
commit d0f83e6b9c
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E
2 changed files with 8 additions and 17 deletions

View File

@ -1 +1 @@
4a476b4f036dd20a764fb54fc24edbec trousers-0.3.14.tar.gz SHA512 (trousers-0.3.14.tar.gz) = bf87f00329cf1d76a12cf6b6181fa22f90e76af3c5786e6e2db98438d2d3f0c0e05364374664173f45e3a2f6c0e2364948d0b958a7845cb23fcb340150cd9b21

View File

@ -57,13 +57,7 @@ Header files and man pages for use in creating Trusted Computing enabled
applications. applications.
%prep %prep
%setup -cq %autosetup -c -p1
%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
# fix man page paths # 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 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} make -k %{?_smp_mflags}
%install %install
mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/tpm mkdir -p %{buildroot}%{_localstatedir}/lib/tpm
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" %make_install
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libtspi.la find %{buildroot} -type f -name '*.la' -print -delete
mkdir -p $RPM_BUILD_ROOT%{_unitdir} mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/ install -Dpm0644 %{SOURCE1} %{buildroot}%{_unitdir}/
%pre %pre
getent group tss >/dev/null || groupadd -g 59 -r tss getent group tss >/dev/null || groupadd -g 59 -r tss
@ -94,8 +88,6 @@ exit 0
%postun %postun
%systemd_postun_with_restart tcsd.service %systemd_postun_with_restart tcsd.service
%ldconfig_scriptlets lib
%files %files
%doc README ChangeLog %doc README ChangeLog
%{_sbindir}/tcsd %{_sbindir}/tcsd
@ -107,8 +99,7 @@ exit 0
%files lib %files lib
%license LICENSE %license LICENSE
%{_libdir}/libtspi.so.? %{_libdir}/libtspi.so.1*
%{_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'