From 931434f55b02f3f618c70270a9471a549bfd86a7 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 2 Dec 2021 20:16:18 +0800 Subject: [PATCH] Remove rpath --- vala.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/vala.spec b/vala.spec index 8df0855..e98baa3 100644 --- a/vala.spec +++ b/vala.spec @@ -5,7 +5,7 @@ Name: vala Version: 0.50.8 -Release: 1 +Release: 2 Summary: Compiler Using the GObject Type System License: LGPLv2+ and BSD URL: https://wiki.gnome.org/Projects/Vala @@ -13,7 +13,7 @@ Source0: https://download.gnome.org/sources/vala/0.50/vala-%{version}.tar BuildRequires: flex bison glib2-devel gobject-introspection-devel BuildRequires: graphviz-devel libxslt dbus-x11 -BuildRequires: dbus-x11 +BuildRequires: dbus-x11 chrpath Requires(pre): %{_sbindir}/alternatives Requires: vala-devel = %{version}-%{release} gobject-introspection-devel Requires: %{name} = %{version}-%{release} @@ -54,6 +54,11 @@ sed -i 's|/lib /usr/lib|/lib /usr/lib /lib64 /usr/lib64|' libtool install -d $RPM_BUILD_ROOT%{_datadir}/vala/vapi %delete_la +chrpath -d %{buildroot}/%{_bindir}/valadoc-0.50 +chrpath -d %{buildroot}/%{_bindir}/valac-0.50 +chrpath -d %{buildroot}/%{_libdir}/libvaladoc-0.50.so.0.0.0 +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}/%{name}-0.50" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf %check make check @@ -70,6 +75,12 @@ if [ $1 -gt 1 ] ; then done fi +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + %files %license COPYING %{_bindir}/vala @@ -92,6 +103,8 @@ fi %{_libdir}/valadoc-%{api_ver}/ %{_datadir}/valadoc-%{api_ver}/ +%config(noreplace) /etc/ld.so.conf.d/* + %files devel %license COPYING %{_libdir}/libvala-%{api_ver}.so.* @@ -114,6 +127,9 @@ fi %doc %{_datadir}/devhelp/books/vala-%{api_ver} %changelog +* Thu Dec 2 2021 caodongxia - 0.50.8-2 +- Remove rpath + * Wed Jul 21 2021 yushaogui - 0.50.8-1 - Upgrade to 0.50.8 - Update api_ver, Version, Release, Source0