debian/0000775000000000000000000000000012274752177007206 5ustar debian/copyright0000664000000000000000000000160111713260123011115 0ustar CMOR2 was downloaded from PCDMI at: http://www2-pcmdi.llnl.gov/cmor, April 25, 2010, and packaged for Debian by Alastair McKinstry . CMOR is available for unrestricted release as explained below by PCDMI Legal staff: Copyright (c) 2010-2011, Lawrence Livermore National Security, LLC. Dear Alistair, Dean tells me that you also are interested in distributing CMOR as well as CDAT. CMOR is approved for unrestricted release which is not an official open source license, but from our institution’s perspective we are supportive of it being included in your Debian distribution along with CDAT. I will be happy to work with you to achieve this. Feel free to call me at 925 422 3538 if you would like to discuss it by phone. All the best, Leah Leah Rogers Business Development Executive Industrial Partnerships Office Lawrence Livermore National Laboratory debian/libcmor-dev.examples0000664000000000000000000000000711713260123013124 0ustar Test/* debian/changelog0000664000000000000000000001347512274751112011056 0ustar cmor (2.8.0-4ubuntu1) trusty; urgency=low * d/rules: Fix misspelling. * d/control: Add missing build-dependencies for ppc64el. * Explicitly link missing netcdf lib dependencies for ppc64el. -- Daniel T Chen Thu, 06 Feb 2014 12:49:58 -0500 cmor (2.8.0-4) unstable; urgency=low * Fix spaces in Makefile that Make 3.82 is picky about. Closes: #720693. -- Alastair McKinstry Tue, 27 Aug 2013 16:43:28 +0100 cmor (2.8.0-3) unstable; urgency=low * Drop reference to upstream git repo for now. Closes: #661325 * Fix broken symlink libcmor.so. Closes: #681891 * Don't run test suite on kfreebsd-i386 as the buildds typically don't have DFLSIZ set high enough. Closes: #598745. * Standards-Version: 3.9.3 -- Alastair McKinstry Sun, 09 Sep 2012 13:56:03 +0100 cmor (2.8.0-2) unstable; urgency=low * Add lintian override for DH 9 without versioned depends. * Remove libcmor2.install that adds incorrect double copy of library. Closes: #650387. -- Alastair McKinstry Sat, 04 Feb 2012 16:33:01 +0000 cmor (2.8.0-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Sun, 27 Nov 2011 14:35:02 +0000 cmor (2.7.1-4) unstable; urgency=low * Add Multiarch support. -- Alastair McKinstry Sat, 01 Oct 2011 13:24:48 +0100 cmor (2.7.1-3) unstable; urgency=low * Add dh_numpy call to get versioned depends on numpy. Closes: #641791. -- Alastair McKinstry Fri, 16 Sep 2011 14:03:07 +0100 cmor (2.7.1-2) unstable; urgency=low * Use python2 instead of python-central (and python-support) Closes: #616778. -- Alastair McKinstry Fri, 16 Sep 2011 14:03:07 +0100 cmor (2.7.1-1) unstable; urgency=low * New upstream release. (Minor debugging statements removed). -- Alastair McKinstry Sun, 03 Jul 2011 18:24:50 +0100 cmor (2.7.0-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Tue, 21 Jun 2011 17:00:17 +0100 cmor (2.6.1-1) unstable; urgency=low * New upstream release -- Alastair McKinstry Tue, 14 Jun 2011 10:39:10 +0100 cmor (2.6-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Tue, 07 Jun 2011 09:36:53 +0100 cmor (2.5.9-1) unstable; urgency=low * New upstream release. * Recommend latest cmip5 tables. (1.3.9). * Standards-Version : 3.9.2 -- Alastair McKinstry Thu, 28 Apr 2011 10:19:48 +0100 cmor (2.5.8-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Tue, 12 Apr 2011 09:41:12 +0100 cmor (2.5.7-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Fri, 25 Feb 2011 23:24:49 +0000 cmor (2.5.5-1) unstable; urgency=low * New upstream release, fixing MPI issue. -- Alastair McKinstry Thu, 17 Feb 2011 09:33:18 +0000 cmor (2.5.4-1) unstable; urgency=low * New upstream release, fixing memory issue in python module. -- Alastair McKinstry Thu, 03 Feb 2011 15:42:41 +0000 cmor (2.5.3-1) unstable; urgency=low * New upstream release. * Add Recommends: cmip5-cmor-tables to libcmor2 -- Alastair McKinstry Tue, 01 Feb 2011 09:51:35 +0000 cmor (2.5.2-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Fri, 24 Dec 2010 15:17:40 +0000 cmor (2.5.1-2) unstable; urgency=low [ Matthias Klose ] * Fix build failure with ld --no-add-needed. Closes: #606210. -- Alastair McKinstry Tue, 07 Dec 2010 19:23:17 +0000 cmor (2.5.1-1) unstable; urgency=low * New upstream release. * Added debug-test.patch to help debug FTFBS on s390, kfreebsd-* -- Alastair McKinstry Sun, 05 Dec 2010 15:16:25 +0000 cmor (2.5.0-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Sat, 13 Nov 2010 15:15:27 +0000 cmor (2.4.0-1) unstable; urgency=low * New upstream release. * Minor patch to ensure Tables is created for tests to run. * Build-Conflict: libcmor2. Package may fail to build in strange ways if a pre-existing version of the library is present. * Update Git server; its moved. -- Alastair McKinstry Fri, 29 Oct 2010 07:20:46 +0100 cmor (2.3.0-2) unstable; urgency=low * --enable-netcdf-4 not a valid option; remove. Just use autodetection. * libcmor.so.2 should be linked against -lossp-uuid; * Add -I${includedir}/cdTime to CFlags in cmor.pc * Add FFlags variable to cmor.pc for Fortran. -- Alastair McKinstry Tue, 12 Oct 2010 00:24:35 +0100 cmor (2.3.0-1) unstable; urgency=low * New upstream release. -- Alastair McKinstry Fri, 08 Oct 2010 06:28:20 +0100 cmor (2.2.1-1) unstable; urgency=low * New Upstream release. -- Alastair McKinstry Fri, 17 Sep 2010 14:20:15 +0100 cmor (2.2.0-2) unstable; urgency=low * Include automake dependency; autoconf not needed. Closes: #592097. * gfortran, python-numpy b-deps needed for python functionality. -- Alastair McKinstry Tue, 31 Aug 2010 18:40:03 +0100 cmor (2.2.0-1) unstable; urgency=low * Upstream release 2.2.0. -- Alastair McKinstry Wed, 25 Aug 2010 19:16:37 +0100 cmor (2.0~rc10-2) unstable; urgency=low * Add autoconf as build-dependency. Closes: #591932. -- Alastair McKinstry Fri, 06 Aug 2010 18:05:36 +0100 cmor (2.0~rc10-1) unstable; urgency=low * Initial release. (Closes: #584636). -- Alastair McKinstry Thu, 29 Jul 2010 10:50:58 +0100 debian/libcmor-dev.install0000664000000000000000000000003411713260123012754 0ustar /usr/include/* usr/include debian/patches/0000775000000000000000000000000012274750526010631 5ustar debian/patches/explicit-tests.patch0000664000000000000000000005042711713260123014625 0ustar Author: Alastair McKinstry Description: Be more explicit in what is being run during tests. Useful in debugging failures on buildds in debian. Last-Updated: 2010-10-13 Forwarded: no Index: cmor/Makefile.in =================================================================== --- cmor.orig/Makefile.in 2010-10-12 00:45:29.000000000 +0100 +++ cmor/Makefile.in 2010-10-12 00:46:56.000000000 +0100 @@ -112,136 +112,136 @@ Tables: TestTables ln -sf TestTables Tables test_C: cmor - @rm -f ./ipcc_test_code ; @CC@ @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ - @rm -f test_grid ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_grid @VERB@; ./test_grid @VERB@; - @rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; + rm -f ./ipcc_test_code ; @CC@ @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ + rm -f test_grid ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_grid @VERB@; ./test_grid @VERB@; + rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; python: @echo "Building Python interface" - @${PYTHONEXEC} setup.py install @CDATPREFIX@ + ${PYTHONEXEC} setup.py install @CDATPREFIX@ test_a_python: @echo "${OK_COLOR}Testing ${TEST_NAME} ${NO_COLOR}" ${PYTHONEXEC} ${TEST_NAME} @VERB@ test_python: python - @env TEST_NAME=Test/test_python_direct_calls.py make test_a_python - @env TEST_NAME=Test/test_python_user_interface_00.py make test_a_python - @env TEST_NAME=Test/test_python_user_interface_01.py make test_a_python - @env TEST_NAME=Test/test_python_user_interface_03.py make test_a_python - @env TEST_NAME=Test/test_python_common.py make test_a_python - @env TEST_NAME=Test/cmor_speed_and_compression.py make test_a_python - @env TEST_NAME=Test/cmor_speed_and_compression_01.py make test_a_python -# @env TEST_NAME=Test/cmor_speed_and_compression_02.py make test_a_python - @env TEST_NAME=Test/test_compression.py make test_a_python - @env TEST_NAME=Test/test_python_appending.py make test_a_python - @env TEST_NAME=Test/test_python_bounds_request.py make test_a_python - @env TEST_NAME=Test/test_python_new_tables.py make test_a_python -# @env TEST_NAME=Test/test_python_index_coord.py make test_a_python - @env TEST_NAME=Test/test_python_jamie.py make test_a_python - @env TEST_NAME=Test/test_python_jamie_2.py make test_a_python - @env TEST_NAME=Test/test_python_jamie_3.py make test_a_python - @env TEST_NAME=Test/test_python_jamie_4.py make test_a_python - @env TEST_NAME=Test/test_python_jamie_6.py make test_a_python - @env TEST_NAME=Test/test_python_memory_check.py make test_a_python - @env TEST_NAME=Test/test_python_open_close_cmor_multiple.py make test_a_python - @env TEST_NAME=Test/test_python_jamie_7.py make test_a_python - @env TEST_NAME=Test/test_python_joerg_1.py make test_a_python - @env TEST_NAME=Test/test_python_joerg_2.py make test_a_python - @env TEST_NAME=Test/test_python_joerg_3.py make test_a_python - @env TEST_NAME=Test/test_python_YYYMMDDHH_exp_fmt.py make test_a_python - @env TEST_NAME=Test/test_python_region.py make test_a_python + env TEST_NAME=Test/test_python_direct_calls.py make test_a_python + env TEST_NAME=Test/test_python_user_interface_00.py make test_a_python + env TEST_NAME=Test/test_python_user_interface_01.py make test_a_python + env TEST_NAME=Test/test_python_user_interface_03.py make test_a_python + env TEST_NAME=Test/test_python_common.py make test_a_python + env TEST_NAME=Test/cmor_speed_and_compression.py make test_a_python + env TEST_NAME=Test/cmor_speed_and_compression_01.py make test_a_python +# env TEST_NAME=Test/cmor_speed_and_compression_02.py make test_a_python + env TEST_NAME=Test/test_compression.py make test_a_python + env TEST_NAME=Test/test_python_appending.py make test_a_python + env TEST_NAME=Test/test_python_bounds_request.py make test_a_python + env TEST_NAME=Test/test_python_new_tables.py make test_a_python +# env TEST_NAME=Test/test_python_index_coord.py make test_a_python + env TEST_NAME=Test/test_python_jamie.py make test_a_python + env TEST_NAME=Test/test_python_jamie_2.py make test_a_python + env TEST_NAME=Test/test_python_jamie_3.py make test_a_python + env TEST_NAME=Test/test_python_jamie_4.py make test_a_python + env TEST_NAME=Test/test_python_jamie_6.py make test_a_python + env TEST_NAME=Test/test_python_memory_check.py make test_a_python + env TEST_NAME=Test/test_python_open_close_cmor_multiple.py make test_a_python + env TEST_NAME=Test/test_python_jamie_7.py make test_a_python + env TEST_NAME=Test/test_python_joerg_1.py make test_a_python + env TEST_NAME=Test/test_python_joerg_2.py make test_a_python + env TEST_NAME=Test/test_python_joerg_3.py make test_a_python + env TEST_NAME=Test/test_python_YYYMMDDHH_exp_fmt.py make test_a_python + env TEST_NAME=Test/test_python_region.py make test_a_python test_case: @echo "${OK_COLOR}Testing: "${TEST_NAME}" with input file: ${INPUT_FILE}${NO_COLOR}" - @rm -f ./${TEST_NAME} 2>/dev/null ; @FC@ @FCFLAGS@ @DEBUG@ Test/${TEST_NAME}.f90 -L@prefix@/lib -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ @ZFLAGS@ @ZLDFLAGS@ -o ${TEST_NAME} ; - @./${TEST_NAME} @VERB@ < ${INPUT_FILE} ; - @ rm ./${TEST_NAME} + rm -f ./${TEST_NAME} 2>/dev/null ; @FC@ @FCFLAGS@ @DEBUG@ Test/${TEST_NAME}.f90 -L@prefix@/lib -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ @ZFLAGS@ @ZLDFLAGS@ -o ${TEST_NAME} ; + ./${TEST_NAME} @VERB@ < ${INPUT_FILE} ; + rm ./${TEST_NAME} ifeq (@MAKEDEPPYTHON@,python) - @env TEST_NAME="Test/check_results.py ${TEST_NAME}" make test_a_python + env TEST_NAME="Test/check_results.py ${TEST_NAME}" make test_a_python endif test_case_old_cmor_tables: @echo "Testing: "${TEST_NAME}" with input file: "${INPUT_FILE} - @rm -f ./${TEST_NAME} 2>/dev/null ; @FC@ @FCFLAGS@ @DEBUG@ Test/old_cmor_tables/${TEST_NAME}.f90 -L@prefix@/lib -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ @ZFLAGS@ @ZLDFLAGS@ -o ${TEST_NAME} ; - @./${TEST_NAME} @VERB@ < ${INPUT_FILE} ; - @ rm ./${TEST_NAME} + rm -f ./${TEST_NAME} 2>/dev/null ; @FC@ @FCFLAGS@ @DEBUG@ Test/old_cmor_tables/${TEST_NAME}.f90 -L@prefix@/lib -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ @ZFLAGS@ @ZLDFLAGS@ -o ${TEST_NAME} ; + ./${TEST_NAME} @VERB@ < ${INPUT_FILE} ; + rm ./${TEST_NAME} ifeq (@MAKEDEPPYTHON@,python) - @env TEST_NAME="Test/check_results.py old_cmor_tables_${TEST_NAME}" make test_a_python + env TEST_NAME="Test/check_results.py old_cmor_tables_${TEST_NAME}" make test_a_python endif test_fortran_old_cmor_tables: cmor - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case_old_cmor_tables - @env TEST_NAME="karls_test" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test1" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test2" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test3" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test4" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="main_prog" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_any_from_asc_i" INPUT_FILE="Test/tas_mytest_3d_i.input" make test_case_old_cmor_tables - @env TEST_NAME="mytest_4d_r" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="rewrite_harvardf_data" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_3h" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_dimensionless" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_fortran_example_00" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_fortran_example_01" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_station_data" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_region" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_sigma" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_singleton" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="mytest_4d_r_big_array" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="mytest_4d_d_big_array_2" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="mytest_4d_d_big_array_3" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="mytest_4d_d_big_array_4" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="mytest_4d_d_big_array_5" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="climatology_test_code" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_shrt_exp_nm_set_att_initi" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables - @env TEST_NAME="test_sophie" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case_old_cmor_tables + env TEST_NAME="karls_test" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test1" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test2" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test3" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test4" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="main_prog" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_any_from_asc_i" INPUT_FILE="Test/tas_mytest_3d_i.input" make test_case_old_cmor_tables + env TEST_NAME="mytest_4d_r" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="rewrite_harvardf_data" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_3h" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_dimensionless" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_fortran_example_00" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_fortran_example_01" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_station_data" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_region" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_sigma" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_singleton" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="mytest_4d_r_big_array" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="mytest_4d_d_big_array_2" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="mytest_4d_d_big_array_3" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="mytest_4d_d_big_array_4" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="mytest_4d_d_big_array_5" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="climatology_test_code" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_shrt_exp_nm_set_att_initi" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables + env TEST_NAME="test_sophie" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables test_fortran: cmor - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy.input" make test_case - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case - @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy.input" make test_case - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case - @env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case - @env TEST_NAME="karls_test" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test1" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test2" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test3" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test4" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="main_prog" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_any_from_asc_i" INPUT_FILE="Test/tas_mytest_3d_i.input" make test_case - @env TEST_NAME="mytest_4d_r" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="rewrite_harvardf_data" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_3h" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_dimensionless" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_fortran_example_00" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_fortran_example_01" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_station_data" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_cmor_grid_alejandro" INPUT_FILE="Test/alejandro.txt" make test_case - @env TEST_NAME="test_cmor_grid_alejandro" INPUT_FILE="Test/alejandro_1.txt" make test_case - @env TEST_NAME="test_cmor_grid_alejandro" INPUT_FILE="Test/alejandro_2.txt" make test_case - @env TEST_NAME="test_region" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_sigma" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_singleton" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="mytest_4d_r_big_array" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="mytest_4d_d_big_array_2" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="mytest_4d_d_big_array_3" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="mytest_4d_d_big_array_4" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="mytest_4d_d_big_array_5" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="climatology_test_code" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_shrt_exp_nm_set_att_initi" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_sophie" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="ipcc_test_code" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy.input" make test_case + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case + env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy.input" make test_case + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case + env TEST_NAME="test_any_from_asc_d" INPUT_FILE="Test/3D_xty_split_lon.input" make test_case + env TEST_NAME="karls_test" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test1" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test2" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test3" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test4" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="main_prog" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_any_from_asc_i" INPUT_FILE="Test/tas_mytest_3d_i.input" make test_case + env TEST_NAME="mytest_4d_r" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="rewrite_harvardf_data" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_3h" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_dimensionless" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_fortran_example_00" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_fortran_example_01" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_station_data" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_cmor_grid_alejandro" INPUT_FILE="Test/alejandro.txt" make test_case + env TEST_NAME="test_cmor_grid_alejandro" INPUT_FILE="Test/alejandro_1.txt" make test_case + env TEST_NAME="test_cmor_grid_alejandro" INPUT_FILE="Test/alejandro_2.txt" make test_case + env TEST_NAME="test_region" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_sigma" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_singleton" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="mytest_4d_r_big_array" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="mytest_4d_d_big_array_2" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="mytest_4d_d_big_array_3" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="mytest_4d_d_big_array_4" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="mytest_4d_d_big_array_5" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="climatology_test_code" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_shrt_exp_nm_set_att_initi" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_sophie" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="ipcc_test_code" INPUT_FILE="Test/noinput" make test_case atest: cmor # @env TEST_NAME="mytest_4d_d_big_array_2" INPUT_FILE="Test/noinput" make test_case - @env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case + env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case # @env TEST_NAME="wegner_test" INPUT_FILE="Test/noinput" make test_case debian/patches/makefile-spaces.patch0000664000000000000000000000204112207145132014663 0ustar Author: Alastair McKInstry Description: Fix bug in Makefile: TAB not spaces! Last-Updated: 2013-08-27 Forwarded: no Index: cmor-2.8.0/Makefile.in =================================================================== --- cmor-2.8.0.orig/Makefile.in 2013-08-27 16:41:10.000000000 +0100 +++ cmor-2.8.0/Makefile.in 2013-08-27 16:41:39.000000000 +0100 @@ -155,8 +155,8 @@ @env TEST_NAME=Test/test_python_joerg_8.py make test_a_python # @env TEST_NAME=Test/test_python_joerg_9.py make test_a_python @env TEST_NAME=Test/test_python_joerg_10.py make test_a_python - @env TEST_NAME=Test/test_python_joerg_11.py make test_a_python - @env TEST_NAME=Test/test_python_joerg_12.py make test_a_python + @env TEST_NAME=Test/test_python_joerg_11.py make test_a_python + @env TEST_NAME=Test/test_python_joerg_12.py make test_a_python @env TEST_NAME=Test/test_python_YYYMMDDHH_exp_fmt.py make test_a_python @env TEST_NAME=Test/test_python_region.py make test_a_python @env TEST_NAME=Test/jamie_hybrid_height.py make test_a_python debian/patches/series0000664000000000000000000000023012274746267012050 0ustar # clean.patch shlib-link.patch pkgconfig.patch makefile-fix.patch debug-test.patch ld-no-add-needed.patch makefile-spaces.patch lib-underlinkage.patch debian/patches/ld-no-add-needed.patch0000664000000000000000000000433711713260123014624 0ustar Description: Fix ld --as-needed failure to build Origin: Ubuntu, Matthias Klose. Bug-Debian: http://bugs.debian.org/606210 Forwarded: no Reviewed-By: Alastair McKinstry Last-Update: 2010-12-07:wq Index: cmor-2.8.0/Makefile.in =================================================================== --- cmor-2.8.0.orig/Makefile.in 2011-11-27 14:52:18.000000000 +0000 +++ cmor-2.8.0/Makefile.in 2011-11-27 14:52:19.000000000 +0000 @@ -112,9 +112,9 @@ Tables: TestTables ln -sf TestTables Tables test_C: cmor Tables - rm -f ./ipcc_test_code ; @CC@ --verbose @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ - rm -f test_grid ; @CC@ --verbose @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_grid @VERB@; ./test_grid @VERB@; - rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; + rm -f ./ipcc_test_code ; @CC@ --verbose @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -lm -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ + rm -f test_grid ; @CC@ --verbose @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -lm -o test_grid @VERB@; ./test_grid @VERB@; + rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -lm -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; python: @echo "Building Python interface" @${PYTHONEXEC} setup.py install @CDATPREFIX@ debian/patches/clean.patch0000664000000000000000000000160511713260123012720 0ustar Author: Alastair McKinstry Description: clean up more fully. Last-Updated: 2010-07-29 Forwarded: no Index: cmor-2.0/Makefile.in =================================================================== --- cmor-2.0.orig/Makefile.in 2010-07-29 10:38:27.000000000 +0100 +++ cmor-2.0/Makefile.in 2010-07-29 10:39:28.000000000 +0100 @@ -28,8 +28,9 @@ INCFILES = @INCFILES@ # Temporary Files -TMPFILES = *~ $(LIBFILES) *.mod a.out *.stb Test/*.nc Test/IPCC_Fourth_Assessment *.LOG* *.dSYM Test/IPCC Test/CMIP5 CMIP5 Tables -DISTFILES = libcmor.a +TMPFILES = *~ $(LIBFILES) *.mod a.out *.stb Test/*.nc Test/IPCC_Fourth_Assessment *.LOG* *.dSYM Test/IPCC Test/CMIP5 CMIP5 Tables \ + configure config.sub config.log cmor.pc include/cmor_locale.h +DISTFILES = libcmor.a libcmor.so.2 DEPEND= makedepend -c @DEBUG@ @CFLAGS@ @NCCFLAGS@ @UDUNITS2FLAGS@ @UUIDFLAGS@ @ZFLAGS@ all: cmor debian/patches/pkgconfig.patch0000664000000000000000000000132311713260123013602 0ustar Author: Alastair McKinstry Description: Add FFlags, includedir, fix for directories needed for C; Index: cmor-2.8.0/cmor.pc.in =================================================================== --- cmor-2.8.0.orig/cmor.pc.in 2011-11-27 14:41:05.000000000 +0000 +++ cmor-2.8.0/cmor.pc.in 2011-11-27 14:52:15.000000000 +0000 @@ -1,10 +1,12 @@ prefix=@prefix@ exec_prefix=${prefix} libdir=${exec_prefix}/lib +includedir=${prefix}/include +fflags=-I${includedir} Name: cmor Description: Climate Model Output Rewriter library Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lcmor -CFlags: -I${prefix}/include +CFlags: -I${includedir} -I${includedir}/cdTime Requires: udunits netcdf ossp-uuid debian/patches/lib-underlinkage.patch0000664000000000000000000000260712274750526015073 0ustar Index: cmor-2.8.0/configure.ac =================================================================== --- cmor-2.8.0.orig/configure.ac 2011-11-27 09:41:05.000000000 -0500 +++ cmor-2.8.0/configure.ac 2014-02-06 13:15:46.692955014 -0500 @@ -211,28 +211,28 @@ AC_CHECK_FILE([${with_netcdf}/bin/nc-config],[HAS_NCCONFIG=yes],[HAS_NCCONFIG=no]) if [ test ${HAS_NCCONFIG} == "yes" ] ; then NCCFLAGS=`${with_netcdf}/bin/nc-config --cflags` - NCLDFLAGS=`${with_netcdf}/bin/nc-config --libs` + NCLDFLAGS="`${with_netcdf}/bin/nc-config --libs` ${EXTRA_NCLDFLAGS}" else #echo "CRAP!" NCCFLAGS=" -I${with_netcdf}/include" if [ test ${RTAG} != "none" ] ; then - NCLDFLAGS=" -L${with_netcdf}/lib ${RTAG}${with_netcdf}/lib -lnetcdf" + NCLDFLAGS=" -L${with_netcdf}/lib ${RTAG}${with_netcdf}/lib -lnetcdf ${EXTRA_NCLDFLAGS}" else - NCLDFLAGS=" -L${with_netcdf}/lib -lnetcdf" + NCLDFLAGS=" -L${with_netcdf}/lib -lnetcdf ${EXTRA_NCLDFLAGS}" fi fi else NCCFLAGS="-lnetcdf" - NCLDFLAGS="" + NCLDFLAGS=" ${EXTRA_NCLDFLAGS}" fi else AC_PATH_PROG(NCCONFIG,nc-config,"no") if [ test NCCONFIG != "no" ] ; then NCCFLAGS=`${NCCONFIG} --cflags` - NCLDFLAGS=`${NCCONFIG} --libs` + NCLDFLAGS="`${NCCONFIG} --libs` ${EXTRA_NCLDFLAGS}" else NCCFLAGS="-lnetcdf" - NCLDFLAGS="" + NCLDFLAGS=" ${EXTRA_NCLDFLAGS}" fi fi debian/patches/makefile-fix.patch0000664000000000000000000000472411713260123014204 0ustar Author: Alastair McKinstry Description: Need to ensure Tables is made before test_fortran is run Last-Updated: 2010-10-26 Forwarded: no Index: cmor-2.8.0/Makefile.in =================================================================== --- cmor-2.8.0.orig/Makefile.in 2011-11-27 14:52:02.000000000 +0000 +++ cmor-2.8.0/Makefile.in 2011-11-27 14:52:36.000000000 +0000 @@ -111,7 +111,7 @@ @echo "All C and Fortran Test passed successfully" Tables: TestTables ln -sf TestTables Tables -test_C: cmor +test_C: cmor Tables @rm -f ./ipcc_test_code ; @CC@ @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ @rm -f test_grid ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_grid @VERB@; ./test_grid @VERB@; @rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; @@ -192,7 +192,7 @@ ifeq (@MAKEDEPPYTHON@,python) @env TEST_NAME="Test/check_results.py old_cmor_tables_${TEST_NAME}" make test_a_python endif -test_fortran_old_cmor_tables: cmor +test_fortran_old_cmor_tables: cmor Tables @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case_old_cmor_tables @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy.input" make test_case_old_cmor_tables @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case_old_cmor_tables @@ -227,7 +227,7 @@ @env TEST_NAME="test_lots_of_variables" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables @env TEST_NAME="test_shrt_exp_nm_set_att_initi" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables @env TEST_NAME="test_sophie" INPUT_FILE="Test/noinput" make test_case_old_cmor_tables -test_fortran: cmor +test_fortran: cmor Tables @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/tas_3D_noreorder.input" make test_case @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy.input" make test_case @env TEST_NAME="test_any_from_asc" INPUT_FILE="Test/3D_txy_split_lon.input" make test_case debian/patches/shlib-link.patch0000664000000000000000000000217311713260123013673 0ustar Author: Alastair McKinstry Description: Bugfix to link libcmor.so.2 against -lossp-uuid Last-Updated: 2010-10-14 Forwarded: no Index: cmor-2.8.0/Makefile.in =================================================================== --- cmor-2.8.0.orig/Makefile.in 2011-11-27 14:41:05.000000000 +0000 +++ cmor-2.8.0/Makefile.in 2011-11-27 14:52:02.000000000 +0000 @@ -30,7 +30,7 @@ # Temporary Files TMPFILES = *~ $(LIBFILES) *.mod a.out *.stb Test/*.nc Test/IPCC_Fourth_Assessment *.LOG* *.dSYM Test/IPCC Test/CMIP5 CMIP5 Tables DISTFILES = libcmor.a -DEPEND= makedepend -c @DEBUG@ @CFLAGS@ @NCCFLAGS@ @UDUNITS2FLAGS@ @UUIDFLAGS@ @ZFLAGS@ +DEPEND= makedepend -c @DEBUG@ @CFLAGS@ @NCCFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @ZFLAGS@ all: cmor @echo @@ -44,7 +44,7 @@ @FC@ -c -o $@ -fPIC @FCFLAGS@ @DEBUG@ @MACROS@ $< shlib $(SONAME): $(PIC_OBJS) - $(CC) -shared -o $(SONAME) $(SHLIBFLAGS) $(PIC_OBJS) @NCCFLAGS@ @UDUNITS2FLAGS@ @UUIDFLAGS@ @ZFLAGS@ + $(CC) -shared -o $(SONAME) $(SHLIBFLAGS) $(PIC_OBJS) @NCCFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @ZFLAGS@ depend: $(LIBSOURCES) ${DEPEND} $(LIBSOURCES) debian/patches/debug-test.patch0000664000000000000000000000422011713260123013675 0ustar Author: Alastair McKinstry Description: Turn on debugging to work out why it FTBFS on kfreebsd-i386, s390. Last-Updated: 2010-12-05 Forwarded: no Index: cmor-2.8.0/Makefile.in =================================================================== --- cmor-2.8.0.orig/Makefile.in 2011-11-27 14:52:17.000000000 +0000 +++ cmor-2.8.0/Makefile.in 2011-11-27 14:52:32.000000000 +0000 @@ -112,9 +112,9 @@ Tables: TestTables ln -sf TestTables Tables test_C: cmor Tables - @rm -f ./ipcc_test_code ; @CC@ @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ - @rm -f test_grid ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_grid @VERB@; ./test_grid @VERB@; - @rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; + rm -f ./ipcc_test_code ; @CC@ --verbose @CPPFLAGS@ @CFLAGS@ Test/ipcc_test_code.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o ipcc_test_code @VERB@; ./ipcc_test_code @VERB@ + rm -f test_grid ; @CC@ --verbose @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_grid.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_grid @VERB@; ./test_grid @VERB@; + rm -f test_lots_of_variables ; @CC@ @CPPFLAGS@ @CFLAGS@ @CPPFLAGS@ Test/test_lots_of_variables.c -L@prefix@/lib -I@prefix@/include -L. -lcmor @NCCFLAGS@ @NCLDFLAGS@ @UDUNITS2LDFLAGS@ @UDUNITS2FLAGS@ @UUIDLDFLAGS@ @UUIDFLAGS@ -o test_lots_of_variables @VERB@; ./test_lots_of_variables @VERB@; python: @echo "Building Python interface" @${PYTHONEXEC} setup.py install @CDATPREFIX@ debian/libcmor-dev.docs0000664000000000000000000000000611713260123012235 0ustar Doc/* debian/control0000664000000000000000000000467012274752153010612 0ustar Source: cmor Section: utils Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Alastair McKinstry Build-Depends: debhelper (>= 8.1.3~), dh-buildinfo, libossp-uuid-dev, libudunits2-dev, libnetcdf-dev, uuid-dev, python-all-dev (>= 2.6.6-3~), python-setuptools (>= 0.6b3), libgfortran3, automake, python-numpy, gfortran, pkg-config, libcurl4-gnutls-dev, libldap2-dev, heimdal-multidev, libsqlite3-dev, libsasl2-dev, libkeyutils-dev, libffi-dev, libhdf5-mpi-dev | libhdf5-dev Build-Conflicts: libcmor2 Standards-Version: 3.9.3 Homepage: http://www2-pcmdi.llnl.gov/cmor Package: libcmor2 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: cmip5-cmor-tables (>= 1.3.9-1) Description: Climate Model Output Rewriter library The "Climate Model Output Rewriter" (CMOR, pronounced "Seymour") comprises a set of C-based functions, with bindings to both python and FORTRAN 90, that can be used to produce CF-compliant netCDF files that fulfill the requirements of many of the climate community's standard model experiments. These experiments are collectively referred to as MIP's and include, for example, AMIP, CMIP, CFMIP, PMIP, APE, and IPCC scenario runs. The output resulting from CMOR is "self-describing" and facilitates analysis of results across models. Package: libcmor-dev Section: libdevel Architecture: any Depends: libcmor2 ( = ${binary:Version}), ${misc:Depends} Recommends: pkg-config Description: Development files for Climate Model Output Rewriter The "Climate Model Output Rewriter" (CMOR, pronounced "Seymour") comprises a set of C-based functions, with bindings to both python and FORTRAN 90, that can be used to produce CF-compliant netCDF files that fulfill the requirements of many of the climate community's standard model experiments. These experiments are collectively referred to as MIP's and include, for example, AMIP, CMIP, CFMIP, PMIP, APE, and IPCC scenario runs. The output resulting from CMOR is "self-describing" and facilitates analysis of results across models. Package: python-cmor Section: python Architecture: any Multi-Arch: foreign Depends: ${pydeb:Depends}, ${python:Depends}, ${misc:Depends}, ${shlibs:Depends} Provides: ${python:Provides} Description: python interface to CMOR This is a python interface to CMOR, the Climate Model Output Rewriter. debian/source/0000775000000000000000000000000011713260123010464 5ustar debian/source/format0000664000000000000000000000001411713260123011672 0ustar 3.0 (quilt) debian/source/lintian-overrides0000664000000000000000000000007711713260123014051 0ustar cmor source: package-needs-versioned-debhelper-build-depends 9 debian/compat0000664000000000000000000000000211713260123010362 0ustar 9 debian/rules0000775000000000000000000000325312274751527010267 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) BUILD_ARCH_OS :-= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) NETCDF_LIBS ?= $(shell pkg-config --libs heimdal-gssapi netcdf libffi) %: dh $@ --with python2 override_dh_auto_configure: autoreconf -fiv ln -sf /usr/share/misc/config.sub dh_auto_configure -- --disable-color --enable-verbose-test \ UUIDLDFLAGS="-lossp-uuid" UUIDFLAGS="-I/usr/include/ossp" SZLIBFLAGS=nosz \ EXTRA_NCLDFLAGS="-lhdf5 -lm -lcurl $(NETCDF_LIBS) -lz -lidn -lrtmp -lgcrypt \ -lgnutls -lgssapi_krb5 -llber -lldap_r -lgpg-error -ltasn1 -lp11-kit \ -lk5crypto -lkrb5support -lsasl2 -lkeyutils -lsqlite3" override_dh_auto_clean: rm -rf config.sub config.log config.status libcmor.a libcmor.so.2 build test_grid override_dh_auto_build: $(MAKE) FC=gfortran ifeq ( $(BUILD_ARCH_OS)-$(BUILD_ARCH_CPU), kfreebsd-i386) override_dh_auto_test: @echo "Tests disabled; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598745" endif override_dh_auto_install: $(MAKE) install DESTDIR=`pwd`/debian/tmp $(MAKE) install_shlib DESTDIR=`pwd`/debian/tmp for p in `pyversions --supported` ; do \ $$p ./setup.py install --prefix=`pwd`/debian/python-cmor/usr ; \ done dh_numpy dh_install -p libcmor2 libcmor.so.2 $(LIBDIR) dh_install -p libcmor-dev debian/tmp/usr/lib/libcmor.a $(LIBDIR) dh_install -p libcmor-dev debian/tmp/usr/lib/pkgconfig/cmor.pc $(LIBDIR)/pkgconfig dh_link -p libcmor-dev $(LIBDIR)/libcmor.so.2 $(LIBDIR)/libcmor.so debian/libcmor2.dirs0000664000000000000000000000006211713260123011556 0ustar /usr/share/cmor/Tables /usr/share/cmor/Tables_csv