SPECS: sqlite3.spec - install tcl module in proper libdir

baggins baggins at pld-linux.org
Tue Sep 18 17:40:49 CEST 2007


Author: baggins                      Date: Tue Sep 18 15:40:49 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- install tcl module in proper libdir

---- Files affected:
SPECS:
   sqlite3.spec (1.41 -> 1.42) 

---- Diffs:

================================================================
Index: SPECS/sqlite3.spec
diff -u SPECS/sqlite3.spec:1.41 SPECS/sqlite3.spec:1.42
--- SPECS/sqlite3.spec:1.41	Fri Sep 14 15:37:17 2007
+++ SPECS/sqlite3.spec	Tue Sep 18 17:40:44 2007
@@ -40,6 +40,7 @@
 %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
@@ -178,10 +179,11 @@
 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
@@ -215,9 +217,9 @@
 %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
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -226,6 +228,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.42  2007/09/18 15:40:44  baggins
+- install tcl module in proper libdir
+
 Revision 1.41  2007/09/14 13:37:17  emes
 - up to 3.5.0
 - NFY (fails on tests, can be built --without tests)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sqlite3.spec?r1=1.41&r2=1.42&f=u



More information about the pld-cvs-commit mailing list