[packages/tcl-tdbc] - move tdbcConfig.sh to /usr/lib, so tdbc drivers can find it - make tdbc .so module executable to b
qboosh
qboosh at pld-linux.org
Wed Mar 9 19:58:55 CET 2016
commit bd828af4efb36203df7978b898003e1194df3f2c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Mar 9 20:02:39 2016 +0100
- move tdbcConfig.sh to /usr/lib, so tdbc drivers can find it
- make tdbc .so module executable to be visible to rpm dependency generator
- -devel R: tcl-devel
tcl-tdbc.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/tcl-tdbc.spec b/tcl-tdbc.spec
index 4d8bbf3..c28dd8a 100644
--- a/tcl-tdbc.spec
+++ b/tcl-tdbc.spec
@@ -8,6 +8,7 @@ Group: Libraries
Source0: http://downloads.sourceforge.net/tcl/tdbc%{version}.tar.gz
# Source0-md5: 5b88b4f2ed851b97bc4c391203788c09
URL: http://tdbc.tcl.tk/
+BuildRequires: sed >= 4.0
BuildRequires: tcl-devel >= 8.5
Requires: tcl >= 8.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,6 +29,7 @@ Summary: Development files for Tcl TDBC module
Summary(pl.UTF-8): Pliki programistyczna modułu Tcl TDBC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: tcl-devel >= 8.5
%description devel
Development files for Tcl TDBC module.
@@ -48,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# allow dependency generation
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/tdbc%{version}/*.so
+
# hide build paths
%{__sed} -e '/^[Tt][Dd][Bb][Cc]_BUILD_STUB_LIB_SPEC/s,-L.* -l,-L%{_libdir}/tdbc%{version} -l,' \
-e '/^[Tt][Dd][Bb][Cc]_BUILD_STUB_LIB_PATH/s,=".*libtdbcstub,="%{_libdir}/tdbc%{version}/libtdbcstub,' \
@@ -57,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
-e '/^[Tt][Dd][Bb][Cc]_BUILD_LIBRARY_PATH/s,=".*",="%{_libdir}/tdbc%{version}",' \
-i $RPM_BUILD_ROOT%{_libdir}/tdbc%{version}/tdbcConfig.sh
+# tdbc drivers look here for tdbc configuration
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/tdbc%{version}/tdbcConfig.sh $RPM_BUILD_ROOT%{_prefix}/lib
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -74,5 +82,5 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%{_libdir}/tdbc%{version}/libtdbcstub%{version}.a
-%{_libdir}/tdbc%{version}/tdbcConfig.sh
+%{_prefix}/lib/tdbcConfig.sh
%{_mandir}/man3/Tdbc_Init.3*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tcl-tdbc.git/commitdiff/bd828af4efb36203df7978b898003e1194df3f2c
More information about the pld-cvs-commit
mailing list