BR postgresql-test-rpm-macros
Version: 10.02.0000-2
This commit is contained in:
parent
b126c3eda7
commit
b2b3851ef5
@ -1,9 +1,11 @@
|
|||||||
|
%bcond_without check
|
||||||
|
|
||||||
%global upstream_name psqlodbc
|
%global upstream_name psqlodbc
|
||||||
|
|
||||||
Name: postgresql-odbc
|
Name: postgresql-odbc
|
||||||
Summary: PostgreSQL ODBC driver
|
Summary: PostgreSQL ODBC driver
|
||||||
Version: 10.02.0000
|
Version: 10.02.0000
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://%{upstream_name}.projects.postgresql.org/
|
URL: http://%{upstream_name}.projects.postgresql.org/
|
||||||
@ -13,8 +15,12 @@ Source0: http://ftp.postgresql.org/pub/odbc/versions/src/%{upstream_name}-%{vers
|
|||||||
Patch0: postgresql-odbc-09.06.0200-revert-money-fix.patch
|
Patch0: postgresql-odbc-09.06.0200-revert-money-fix.patch
|
||||||
Patch1: postgresql-odbc-09.05.0400-revert-money-testsuite-fix.patch
|
Patch1: postgresql-odbc-09.05.0400-revert-money-testsuite-fix.patch
|
||||||
|
|
||||||
BuildRequires: unixODBC-devel postgresql-devel
|
BuildRequires: unixODBC-devel
|
||||||
BuildRequires: postgresql-server
|
BuildRequires: pkgconfig(libpq)
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
BuildRequires: postgresql-test-rpm-macros
|
||||||
|
%endif
|
||||||
|
|
||||||
Provides: %upstream_name = %version-%release
|
Provides: %upstream_name = %version-%release
|
||||||
|
|
||||||
@ -54,10 +60,9 @@ pushd ${RPM_BUILD_ROOT}%{_libdir}
|
|||||||
rm psqlodbcw.la psqlodbca.la
|
rm psqlodbcw.la psqlodbca.la
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
%pgtests_init
|
%postgresql_tests_run
|
||||||
%pgtests_start
|
|
||||||
|
|
||||||
cd test && make installcheck %{_smp_mflags} || {
|
cd test && make installcheck %{_smp_mflags} || {
|
||||||
echo "=== trying to find all regression.diffs files in build directory ==="
|
echo "=== trying to find all regression.diffs files in build directory ==="
|
||||||
@ -66,7 +71,7 @@ cd test && make installcheck %{_smp_mflags} || {
|
|||||||
done
|
done
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -101,6 +106,10 @@ the PostgreSQL unixODBC driver.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 10.02.0000-2
|
||||||
|
- BR postgresql-test-rpm-macros
|
||||||
|
- add %%bcond for check section
|
||||||
|
|
||||||
* Mon Apr 02 2018 Pavel Raiskup <praiskup@redhat.com> - 10.02.0000-1
|
* Mon Apr 02 2018 Pavel Raiskup <praiskup@redhat.com> - 10.02.0000-1
|
||||||
- update to new upstream release, per announcement:
|
- update to new upstream release, per announcement:
|
||||||
https://www.postgresql.org/message-id/20180330143925.88CEDB40E51%40winpg.jp
|
https://www.postgresql.org/message-id/20180330143925.88CEDB40E51%40winpg.jp
|
||||||
|
Loading…
Reference in New Issue
Block a user