tests: enable build testsuite
Version: 2.4.0-1
This commit is contained in:
parent
b95d41a06d
commit
3a1524b330
10
postgis-2.4.0-check-gdal.patch
Normal file
10
postgis-2.4.0-check-gdal.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
diff --git a/raster/test/regress/check_gdal_expected b/raster/test/regress/check_gdal_expected
|
||||||
|
index ab1eebe..0a4be7f 100644
|
||||||
|
--- a/raster/test/regress/check_gdal_expected
|
||||||
|
+++ b/raster/test/regress/check_gdal_expected
|
||||||
|
@@ -1,4 +1,5 @@
|
||||||
|
t
|
||||||
|
+t
|
||||||
|
DISABLE_ALL
|
||||||
|
ENABLE_ALL
|
||||||
|
t
|
27
postgis-2.4.0-code-check-only.patch
Normal file
27
postgis-2.4.0-code-check-only.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff --git a/GNUmakefile.in b/GNUmakefile.in
|
||||||
|
index 878548e..3c95a2f 100644
|
||||||
|
--- a/GNUmakefile.in
|
||||||
|
+++ b/GNUmakefile.in
|
||||||
|
@@ -35,7 +35,7 @@ clean-local:
|
||||||
|
# TODO: drop 'test' target..
|
||||||
|
test: check
|
||||||
|
|
||||||
|
-check: all docs-check check-no-trailing-blanks
|
||||||
|
+check: all
|
||||||
|
|
||||||
|
check-no-trailing-blanks:
|
||||||
|
! find . -name '*.c' -o -name '*.h' | \
|
||||||
|
diff --git a/doc/Makefile.in b/doc/Makefile.in
|
||||||
|
index 31fd778..6268e7f 100644
|
||||||
|
--- a/doc/Makefile.in
|
||||||
|
+++ b/doc/Makefile.in
|
||||||
|
@@ -397,6 +397,9 @@ check: $(XML_INPUTS)
|
||||||
|
$(XMLLINT) --loaddtd --xinclude --valid postgis-out.xml > /dev/null
|
||||||
|
endif
|
||||||
|
|
||||||
|
+check:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
check-localized:
|
||||||
|
@for lang in $(translations); do \
|
||||||
|
echo "Creating html for language $$lang..."; \
|
15
postgis.spec
15
postgis.spec
@ -2,6 +2,7 @@
|
|||||||
%{!?utils:%global utils 1}
|
%{!?utils:%global utils 1}
|
||||||
%{!?gcj_support:%global gcj_support 0}
|
%{!?gcj_support:%global gcj_support 0}
|
||||||
%{!?upgrade:%global upgrade 1}
|
%{!?upgrade:%global upgrade 1}
|
||||||
|
%{!?runselftest:%global runselftest 1}
|
||||||
|
|
||||||
%global majorversion 2.4
|
%global majorversion 2.4
|
||||||
%global prevmajorversion 2.3
|
%global prevmajorversion 2.3
|
||||||
@ -24,6 +25,8 @@ Source4: filter-requires-perl-Pg.sh
|
|||||||
Patch1: postgis-configureac21.patch
|
Patch1: postgis-configureac21.patch
|
||||||
Patch2: postgis-2.4.0-upgrade-2.3.3.patch
|
Patch2: postgis-2.4.0-upgrade-2.3.3.patch
|
||||||
Patch3: postgis-2.4.0-install-desktop.patch
|
Patch3: postgis-2.4.0-install-desktop.patch
|
||||||
|
Patch4: postgis-2.4.0-code-check-only.patch
|
||||||
|
Patch5: postgis-2.4.0-check-gdal.patch
|
||||||
URL: http://www.postgis.net
|
URL: http://www.postgis.net
|
||||||
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
@ -35,6 +38,9 @@ BuildRequires: autoconf, automake, libtool
|
|||||||
BuildRequires: postgresql-upgrade-devel
|
BuildRequires: postgresql-upgrade-devel
|
||||||
%endif
|
%endif
|
||||||
Requires: postgresql-server(:MODULE_COMPAT_%{postgresql_major})
|
Requires: postgresql-server(:MODULE_COMPAT_%{postgresql_major})
|
||||||
|
%if %runselftest
|
||||||
|
BuildRequires: postgresql-server
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -122,6 +128,8 @@ cd %{name}-%{prevversion}
|
|||||||
)
|
)
|
||||||
%endif
|
%endif
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
cp -p %{SOURCE2} .
|
cp -p %{SOURCE2} .
|
||||||
|
|
||||||
|
|
||||||
@ -206,6 +214,12 @@ 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
|
||||||
|
%pgtests_init
|
||||||
|
%pgtests_start
|
||||||
|
export PGIS_REG_TMPDIR=`mktemp -d`
|
||||||
|
LD_LIBRARY_PATH=%{buildroot}%_libdir make check %{_smp_mflags}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %javabuild
|
%if %javabuild
|
||||||
@ -298,6 +312,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/shp2pgsql-gui.deskto
|
|||||||
- install desktop files into /usr/share/applications
|
- install desktop files into /usr/share/applications
|
||||||
- optimize build without %%upgrade
|
- optimize build without %%upgrade
|
||||||
- drop explicit requires on libraries (resolved by implicit lib*.so*())
|
- drop explicit requires on libraries (resolved by implicit lib*.so*())
|
||||||
|
- enable build testsuite
|
||||||
|
|
||||||
* Tue Oct 10 2017 Pavel Raiskup <praiskup@redhat.com> - 2.4.0-1
|
* Tue Oct 10 2017 Pavel Raiskup <praiskup@redhat.com> - 2.4.0-1
|
||||||
- provide postgis-upgrade package (rhbz#1475177)
|
- provide postgis-upgrade package (rhbz#1475177)
|
||||||
|
Loading…
Reference in New Issue
Block a user