Changeset: f2d3e5c1080e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f2d3e5c1080e
Added Files:
        clients/R/Tests/deps-install.timeout
        debian/libmonetdb17.install
        debian/libmonetdb5-server-cfitsio.install
        debian/monetdb-python3.install
        sql/jdbc/tests/Tests/SQLcopyinto.SQL.bat
        sql/jdbc/tests/Tests/SQLcopyinto.SQL.sh
        sql/jdbc/tests/Tests/SQLcopyinto.stable.err
        sql/jdbc/tests/Tests/SQLcopyinto.stable.out
        sql/test/BugTracker-2018/Tests/comment-on-table-is-null.Bug-6639.sql
        
sql/test/BugTracker-2018/Tests/comment-on-table-is-null.Bug-6639.stable.err
        
sql/test/BugTracker-2018/Tests/comment-on-table-is-null.Bug-6639.stable.out
        sql/test/BugTracker-2018/Tests/crash-after-call-non-existing-loader.sql
        
sql/test/BugTracker-2018/Tests/crash-after-call-non-existing-loader.stable.err
        
sql/test/BugTracker-2018/Tests/crash-after-call-non-existing-loader.stable.out
        
sql/test/BugTracker-2018/Tests/multi-column-hash-wrongly-NIL.Bug-6638.sql
        
sql/test/BugTracker-2018/Tests/multi-column-hash-wrongly-NIL.Bug-6638.stable.err
        
sql/test/BugTracker-2018/Tests/multi-column-hash-wrongly-NIL.Bug-6638.stable.out
        sql/test/BugTracker-2018/Tests/timestamp-as-boolean.Bug-6642.sql
        sql/test/BugTracker-2018/Tests/timestamp-as-boolean.Bug-6642.stable.err
        sql/test/BugTracker-2018/Tests/timestamp-as-boolean.Bug-6642.stable.out
        sql/test/BugTracker-2018/Tests/timestamp-roundtrip.Bug-6640.sql
        sql/test/BugTracker-2018/Tests/timestamp-roundtrip.Bug-6640.stable.err
        sql/test/BugTracker-2018/Tests/timestamp-roundtrip.Bug-6640.stable.out
        sql/test/miscellaneous/Tests/declared_tables.sql
        sql/test/miscellaneous/Tests/declared_tables.stable.err
        sql/test/miscellaneous/Tests/declared_tables.stable.out
        sql/test/sys-schema/Tests/bam_tables_checks.sql
        sql/test/sys-schema/Tests/bam_tables_checks.stable.err
        sql/test/sys-schema/Tests/bam_tables_checks.stable.out
        sql/test/sys-schema/Tests/check_Not_Nullable_columns.sql
        sql/test/sys-schema/Tests/check_Not_Nullable_columns.stable.err
        sql/test/sys-schema/Tests/check_Not_Nullable_columns.stable.out
        sql/test/sys-schema/Tests/geom_tables_checks.sql
        sql/test/sys-schema/Tests/geom_tables_checks.stable.err
        sql/test/sys-schema/Tests/geom_tables_checks.stable.out
        sql/test/testdb-upgrade/Tests/upgrade.stable.out.powerpc64.int128
        tools/merovingian/daemon/config/.merovingian_properties.in
        tools/merovingian/daemon/config/Makefile.ag
        tools/merovingian/daemon/config/monetdbd.in
        tools/merovingian/daemon/config/monetdbd.service.in
Removed Files:
        ChangeLog.Mar2018
        buildtools/ChangeLog.Mar2018
        clients/ChangeLog.Mar2018
        clients/mapilib/ChangeLog.Mar2018
        common/stream/ChangeLog.Mar2018
        common/utils/ChangeLog.Mar2018
        debian/libmonetdb16.install
        gdk/ChangeLog.Mar2018
        geom/ChangeLog.Mar2018
        monetdb5/ChangeLog.Mar2018
        sql/ChangeLog.Mar2018
        testing/ChangeLog.Mar2018
        tools/merovingian/ChangeLog.Mar2018
        tools/merovingian/daemon/.merovingian_properties.in
        tools/merovingian/daemon/monetdbd.service.in
