remove rpath and runpath of exec files and libraries
This commit is contained in:
parent
32366faf48
commit
731ecd6ddb
@ -1,12 +1,12 @@
|
||||
Name: libmetalink
|
||||
Version: 0.1.3
|
||||
Release: 8
|
||||
Release: 9
|
||||
Summary: Metalink library written in C
|
||||
License: MIT
|
||||
URL: https://launchpad.net/libmetalink
|
||||
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
|
||||
libmetalink is a Metalink library written in C language. It is intended to
|
||||
@ -37,6 +37,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%make_install
|
||||
%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
|
||||
make check
|
||||
|
||||
@ -53,10 +59,14 @@ make check
|
||||
%{_includedir}/metalink/*.h
|
||||
%{_libdir}/libmetalink.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%files help
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user