spec: allow run upstream tests when 'runselftest' defined
Version: 09.03.0300-2
This commit is contained in:
parent
a8f42f97e0
commit
ee8aa865c7
@ -1,7 +1,7 @@
|
|||||||
Name: postgresql-odbc
|
Name: postgresql-odbc
|
||||||
Summary: PostgreSQL ODBC driver
|
Summary: PostgreSQL ODBC driver
|
||||||
Version: 09.03.0300
|
Version: 09.03.0300
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://psqlodbc.projects.postgresql.org/
|
URL: http://psqlodbc.projects.postgresql.org/
|
||||||
@ -28,9 +28,23 @@ PostgreSQL system via ODBC (Open Database Connectivity).
|
|||||||
%configure --with-unixodbc --disable-dependency-tracking
|
%configure --with-unixodbc --disable-dependency-tracking
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if 0%{?runselftest}
|
||||||
|
# Note that this requires having PostgresSQL server and unixODBC installed
|
||||||
|
# and properly configured - for this reason, disabled by default
|
||||||
|
cd test
|
||||||
|
sed -i "s|^[Uu]sername.*|Username = %{testdbuser}|" odbc.ini
|
||||||
|
sed -i "s|^[Pp]assword.*|Password = %{testdbpass}|" odbc.ini
|
||||||
|
cat odbc.ini
|
||||||
|
make installcheck || { cat regression.diffs ; exit 1; }
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Provide the old library name "psqlodbc.so" as a symlink,
|
# Provide the old library name "psqlodbc.so" as a symlink,
|
||||||
# and remove the rather useless .la file
|
# and remove the rather useless .la file
|
||||||
pushd ${RPM_BUILD_ROOT}%{_libdir}
|
pushd ${RPM_BUILD_ROOT}%{_libdir}
|
||||||
@ -47,6 +61,9 @@ popd
|
|||||||
%doc license.txt readme.txt docs/*
|
%doc license.txt readme.txt docs/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 19 2014 Pavel Raiskup <praiskup@redhat.com> - 09.03.0300-2
|
||||||
|
- run upstream testsuite when '%%runselftest' defined
|
||||||
|
|
||||||
* Mon May 19 2014 Pavel Raiskup <praiskup@redhat.com> - 09.03.0300-1
|
* Mon May 19 2014 Pavel Raiskup <praiskup@redhat.com> - 09.03.0300-1
|
||||||
- rebase to latest upstream version, per release notes:
|
- rebase to latest upstream version, per release notes:
|
||||||
http://psqlodbc.projects.pgfoundry.org/docs/release.html
|
http://psqlodbc.projects.pgfoundry.org/docs/release.html
|
||||||
|
Loading…
Reference in New Issue
Block a user