Modified Files:
        .hgtags
        MonetDB.spec
        NT/mksqlwxs.py
        NT/monetdb_config.h.in
        NT/rules.msc
        buildtools/ChangeLog
        buildtools/ChangeLog-Archive
        buildtools/ChangeLog.Aug2018
        buildtools/autogen/autogen/msc.py
        buildtools/doc/windowsbuild.rst
        clients/ChangeLog-Archive
        clients/ChangeLog.Aug2018
        clients/R/Tests/dbapply.R
        clients/R/Tests/deps-install.R
        clients/R/Tests/deps-test.R
        clients/R/Tests/deps-test.timeout
        clients/R/Tests/dplyr-flights.R
        clients/R/Tests/dplyr-flights.stable.err
        clients/R/Tests/install.R
        clients/Tests/MAL-signatures.stable.out
        clients/Tests/MAL-signatures.stable.out.int128
        clients/Tests/exports.stable.out
        clients/examples/C/Makefile.ag
        clients/examples/C/sample0.c
        clients/examples/C/sample1.c
        clients/examples/C/sample4.c
        clients/examples/C/smack00.c
        clients/examples/C/smack01.c
        clients/mapiclient/Makefile.ag
        clients/mapiclient/dump.c
        clients/mapiclient/eventparser.c
        clients/mapiclient/mclient.c
        clients/mapiclient/mhelp.c
        clients/mapiclient/mnc.c
        clients/mapiclient/msqldump.c
        clients/mapiclient/msqldump.h
        clients/mapiclient/stethoscope.c
        clients/mapiclient/tachograph.c
        clients/mapiclient/tomograph.c
        clients/mapilib/ChangeLog
        clients/mapilib/mapi.c
        clients/mapilib/mapi.h
        clients/mapilib/mapi.rc
        clients/odbc/driver/ODBCConvert.c
        clients/odbc/driver/ODBCDesc.c
        clients/odbc/driver/ODBCUtil.c
        clients/odbc/driver/ODBCUtil.h
        clients/odbc/driver/SQLError.c
        clients/odbc/driver/SQLExecute.c
        clients/odbc/driver/SQLGetDescRec.c
        clients/odbc/driver/SQLGetDiagField.c
        clients/odbc/driver/SQLGetDiagRec.c
        clients/odbc/driver/SQLGetTypeInfo.c
        clients/odbc/driver/driver.rc
        clients/odbc/winsetup/setup.rc
        common/stream/ChangeLog
        common/stream/ChangeLog-Archive
        common/stream/ChangeLog.Aug2018
        common/stream/Makefile.ag
        common/stream/monetdb-stream.pc.in
        common/stream/stream.c
        common/stream/stream.h
        common/stream/stream_socket.h
        common/utils/mcrypt.c
        common/utils/msabaoth.c
        common/utils/mutils.c
        configure.ag
        debian/changelog
        debian/compat
        debian/control
        debian/fix-deb.sh
        debian/libmonetdb-client-dev.install
        debian/libmonetdb-client-odbc.install
        debian/libmonetdb-client10.install
        debian/libmonetdb-dev.install
        debian/libmonetdb-stream-dev.install
        debian/libmonetdb-stream11.install
        debian/libmonetdb5-server-bam.install
        debian/libmonetdb5-server-geom.install
        debian/libmonetdb5-server-lidar.install
        debian/monetdb-python2.install
        debian/monetdb-r.install
        debian/monetdb5-server-dev.install
        debian/monetdb5-server-hugeint.install
        debian/monetdb5-server.install
        debian/monetdb5-sql-hugeint.install
        debian/monetdb5-sql.install
        debian/rules
        gdk/ChangeLog
        gdk/ChangeLog-Archive
        gdk/ChangeLog.Aug2018
        gdk/gdk.h
        gdk/gdk_aggr.c
        gdk/gdk_align.c
        gdk/gdk_atoms.c
        gdk/gdk_bat.c
        gdk/gdk_batop.c
        gdk/gdk_bbp.c
        gdk/gdk_calc.c
        gdk/gdk_calc.h
        gdk/gdk_cross.c
        gdk/gdk_hash.c
        gdk/gdk_heap.c
        gdk/gdk_imprints.c
        gdk/gdk_join.c
        gdk/gdk_logger.c
        gdk/gdk_logger.h
        gdk/gdk_orderidx.c
        gdk/gdk_posix.c
        gdk/gdk_project.c
        gdk/gdk_select.c
        gdk/gdk_storage.c
        gdk/gdk_system.c
        gdk/gdk_system.h
        gdk/gdk_tm.c
        gdk/gdk_unique.c
        gdk/gdk_utils.c
        gdk/gdk_utils.h
        gdk/libbat.rc
        geom/lib/Makefile.ag
        geom/monetdb5/Makefile.ag
        geom/monetdb5/geom_upgrade.c
        libversions
        monetdb5/ChangeLog-Archive
        monetdb5/ChangeLog.Aug2018
        monetdb5/extras/mal_optimizer_template/Tests/opt_sql_append.stable.out
        
