!14 remove rpath
From: @caodongxia Reviewed-by: @dwl301 Signed-off-by: @dwl301
This commit is contained in:
commit
76cc5c9339
22
vala.spec
22
vala.spec
@ -5,7 +5,7 @@
|
||||
|
||||
Name: vala
|
||||
Version: 0.50.8
|
||||
Release: 3
|
||||
Release: 4
|
||||
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,14 @@ 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 +78,12 @@ if [ $1 -gt 1 ] ; then
|
||||
done
|
||||
fi
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_bindir}/vala
|
||||
@ -91,6 +105,7 @@ fi
|
||||
%{_libdir}/libvaladoc-%{api_ver}.so.0*
|
||||
%{_libdir}/valadoc-%{api_ver}/
|
||||
%{_datadir}/valadoc-%{api_ver}/
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%files devel
|
||||
%license COPYING
|
||||
@ -114,6 +129,9 @@ fi
|
||||
%doc %{_datadir}/devhelp/books/vala-%{api_ver}
|
||||
|
||||
%changelog
|
||||
* Wed Sep 9 2021 caodongxia <caodongxia@huawei.com> - 0.50.8-4
|
||||
- Remove rpath
|
||||
|
||||
* Thu Jun 24 2021 Wenlong Ding <wenlong.ding@turbolinux.com.cn> - 0.50.8-3
|
||||
- Add missing Provides: vala-tools
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user