From 432304c9b902027186800ed40b9db01be8a75c98 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 11 Jan 2016 07:37:11 +0100 Subject: [PATCH] tests: fix ini generator Version: 09.05.0100-1 --- postgresql-odbc.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgresql-odbc.spec b/postgresql-odbc.spec index 2420356..1aa1633 100644 --- a/postgresql-odbc.spec +++ b/postgresql-odbc.spec @@ -36,6 +36,7 @@ make DESTDIR=$RPM_BUILD_ROOT install %global testsuitedir %{_libdir}/%{name} install -d -m 755 $RPM_BUILD_ROOT/%{testsuitedir} cp -R test $RPM_BUILD_ROOT/%{testsuitedir} +sed -i 's~^drvr=.*~drvr=%{_libdir}/psqlodbc~' $RPM_BUILD_ROOT/%{testsuitedir}/test/odbcini-gen.sh # Provide the old library name "psqlodbc.so" as a symlink, # and remove the rather useless .la file @@ -48,6 +49,7 @@ popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig + %package tests Summary: Testsuite files for psqlodbc Requires: postgresql-test