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