BR postgresql-test-rpm-macros

Version: 2.4.3-4
This commit is contained in:
Pavel Raiskup 2018-04-13 17:06:18 +02:00
parent f2d0fe2f82
commit b6bcc58aa5
1 changed files with 6 additions and 4 deletions

View File

@ -28,7 +28,7 @@
Summary: Geographic Information Systems Extensions to PostgreSQL Summary: Geographic Information Systems Extensions to PostgreSQL
Name: postgis Name: postgis
Version: %majorversion.3 Version: %majorversion.3
Release: 3%{?dist} Release: 4%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/Databases Group: Applications/Databases
Source0: http://download.osgeo.org/%{name}/source/%{name}-%{version}.tar.gz Source0: http://download.osgeo.org/%{name}/source/%{name}-%{version}.tar.gz
@ -54,7 +54,7 @@ BuildRequires: postgresql-upgrade-devel
%endif %endif
Requires: postgresql-server(:MODULE_COMPAT_%{postgresql_major}) Requires: postgresql-server(:MODULE_COMPAT_%{postgresql_major})
%if %runselftest %if %runselftest
BuildRequires: postgresql-server BuildRequires: postgresql-test-rpm-macros
%endif %endif
@ -242,8 +242,7 @@ find %buildroot \( -name '*.la' -or -name '*.a' \) -delete
%check %check
desktop-file-validate %{buildroot}/%{_datadir}/applications/shp2pgsql-gui.desktop desktop-file-validate %{buildroot}/%{_datadir}/applications/shp2pgsql-gui.desktop
%if %runselftest %if %runselftest
%pgtests_init %postgresql_tests_run
%pgtests_start
export PGIS_REG_TMPDIR=`mktemp -d` export PGIS_REG_TMPDIR=`mktemp -d`
if ! LD_LIBRARY_PATH=%{buildroot}%_libdir make check %{_smp_mflags} ; then if ! LD_LIBRARY_PATH=%{buildroot}%_libdir make check %{_smp_mflags} ; then
for file in $(find $PGIS_REG_TMPDIR -name '*_diff'); do for file in $(find $PGIS_REG_TMPDIR -name '*_diff'); do
@ -345,6 +344,9 @@ fi
%changelog %changelog
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 2.4.3-4
- postgresql.spec moved testing macros to postgresql-test-rpm-macros
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 2.4.3-3 * Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 2.4.3-3
- Rebuilt for libjson-c.so.4 (json-c v0.13.1) - Rebuilt for libjson-c.so.4 (json-c v0.13.1)