monetdb5/extras/mal_optimizer_template/Tests/opt_sql_append.stable.out.Windows
        monetdb5/extras/rapi/rapi.c
        monetdb5/extras/rapi/rapi.h
        monetdb5/mal/Tests/tst1150.malC
        monetdb5/mal/mal_authorize.c
        monetdb5/mal/mal_client.c
        monetdb5/mal/mal_client.h
        monetdb5/mal/mal_debugger.c
        monetdb5/mal/mal_exception.c
        monetdb5/mal/mal_import.c
        monetdb5/mal/mal_instruction.c
        monetdb5/mal/mal_interpreter.c
        monetdb5/mal/mal_linker.c
        monetdb5/mal/mal_listing.c
        monetdb5/mal/mal_parser.c
        monetdb5/mal/mal_profiler.c
        monetdb5/mal/mal_readline.c
        monetdb5/mal/mal_runtime.c
        monetdb5/mal/mal_session.c
        monetdb5/mal/mal_session.h
        monetdb5/modules/atoms/blob.c
        monetdb5/modules/atoms/color.c
        monetdb5/modules/atoms/inet.c
        monetdb5/modules/atoms/json.c
        monetdb5/modules/atoms/mtime.c
        monetdb5/modules/atoms/str.c
        monetdb5/modules/atoms/streams.c
        monetdb5/modules/atoms/url.c
        monetdb5/modules/atoms/uuid.c
        monetdb5/modules/kernel/aggr.c
        monetdb5/modules/kernel/aggr.mal
        monetdb5/modules/kernel/aggr.mal.sh
        monetdb5/modules/kernel/algebra.mal
        monetdb5/modules/kernel/bat5.c
        monetdb5/modules/kernel/status.c
        monetdb5/modules/mal/00_batcalc_hge.mal
        monetdb5/modules/mal/00_batcalc_hge.mal.sh
        monetdb5/modules/mal/01_batcalc.mal
        monetdb5/modules/mal/01_batcalc.mal.sh
        monetdb5/modules/mal/batcalc.c
        monetdb5/modules/mal/calc.c
        monetdb5/modules/mal/mal_io.c
        monetdb5/modules/mal/mal_mapi.c
        monetdb5/modules/mal/mat.c
        monetdb5/modules/mal/pcre.c
        monetdb5/modules/mal/projectionpath.c
        monetdb5/modules/mal/remote.c
        monetdb5/modules/mal/tablet.c
        monetdb5/modules/mal/tokenizer.c
        monetdb5/modules/mal/txtsim.c
        monetdb5/modules/mal/wlc.c
        monetdb5/optimizer/opt_candidates.c
        monetdb5/optimizer/opt_dataflow.c
        monetdb5/optimizer/opt_jit.c
        monetdb5/optimizer/opt_macro.c
        monetdb5/optimizer/opt_pipes.c
        monetdb5/optimizer/opt_prelude.c
        monetdb5/optimizer/opt_prelude.h
        monetdb5/optimizer/opt_profiler.c
        monetdb5/optimizer/opt_pushselect.c
        monetdb5/optimizer/opt_querylog.c
        monetdb5/tools/libmonetdb5.rc
        monetdb5/tools/monetdb5.pc.in
        sql/ChangeLog
        sql/ChangeLog-Archive
        sql/ChangeLog.Aug2018
        sql/backends/monet5/Tests/pyloader01.stable.out
        sql/backends/monet5/Tests/pyloader07.stable.out.32bit
        sql/backends/monet5/UDF/capi/capi.c
        sql/backends/monet5/UDF/pyapi/type_conversion.c
        sql/backends/monet5/UDF/pyapi/type_conversion.h
        sql/backends/monet5/UDF/pyapi3/Tests/pyloader3_01.stable.out
        sql/backends/monet5/generator/90_generator.sql
        sql/backends/monet5/generator/90_generator_hge.sql
        sql/backends/monet5/generator/generator.mal
        sql/backends/monet5/generator/generator_hge.mal
        sql/backends/monet5/mal_backend.c
        sql/backends/monet5/mal_backend.h
        sql/backends/monet5/rel_bin.c
        sql/backends/monet5/sql.c
        sql/backends/monet5/sql_assert.c
        sql/backends/monet5/sql_cat.c
        sql/backends/monet5/sql_gencode.c
        sql/backends/monet5/sql_result.c
        sql/backends/monet5/sql_scenario.c
        sql/backends/monet5/sql_statement.c
        sql/backends/monet5/sql_transaction.c
        sql/backends/monet5/sql_upgrades.c
        sql/backends/monet5/sql_user.c
        sql/backends/monet5/vaults/bam/bam_export.c
        sql/backends/monet5/vaults/bam/bam_globals.c
        sql/backends/monet5/vaults/bam/bam_globals.h
        sql/backends/monet5/vaults/bam/bam_loader.c
        sql/backends/monet5/vaults/bam/bam_wrapper.c
        sql/backends/monet5/vaults/fits/fits.c
        sql/backends/monet5/vaults/lidar/lidar.c
        sql/backends/monet5/vaults/shp/shp.c
        sql/backends/monet5/wlr.c
        sql/common/sql_types.c
        sql/include/sql_catalog.h
        sql/include/sql_hash.h
        sql/jdbc/tests/Tests/All
        sql/jdbc/tests/Tests/BugSetQueryTimeout_Bug_3357.stable.out
        
