Make an ld.so.conf.d entry for tix, since it decided to put its libraries

outside of %{_libdir}.
This commit is contained in:
Tom Callaway 2008-02-06 15:59:12 +00:00
parent d0dc49d8a4
commit 2431240dac

View File

@ -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 <tcallawa@redhat.com> - 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 <jkeating@redhat.com> - 1:8.4.2-4
- Rebuild, fix libTix.so link paths.