!3 remove rpath and runpath of exec files and libraries
From: @fly_fzc Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
a10e148f0b
@ -1,12 +1,12 @@
|
|||||||
Name: libmetalink
|
Name: libmetalink
|
||||||
Version: 0.1.3
|
Version: 0.1.3
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: Metalink library written in C
|
Summary: Metalink library written in C
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://launchpad.net/libmetalink
|
URL: https://launchpad.net/libmetalink
|
||||||
Source0: https://launchpad.net/libmetalink/trunk/%{name}-%{version}/+download/%{name}-%{version}.tar.bz2
|
Source0: https://launchpad.net/libmetalink/trunk/%{name}-%{version}/+download/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
BuildRequires: gcc expat-devel CUnit-devel
|
BuildRequires: gcc expat-devel CUnit-devel chrpath
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libmetalink is a Metalink library written in C language. It is intended to
|
libmetalink is a Metalink library written in C language. It is intended to
|
||||||
@ -37,6 +37,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%make_install
|
%make_install
|
||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
|
#remove rpath
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/%{name}.so.3.1.0
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
@ -53,10 +59,14 @@ make check
|
|||||||
%{_includedir}/metalink/*.h
|
%{_includedir}/metalink/*.h
|
||||||
%{_libdir}/libmetalink.so
|
%{_libdir}/libmetalink.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 7 2021 fuanan <fuanan3@huawei.com> - 0.1.3-9
|
||||||
|
- remove rpath and runpath of exec files and libraries
|
||||||
|
|
||||||
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.3-8
|
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.3-8
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user