sql/jdbc/tests/Tests/Bug_Connect_as_voc_getMetaData_Failure_Bug_6388.stable.out
        sql/scripts/51_sys_schema_extension.sql
        sql/scripts/99_system.sql
        sql/server/rel_optimizer.c
        sql/server/rel_psm.c
        sql/server/rel_schema.c
        sql/server/rel_select.c
        sql/server/rel_semantic.c
        sql/server/rel_sequence.c
        sql/server/rel_updates.c
        sql/server/sql_atom.c
        sql/server/sql_decimal.c
        sql/server/sql_env.c
        sql/server/sql_mvc.c
        sql/server/sql_mvc.h
        sql/server/sql_parser.y
        sql/server/sql_partition.c
        sql/server/sql_privileges.c
        sql/server/sql_scan.c
        sql/storage/bat/bat_logger.c
        sql/storage/bat/bat_storage.c
        sql/storage/bat/bat_utils.c
        sql/storage/sql_storage.h
        sql/storage/store.c
        
sql/test/BugDay_2005-10-06_2.9.3/Tests/CrashMe_SQL_server_crash-2.SF-921673.stable.out
        sql/test/BugTracker-2009/Tests/join_topn.SF-2654133.stable.out
        sql/test/BugTracker-2009/Tests/rollback_bug.stable.err
        
sql/test/BugTracker-2009/Tests/temporary_table_leftover.SF-2734713.stable.err
        sql/test/BugTracker-2012/Tests/update_crash.Bug-2655.sql
        sql/test/BugTracker-2012/Tests/update_crash.Bug-2655.stable.out
        sql/test/BugTracker-2015/Tests/sql2pcre.Bug-3800.stable.out
        
sql/test/BugTracker-2016/Tests/timestamp_with_tz_fromstr.Bug-4019.stable.err
        
sql/test/BugTracker-2016/Tests/timestamp_with_tz_fromstr.Bug-4019.stable.out
        
sql/test/BugTracker-2017/Tests/crash_correlated_subqueries_in_select.Bug-6254.stable.out
        sql/test/BugTracker-2018/Tests/All
        
