remove rpath
Signed-off-by: jiangfangjie <jiangfangjie@huawei.com>
This commit is contained in:
parent
38dd08549e
commit
59e2c7a8e2
15
swtpm.spec
15
swtpm.spec
@ -8,7 +8,7 @@
|
|||||||
Summary: TPM Emulator
|
Summary: TPM Emulator
|
||||||
Name: swtpm
|
Name: swtpm
|
||||||
Version: 0.8.0
|
Version: 0.8.0
|
||||||
Release: 1
|
Release: 2
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://github.com/stefanberger/swtpm
|
Url: https://github.com/stefanberger/swtpm
|
||||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
@ -37,6 +37,7 @@ BuildRequires: selinux-policy-devel
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libseccomp-devel
|
BuildRequires: libseccomp-devel
|
||||||
BuildRequires: tpm2-tools
|
BuildRequires: tpm2-tools
|
||||||
|
BuildRequires: chrpath
|
||||||
|
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Requires: libtpms >= 0.6.0
|
Requires: libtpms >= 0.6.0
|
||||||
@ -94,12 +95,18 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la,so}
|
|||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/swtpm-create-tpmca.8*
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/swtpm-create-tpmca.8*
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/swtpm-create-tpmca
|
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/swtpm-create-tpmca
|
||||||
|
|
||||||
|
chrpath -d %{buildroot}/%{_bindir}/swtpm
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/%{name}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%post
|
%post
|
||||||
for pp in /usr/share/selinux/packages/swtpm.pp \
|
for pp in /usr/share/selinux/packages/swtpm.pp \
|
||||||
/usr/share/selinux/packages/swtpm_svirt.pp; do
|
/usr/share/selinux/packages/swtpm_svirt.pp; do
|
||||||
%selinux_modules_install -s %{selinuxtype} ${pp}
|
%selinux_modules_install -s %{selinuxtype} ${pp}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
for p in swtpm swtpm_svirt; do
|
for p in swtpm swtpm_svirt; do
|
||||||
@ -113,6 +120,8 @@ fi
|
|||||||
%ldconfig_post libs
|
%ldconfig_post libs
|
||||||
%ldconfig_postun libs
|
%ldconfig_postun libs
|
||||||
|
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README
|
%doc README
|
||||||
@ -120,6 +129,7 @@ fi
|
|||||||
%{_mandir}/man8/swtpm.8*
|
%{_mandir}/man8/swtpm.8*
|
||||||
%{_datadir}/selinux/packages/swtpm.pp
|
%{_datadir}/selinux/packages/swtpm.pp
|
||||||
%{_datadir}/selinux/packages/swtpm_svirt.pp
|
%{_datadir}/selinux/packages/swtpm_svirt.pp
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -162,6 +172,9 @@ fi
|
|||||||
%attr( 750, tss, root) %{_localstatedir}/lib/swtpm-localca
|
%attr( 750, tss, root) %{_localstatedir}/lib/swtpm-localca
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 07 2023 jiangfangjie <jiangfangjie@huawei.com> - 0.8.0-2
|
||||||
|
- Remove rpath
|
||||||
|
|
||||||
* Fri Feb 03 2023 yezengruan <yezengruan@huawei.com> - 0.8.0-1
|
* Fri Feb 03 2023 yezengruan <yezengruan@huawei.com> - 0.8.0-1
|
||||||
- update to version 0.8.0
|
- update to version 0.8.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user