From 2431240dacc350bab2b3d4f100353154fbf78393 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Wed, 6 Feb 2008 15:59:12 +0000 Subject: [PATCH] Make an ld.so.conf.d entry for tix, since it decided to put its libraries outside of %{_libdir}. --- tix.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tix.spec b/tix.spec index db78c39..3747162 100644 --- a/tix.spec +++ b/tix.spec @@ -18,6 +18,7 @@ Patch1: tix-8.4.2-tcl8.5.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: tcl(abi) = 8.5 Requires: tcl >= %{tcltkver}, tk >= %{tcltkver} +Requires: /etc/ld.so.conf.d Buildrequires: tcl-devel >= %{tcltkver}, tk-devel >= %{tcltkver} BuildRequires: libX11-devel @@ -87,6 +88,10 @@ install -m 0644 generic/tix.h $RPM_BUILD_ROOT%{_includedir}/tix.h mkdir -p $RPM_BUILD_ROOT%{_mandir}/mann cp man/*.n $RPM_BUILD_ROOT%{_mandir}/mann +# Handle unique library path (so apps can actually find the library) +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d +echo "%{tcl_sitearch}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/tix-%{_arch}.conf + # ship docs except pdf rm -rf docs/pdf find docs -name .cvsignore -exec rm '{}' ';' @@ -106,6 +111,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{tcl_sitearch}/libTix.so %{tcl_sitearch}/Tix%{version} +%{_sysconfdir}/ld.so.conf.d/* %doc *.txt *.html license.terms %files devel @@ -121,6 +127,11 @@ rm -rf $RPM_BUILD_ROOT %doc %{tcl_sitelib}/Tix%{tixmajor} %changelog +* Wed Feb 6 2008 Tom "spot" Callaway - 1:8.4.2-5 +- apps can't find libTix.so without an ld.so.conf.d file. It probably makes + more sense to move this library back into %%{_libdir}, but I'll leave that to + Vitezslav to decide. + * Thu Jan 17 2008 Jesse Keating - 1:8.4.2-4 - Rebuild, fix libTix.so link paths.