sql/test/BugTracker-2018/Tests/count_from_commented_function_signatures.Bug-6542.stable.out
        sql/test/BugTracker-2018/Tests/truncate_sys_tables.Bug-6543.stable.err
        sql/test/BugTracker-2018/Tests/truncate_sys_tables.Bug-6543.stable.out
        sql/test/BugTracker/Tests/crash_on_fkey_update2.SF-1703497.stable.err
        sql/test/Dependencies/Tests/Dependencies.stable.out
        sql/test/Dependencies/Tests/Dependencies.stable.out.int128
        sql/test/Dependencies/Tests/dependency_loop.stable.out
        sql/test/Dependencies/Tests/dependency_loop.stable.out.int128
        sql/test/Tests/All
        sql/test/Tests/seq-default.stable.out
        sql/test/Tests/setoptimizer.stable.out
        sql/test/Tests/systemfunctions.stable.out
        sql/test/Tests/systemfunctions.stable.out.int128
        sql/test/bugs/Tests/innerjoin_multiple-bug-sf-943661.stable.out
        sql/test/bugs/Tests/savepoint_rollback-bug-sf-953553.stable.err
        sql/test/emptydb-upgrade-chain-hge/Tests/upgrade.stable.out.int128
        sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out
        sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out.32bit
        sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out.int128
        sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out.powerpc64.int128
        sql/test/emptydb-upgrade-hge/Tests/upgrade.stable.out.int128
        sql/test/emptydb-upgrade/Tests/upgrade.stable.out
        sql/test/emptydb-upgrade/Tests/upgrade.stable.out.32bit
        sql/test/emptydb-upgrade/Tests/upgrade.stable.out.int128
        sql/test/emptydb/Tests/check.SQL.py
        sql/test/emptydb/Tests/check.stable.out
        sql/test/emptydb/Tests/check.stable.out.32bit
        sql/test/emptydb/Tests/check.stable.out.int128
        sql/test/json/Tests/parsing.stable.err
        sql/test/miscellaneous/Tests/All
        sql/test/pg_regress/Tests/update.stable.out
        sql/test/seq-default.sql
        sql/test/sys-schema/Tests/All
        sql/test/sys-schema/Tests/check_ForeignKey_referential_integrity.sql
        
sql/test/sys-schema/Tests/check_ForeignKey_referential_integrity.stable.out
        sql/test/sys-schema/Tests/check_PrimaryKey_uniqueness.stable.out
        sql/test/testdb-upgrade-chain-hge/Tests/dump.stable.out.int128
        sql/test/testdb-upgrade-chain-hge/Tests/upgrade.stable.out.int128
        sql/test/testdb-upgrade-chain/Tests/dump.stable.out
        sql/test/testdb-upgrade-chain/Tests/upgrade.stable.err
        sql/test/testdb-upgrade-chain/Tests/upgrade.stable.out
        sql/test/testdb-upgrade-chain/Tests/upgrade.stable.out.32bit
        sql/test/testdb-upgrade-chain/Tests/upgrade.stable.out.int128
        sql/test/testdb-upgrade-hge/Tests/dump.stable.out.int128
        sql/test/testdb-upgrade-hge/Tests/upgrade.stable.out.int128
        sql/test/testdb-upgrade/Tests/dump.stable.out
        sql/test/testdb-upgrade/Tests/upgrade.stable.out
        sql/test/testdb-upgrade/Tests/upgrade.stable.out.32bit
        sql/test/testdb-upgrade/Tests/upgrade.stable.out.int128
        testing/ChangeLog-Archive
        testing/ChangeLog.Aug2018
        testing/Mtest.py.in
        testing/exportutils.py
        tools/merovingian/ChangeLog-Archive
        tools/merovingian/ChangeLog.Aug2018
        tools/merovingian/client/Makefile.ag
        tools/merovingian/daemon/Makefile.ag
        tools/merovingian/daemon/client.c
        tools/merovingian/daemon/connections.c
        tools/merovingian/daemon/multiplex-funnel.c
        tools/merovingian/daemon/proxy.c
        tools/merovingian/utils/control.c
        tools/merovingian/utils/database.c
        tools/merovingian/utils/properties.c
        tools/merovingian/utils/utils.c
        tools/mserver/Makefile.ag
        tools/mserver/monet_version.c.in
        tools/mserver/mserver5.1.in
        tools/mserver/mserver5.c
        tools/mserver/shutdowntest.c
        vertoo.config
        vertoo.data
Branch: rename-sql
Log Message:

Merge with default


diffs (truncated from 105796 to 300 lines):

