From 80deaf18a51c0e547193e710b45ef54580b4d00d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 18 Sep 2007 15:40:44 +0000 Subject: [PATCH] - install tcl module in proper libdir Changed files: sqlite3.spec -> 1.42 --- sqlite3.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sqlite3.spec b/sqlite3.spec index 3b41a0e..515f9db 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -39,6 +39,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %endif %define _ulibdir /usr/lib +%define tclver %(rpm -q --qf '%{V}' tcl) %description SQLite is a C library that implements an SQL database engine. A large @@ -177,10 +178,11 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_mandir}/man1} %{__make} install \ - DESTDIR=$RPM_BUILD_ROOT + DESTDIR=$RPM_BUILD_ROOT \ + TCLLIBDIR=%{_libdir}/tcl%{tclver} %if %{with tcl} -sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_ulibdir}/tcl*/sqlite3/*.tcl +sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/tcl*/sqlite3/*.tcl %endif install sqlite3.1 $RPM_BUILD_ROOT%{_mandir}/man1 @@ -214,7 +216,7 @@ rm -rf $RPM_BUILD_ROOT %if %{with tcl} %files -n tcl-%{name} %defattr(644,root,root,755) -%dir %{_ulibdir}/tcl*/sqlite3 -%attr(755,root,root) %{_ulibdir}/tcl*/sqlite3/*.so -%{_ulibdir}/tcl*/sqlite3/*.tcl +%dir %{_libdir}/tcl*/sqlite3 +%attr(755,root,root) %{_libdir}/tcl*/sqlite3/*.so +%{_libdir}/tcl*/sqlite3/*.tcl %endif -- 2.44.0