forked from pool/python-casacore
Accepting request 889840 from home:bnavigator:branches:science
- 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 OBS-URL: https://build.opensuse.org/request/show/889840 OBS-URL: https://build.opensuse.org/package/show/science/python-casacore?expand=0&rev=3
This commit is contained in:
parent
03e2f29550
commit
3dfb8e0fab
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -21,3 +21,5 @@
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
## Specific LFS patterns
|
||||
WSRT_Measures_20210502-160001.ztar filter=lfs diff=lfs merge=lfs -text
|
||||
|
3
WSRT_Measures_20210502-160001.ztar
Normal file
3
WSRT_Measures_20210502-160001.ztar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82554d2346fbd591b9a30790447959362fe9feab9a281b3ec114a2807b8f7fd3
|
||||
size 20251223
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c1f196b87ea34f930da6900eebc0a8f39291352d4def6631a2ec148ef5cf083a
|
||||
size 100130
|
3
python-casacore-3.4.0-gh.tar.gz
Normal file
3
python-casacore-3.4.0-gh.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:32595f00a50c77f2f2b22fb05c891a4b0fef64919801a7a6025a91681f9feb6c
|
||||
size 289492
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 2 14:07:29 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 6 21:48:06 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
|
@ -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 @@ A python wrapper around CASACORE, the radio astronomy library
|
||||
|
||||
%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 @@ export CFLAGS="%{optflags}"
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user