diff --git a/.hgtags b/.hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -701,3 +701,16 @@ e96bb94b4c9c3b99e1c33d9c8b49bc3ce7f8e95b
 ee3d17d6f39930280f5aa914b42b87cda09008ca Mar2018_SP1_release
 e96bb94b4c9c3b99e1c33d9c8b49bc3ce7f8e95b Mar2018_SP1_release
 44182a802530768278cf750fd93c829acdde29f1 Aug2018_root
+9c824ea44063e239b7251dce71f9af741c682211 Aug2018_1
+9c824ea44063e239b7251dce71f9af741c682211 Aug2018_release
+2d06f2ece18a5718d9cbab6e7ad64ace6b7d95bd Aug2018_3
+9c824ea44063e239b7251dce71f9af741c682211 Aug2018_release
+2d06f2ece18a5718d9cbab6e7ad64ace6b7d95bd Aug2018_release
+3aaf6c916bd870cc478d3973241bc24cafbe1655 Aug2018_5
+2d06f2ece18a5718d9cbab6e7ad64ace6b7d95bd Aug2018_release
+3aaf6c916bd870cc478d3973241bc24cafbe1655 Aug2018_release
+a242d6de1de3dc99a9583d96a61c53044108e576 Aug2018_7
+3aaf6c916bd870cc478d3973241bc24cafbe1655 Aug2018_release
+a242d6de1de3dc99a9583d96a61c53044108e576 Aug2018_release
+a2d8e19ac9d6f847dd59c5f12ff48aae815e6b5d Aug2018_9
+a2d8e19ac9d6f847dd59c5f12ff48aae815e6b5d Aug2018_SP1_release
diff --git a/ChangeLog.Mar2018 b/ChangeLog.Mar2018
deleted file mode 100644
--- a/ChangeLog.Mar2018
+++ /dev/null
@@ -1,3 +0,0 @@
-# ChangeLog file for devel
-# This file is updated with Maddlog
-
diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -1,39 +1,39 @@
-%define name MonetDB
-%define version 11.32.0
+%global name MonetDB
+%global version 11.32.0
 %{!?buildno: %global buildno %(date +%Y%m%d)}
 
-# groups of related archs
-%define all_x86 i386 i586 i686
-
-%ifarch %{all_x86}
-%define bits 32
-%else
-%define bits 64
-%define with_int128 1
+# Use bcond_with to add a --with option; i.e., "without" is default.
+# Use bcond_without to add a --without option; i.e., "with" is default.
+# The --with OPTION and --without OPTION arguments can be passed on
+# the commandline of both rpmbuild and mock.
+
+# On 64 bit architectures we build "hugeint" packages.
+%if "%{?_lib}" == "lib64"
+%bcond_without hugeint
 %endif
 
-%define release %{buildno}%{?dist}
+%global release %{buildno}%{?dist}
 
 # On RedHat Enterprise Linux and derivatives, if the Extra Packages
-# for Enterprise Linux (EPEL) repository is available, you can define
-# the _with_epel macro.  When using mock to build the RPMs, this can
-# be done using the --with=epel option to mock.
-# If the EPEL repository is availabe, or if building for Fedora, all
+# for Enterprise Linux (EPEL) repository is available, you can enable
+# its use by providing rpmbuild or mock with the "--with epel" option.
+# If the EPEL repository is availabe, or if building for Fedora, most
 # optional sub packages can be built.  We indicate that here by
 # setting the macro fedpkgs to 1.  If the EPEL repository is not
 # available and we are not building for Fedora, we set fedpkgs to 0.
 %if %{?rhel:1}%{!?rhel:0}
 # RedHat Enterprise Linux (or CentOS or Scientific Linux)
-%if %{?_with_epel:1}%{!?_with_epel:0}
+%bcond_with epel
+%if %{with epel}
 # EPEL is enabled through the command line
-%define fedpkgs 1
+%global fedpkgs 1
 %else
 # EPEL is not enabled
-%define fedpkgs 0
+%global fedpkgs 0
 %endif
 %else
 # Not RHEL (so presumably Fedora)
-%define fedpkgs 1
+%global fedpkgs 1
 %endif
 
 # On Fedora, the geos library is available, and so we can require it
@@ -45,7 +45,8 @@
 # up-to-date version of RHEL.
 %if %{fedpkgs}
 %if %{?rhel:0}%{!?rhel:1} || 0%{?rhel} >= 7
