!11 remove rpath

From: @zhouwenpei 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2023-11-09 09:35:52 +00:00 committed by Gitee
commit 4509f85624
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: enchant
Version: 1.6.1
Release: 2
Release: 3
Epoch: 1
Summary: Generic spell checking library
@ -9,7 +9,7 @@ URL: https://github.com/AbiWord/enchant
Source0: https://github.com/AbiWord/enchant/releases/download/enchant-1-6-1/%{name}-%{version}.tar.gz
BuildRequires: aspell-devel automake gcc-c++ hunspell-devel libtool libvoikko-devel
BuildRequires: glib2-devel >= 2.6.0 gdb
BuildRequires: glib2-devel >= 2.6.0 gdb chrpath
%description
Enchant aims to provide a simple but comprehensive abstraction for dealing
@ -56,6 +56,20 @@ make install DESTDIR=%{buildroot}
%delete_la
%ldconfig_scriptlets
chrpath -d %{buildroot}/%{_libdir}/%{name}/libenchant_myspell.so
chrpath -d %{buildroot}/%{_bindir}/enchant
chrpath -d %{buildroot}/%{_bindir}/enchant-lsmod
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/%{name}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
echo "%{_bindir}/%{name}" >> %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS
%license COPYING.LIB
@ -64,6 +78,7 @@ make install DESTDIR=%{buildroot}
%{_libdir}/libenchant.so.*
%{_libdir}/enchant/libenchant_myspell.so
%{_datadir}/enchant/enchant.ordering
%config(noreplace) /etc/ld.so.conf.d/*
%files devel
%{_libdir}/libenchant.so
@ -83,6 +98,9 @@ make install DESTDIR=%{buildroot}
%{_mandir}/man1/*.gz
%changelog
* Wed Nov 08 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1:1.6.1-3
- remove rpath
* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:1.6.1-2
- Type:NA
- Id:NA