%define name gwosc %define version 0.7.1 %define release 1 Name: %{name} Version: %{version} Release: %{release}%{?dist} Summary: A python interface to the Gravitational-Wave Open Science Center data archive License: MIT Url: https://gwosc.readthedocs.io Source0: %pypi_source Packager: Duncan Macleod Vendor: Duncan Macleod BuildArch: noarch Prefix: %{_prefix} # rpmbuild dependencies BuildRequires: python-srpm-macros BuildRequires: python-rpm-macros BuildRequires: python3-rpm-macros # build dependencies BuildRequires: python%{python3_pkgversion}-setuptools >= 38.2.5 BuildRequires: python%{python3_pkgversion}-setuptools_scm BuildRequires: python%{python3_pkgversion}-wheel # runtime dependencies (required for %check) BuildRequires: python%{python3_pkgversion}-requests >= 1.0.0 # testing dependencies (required for %check) %if 0%{?rhel} == 0 || 0%{?rhel} >= 8 BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-requests-mock >= 1.5.0 %endif %description The `gwosc` package provides an interface to querying the open data releases hosted on from the GEO, LIGO, and Virgo gravitational-wave observatories. # -- python-3X-gwosc %package -n python%{python3_pkgversion}-%{name} Summary: %{summary} Requires: python%{python3_pkgversion}-requests >= 1.0.0 %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} %description -n python%{python3_pkgversion}-%{name} The `gwosc` package provides an interface to querying the open data releases hosted on from the GEO, LIGO, and Virgo gravitational-wave observatories. # -- build steps %prep %autosetup -n %{name}-%{version} %build %py3_build %check %if 0%{?rhel} == 0 || 0%{?rhel} >= 8 %{__python3} -m pytest --color=yes --pyargs %{name} -m "not remote" %endif %install %py3_install %clean rm -rf $RPM_BUILD_ROOT %files -n python%{python3_pkgversion}-%{name} %license LICENSE %doc README.md %{python3_sitelib}/* # -- changelog %changelog * Thu Apr 20 2023 Duncan Macleod - 0.7.1-1 - update to 0.7.1 * Mon Apr 10 2023 Duncan Macleod - 0.7.0-1 - update to 0.7.0 * Thu Aug 12 2021 Duncan Macleod - 0.6.1-1 - update to 0.6.1 * Mon Aug 09 2021 Duncan Macleod - 0.6.0-1 - update to 0.6.0 * Wed May 19 2021 Duncan Macleod - 0.5.8-1 - update to 0.5.8 * Wed May 12 2021 Duncan Macleod - 0.5.7-1 - update to 0.5.7 - add setuptools-scm and wheel build requirements - run tests in color * Thu Aug 27 2020 Duncan Macleod - 0.5.6-1 - update to 0.5.6 - add python3-requests-mock as a test requirement * Mon Jul 27 2020 Duncan Macleod - 0.5.5-1 - update to 0.5.5 * Sun Jul 26 2020 Duncan Macleod - 0.5.4-1 - update to 0.5.4 * Wed Apr 22 2020 Duncan Macleod - 0.5.3-1 - update to 0.5.3 * Wed Mar 18 2020 Duncan Macleod - 0.5.2-1 - update to 0.5.2 * Tue Mar 17 2020 Duncan Macleod - 0.5.1-1 - update to 0.5.1 * Tue Mar 17 2020 Duncan Macleod - 0.5.0-1 - drop support for python2 * Tue Mar 12 2019 Duncan Macleod - 0.4.3-1 - bug fix release, see github releases for details * Mon Mar 11 2019 Duncan Macleod - 0.4.2-1 - bug fix release, see github releases for details * Thu Feb 28 2019 Duncan Macleod - 0.4.1-1 - development release to include catalogue parsing * Mon Oct 1 2018 Duncan Macleod - 0.3.4 testing bug-fix release * Mon Jul 9 2018 Duncan Macleod - 0.3.3 packaging bug-fix release