-%define with_geos 1
+# By default create the MonetDB-geom-MonetDB5 package on Fedora and RHEL 7
+%bcond_without geos
 %endif
 %endif
 
@@ -55,74 +56,49 @@
 # available if EPEL is enabled, and then only on version 7.
 %if %{fedpkgs}
 %if %{?rhel:0}%{!?rhel:1} || 0%{?rhel} >= 7
-# If the _without_lidar macro is not set, the MonetDB-lidar RPM will
-# be created.  The macro can be set when using mock by passing it the
-# flag --without=lidar.
-%if %{?_without_lidar:0}%{!?_without_lidar:1}
-%define with_lidar 1
-%endif
+# By default create the MonetDB-lidar package on Fedora and RHEL 7
+%bcond_without lidar
 %endif
 %endif
 
 %if %{?rhel:0}%{!?rhel:1}
-# If the _without_samtools macro is not set, the MonetDB-bam-MonetDB5
-# RPM will be created.  The macro can be set when using mock by
-# passing it the flag --without=samtools.
+# By default create the MonetDB-bam-MonetDB5 package.
 # Note that the samtools-devel RPM is not available on RedHat
 # Enterprise Linux and derivatives, even with EPEL availabe.
 # (Actually, at the moment of writing, samtools-devel is available in
 # EPEL for RHEL 6, but not for RHEL 7.  We don't make the distinction
 # here and just not build the MonetDB-bam-MonetDB5 RPM.)
-%if %{?_without_samtools:0}%{!?_without_samtools:1}
-%define with_samtools 1
+%bcond_without samtools
 %endif
+
+# By default use PCRE for the implementation of the SQL LIKE and ILIKE
+# operators.  Otherwise the POSIX regex functions are used.
+%bcond_without pcre
+
+%if %{fedpkgs}
+# By default, create the MonetDB-R package.
+%bcond_without rintegration
 %endif
 
-# If the _without_pcre macro is not set, the PCRE library is used for
-# the implementation of the SQL LIKE and ILIKE operators.  Otherwise
-# the POSIX regex functions are used.  The macro can be set when using
-# mock by passing it the flag --without=pcre.
-%if %{?_without_pcre:0}%{!?_without_pcre:1}
-%define with_pcre 1
+# On Fedora and RHEL 7, create the MonetDB-python2 package.
+# On RHEL 6, numpy is too old.
+%if %{?rhel:0}%{!?rhel:1} || 0%{?rhel} >= 7
+%bcond_without py2integration
+%endif
+%if %{?rhel:0}%{!?rhel:1}
+# On RHEL 6, Python 3 is too old, and on RHEL 7, the default Python 3
+# is too old (in both cases 3.4).
+%bcond_without py3integration
 %endif
 
 %if %{fedpkgs}
-# If the _without_rintegration macro is not set, the MonetDB-R RPM
-# will be created.  The macro can be set when using mock by passing it
-# the flag --without=rintegration.
-%if %{?_without_rintegration:0}%{!?_without_rintegration:1}
-%define with_rintegration 1
-%endif
-%endif
-
-# If the _without_pyintegration macro is not set, the MonetDB-python2
-# RPM will be created.  The macro can be set when using mock by
-# passing it the flag --without=pyintegration.
-# On RHEL 6, numpy is too old.
-%if %{?rhel:0}%{!?rhel:1} || 0%{?rhel} >= 7
-%if %{?_without_pyintegration:0}%{!?_without_pyintegration:1}
-%define with_pyintegration 1
-%endif
-%endif
-
-%if %{fedpkgs}
-# If the _with_fits macro is set, the MonetDB-cfitsio RPM will be
-# created.  The macro can be set when using mock by passing it the
-# flag --with=fits.
-%if %{?_with_fits:1}%{!?_with_fits:0}
-%define with_fits 1
-%endif
+# By default, create the MonetDB-cfitsio package.
+%bcond_without fits
 %endif
 
 %{!?__python2: %global __python2 %__python}
 %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 
-%if 0%{?fedora}
-%bcond_without python3
-%else
-%bcond_with python3
-%endif
-
 Name: %{name}
 Version: %{version}
 Release: %{release}
@@ -132,7 +108,7 @@ Vendor: MonetDB BV <i...@monetdb.org>
 Group: Applications/Databases
 License: MPLv2.0
 URL: https://www.monetdb.org/
