Verified Commit 769b99a6 authored by Adam Mercer's avatar Adam Mercer 💬

ligo-segments-1.2.0-2

rebuild for python3 transition
parent 57ddca36
%global srcname ligo-segments
Name: %{srcname}
Version: 1.2.0
Release: 2%{?dist}
Summary: Representations of semi-open intervals
License: GPLv3
URL: https://git.ligo.org/lscsoft/ligo-segments/
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires: python3-rpm-macros
BuildRequires: python-devel
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python2-setuptools
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python-six
BuildRequires: python%{python3_pkgversion}-six
BuildRequires: pytest
BuildRequires: python%{python3_pkgversion}-pytest
%description
This module defines the segment and segmentlist objects, as well as the
infinity object used to define semi-infinite and infinite segments.
%package -n python2-%{srcname}
Summary: %{summary}
Requires: python-six
Requires: ligo-common
# not supported by old rpmbuild
#Recommends: python2-lal
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
This module defines the segment and segmentlist objects, as well as the
infinity object used to define semi-infinite and infinite segments.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
Requires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-ligo-common
# not supported by old rpmbuild
#Recommends: python3-lal
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%description -n python%{python3_pkgversion}-%{srcname}
This module defines the segment and segmentlist objects, as well as the
infinity object used to define semi-infinite and infinite segments.
%prep
%autosetup -n %{srcname}-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitearch}/*
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitearch}/*
%changelog
* Thu May 10 2018 Duncan Macleod <duncan.macleod@ligo.org>
- 1.0.0: first release of ligo.segments, should be funtionally identical to glue.segments
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment