diff --git a/vala.spec b/vala.spec index 2cba447..95478aa 100644 --- a/vala.spec +++ b/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 - 0.50.8-4 +- Remove rpath + * Thu Jun 24 2021 Wenlong Ding - 0.50.8-3 - Add missing Provides: vala-tools