-Source: 
https://www.monetdb.org/downloads/sources/Mar2018-SP1/%{name}-%{version}.tar.bz2
+Source: 
https://www.monetdb.org/downloads/sources/Aug2018-SP1/%{name}-%{version}.tar.bz2
 
 # we need systemd for the _unitdir macro to exist
 # we need checkpolicy and selinux-policy-devel for the SELinux policy
@@ -143,40 +119,44 @@ BuildRequires: checkpolicy
 BuildRequires: selinux-policy-devel
 BuildRequires: hardlink
 %endif
+BuildRequires: gcc
 BuildRequires: bison
+%if %{?rhel:1}%{!?rhel:0}
 BuildRequires: bzip2-devel
-%if %{?with_fits:1}%{!?with_fits:0}
-BuildRequires: cfitsio-devel
+%else
+BuildRequires: pkgconfig(bzip2)
 %endif
-BuildRequires: gcc
-%if %{?with_geos:1}%{!?with_geos:0}
+%if %{with fits}
+BuildRequires: pkgconfig(cfitsio)
+%endif
+%if %{with geos}
 BuildRequires: geos-devel >= 3.4.0
 %endif
-%if %{?with_lidar:1}%{!?with_lidar:0}
+%if %{with lidar}
 BuildRequires: liblas-devel >= 1.8.0
-BuildRequires: gdal-devel
-BuildRequires: libgeotiff-devel
-# Fedora 22 liblas-devel does not depend on liblas:
-BuildRequires: liblas >= 1.8.0
+BuildRequires: pkgconfig(gdal)
 %endif
-BuildRequires: libatomic_ops-devel
-BuildRequires: libcurl-devel
-BuildRequires: xz-devel
+%if %{?rhel:0}%{!?rhel:1} || 0%{?rhel} >= 7
+# RHEL >= 7, and all current Fedora
+BuildRequires: pkgconfig(atomic_ops)
+%endif
+BuildRequires: pkgconfig(libcurl)
+BuildRequires: pkgconfig(liblzma)
 # BuildRequires: libmicrohttpd-devel
 BuildRequires: libuuid-devel
-BuildRequires: libxml2-devel
-BuildRequires: openssl-devel
-%if %{?with_pcre:1}%{!?with_pcre:0}
-BuildRequires: pcre-devel >= 4.5
+BuildRequires: pkgconfig(libxml-2.0)
+BuildRequires: pkgconfig(openssl)
+%if %{with pcre}
+BuildRequires: pkgconfig(libpcre) >= 4.5
 %endif
 BuildRequires: readline-devel
 BuildRequires: unixODBC-devel
 # BuildRequires: uriparser-devel
-BuildRequires: zlib-devel
-%if %{?with_samtools:1}%{!?with_samtools:0}
+BuildRequires: pkgconfig(zlib)
+%if %{with samtools}
 BuildRequires: samtools-devel
 %endif
-%if %{?with_pyintegration:1}%{!?with_pyintegration:0}
+%if %{with py2integration}
 BuildRequires: python-devel
 %if %{?rhel:1}%{!?rhel:0}
 # RedHat Enterprise Linux calls it simply numpy
@@ -190,7 +170,11 @@ BuildRequires: numpy
 %endif
 %endif
 %endif
-%if %{?with_rintegration:1}%{!?with_rintegration:0}
+%if %{with py3integration}
+BuildRequires: python3-devel >= 3.5
+BuildRequires: python3-numpy
+%endif
+%if %{with rintegration}
 BuildRequires: R-core-devel
 %endif
 
@@ -439,13 +423,11 @@ developer.
 %{_bindir}/sqlsample.php
 %{_bindir}/sqlsample.pl
 
-%if %{?with_geos:1}%{!?with_geos:0}
+%if %{with geos}
 %package geom-MonetDB5
 Summary: MonetDB5 SQL GIS support module
 Group: Applications/Databases
 Requires: MonetDB5-server%{?_isa} = %{version}-%{release}
-Obsoletes: %{name}-geom
-Obsoletes: %{name}-geom-devel
 
 %description geom-MonetDB5
 MonetDB is a database management system that is developed from a
@@ -464,7 +446,7 @@ extensions for %{name}-SQL-server5.
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to