Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-casacore for openSUSE:Factory
checked in at 2021-05-03 22:08:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-casacore (Old)
and /work/SRC/openSUSE:Factory/.python-casacore.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-casacore"
Mon May 3 22:08:23 2021 rev:2 rq:890109 version:3.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-casacore/python-casacore.changes
2020-08-17 12:05:59.710714821 +0200
+++
/work/SRC/openSUSE:Factory/.python-casacore.new.2988/python-casacore.changes
2021-05-03 22:08:50.148320712 +0200
@@ -1,0 +2,9 @@
+Sun May 2 14:07:29 UTC 2021 - Ben Greiner <[email protected]>
+
+- Update to 3.4.0
+ * fix compatibility with casascore 3.4.0
+ * Ship binary wheels with casacore 3.4.0
+- Enable test suite (GitHub archive) with Measures data
+ WSRT_Measures_20210502-160001.ztar
+
+-------------------------------------------------------------------
Old:
----
python-casacore-3.3.1.tar.gz
New:
----
WSRT_Measures_20210502-160001.ztar
python-casacore-3.4.0-gh.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-casacore.spec ++++++
--- /var/tmp/diff_new_pack.nwTFpe/_old 2021-05-03 22:08:50.712318306 +0200
+++ /var/tmp/diff_new_pack.nwTFpe/_new 2021-05-03 22:08:50.716318288 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-casacore
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,34 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
+%{?!python_module:%define python_module() python3-%{**}}
+# libboost_python3-devel (libbost_python-py3-*) is for the primary python3
flavor only
+%define pythons python3
%global modname casacore
Name: python-casacore
-Version: 3.3.1
+Version: 3.4.0
Release: 0
Summary: A wrapper around CASACORE, the radio astronomy library
License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/casacore/python-casacore
-Source:
https://files.pythonhosted.org/packages/source/p/python-casacore/python-casacore-%{version}.tar.gz
+Source:
https://github.com/casacore/python-casacore/archive/refs/tags/v%{version}.tar.gz#/python-casacore-%{version}-gh.tar.gz
+Source1:
ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures_20210502-160001.ztar
+BuildRequires: %{python_module configargparse}
BuildRequires: %{python_module devel}
+BuildRequires: %{python_module future}
+BuildRequires: %{python_module numpy}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
-BuildRequires: casacore-devel pkgconfig(cfitsio)
+BuildRequires: %{python_module six}
+BuildRequires: casacore-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libboost_python3-devel
+BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
+BuildRequires: pkgconfig(cfitsio)
+BuildRequires: pkgconfig(wcslib)
Requires: python-configargparse
Requires: python-future
Requires: python-numpy
@@ -45,6 +55,8 @@
%prep
%setup -q -n python-casacore-%{version}
+# empty file masking the module directory
+rm pyrap/images.py
%build
export CFLAGS="%{optflags}"
@@ -54,8 +66,20 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
-# No tests defined
-#%%check
+%check
+# don't break installations when running rpmbuild outside of obs chroot
+[ -e ~/.casarc ] && mv ~/.casarc ~/.casarc.bak || :
+mkdir data
+pushd data
+tar xf %{SOURCE1}
+echo "measures.directory: $PWD" > ~/.casarc
+popd
+# old python-rpm-macros for SLE/Leap: don't import casacore from current
source dir
+mv casacore casacore.tmp
+%pytest_arch
+mv casacore.tmp casacore
+rm ~/.casarc
+[ -e ~/.casarc.bak ] && mv ~/.casarc.bak ~/.casarc || :
%files %{python_files}
%doc README.rst