Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP5:Update
python-casacore
python-casacore.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-casacore.spec of Package python-casacore
# # spec file for package python-casacore # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!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.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://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: %{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 Requires: python-six ExcludeArch: %ix86 %python_subpackages %description 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}" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %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 %license LICENSE %{python_sitearch}/%{modname}/ %{python_sitearch}/pyrap/ %{python_sitearch}/python_%{modname}-%{version}-py%{python_version}.egg-info/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor