Commit a396b759 authored by Duncan Macleod's avatar Duncan Macleod Committed by Tanner Prestegard

ligo-gracedb.spec: use python-srpm-macros

easy to resolve dependencies when building a src.rpm
parent d2662495
Pipeline #71153 passed with stages
in 4 minutes and 37 seconds
......@@ -15,12 +15,18 @@ Vendor: Tanner Prestegard <tanner.prestegard@ligo.org>, Alexander Pace <alexa
Url: http://www.lsc-group.phys.uwm.edu/daswg/gracedb.html
BuildArch: noarch
BuildRequires: python
BuildRequires: python%{python3_version_nodots}
# srpm dependencies:
BuildRequires: python-srpm-macros
# build macro dependencies:
BuildRequires: python2-rpm-macros
BuildRequires: python3-rpm-macros
# build dependencies:
BuildRequires: python
BuildRequires: python%{python3_pkgversion}
BuildRequires: python-setuptools
BuildRequires: python%{python3_version_nodots}-setuptools
BuildRequires: python%{python3_pkgversion}-setuptools
%description
The gravitational-wave candidate event database (GraceDB) is a prototype
......@@ -49,16 +55,16 @@ client tool is provided to submit a candidate event to the database.
# -- python-3X-ligo-gracedb
%package -n python%{python3_version_nodots}-%{name}
%package -n python%{python3_pkgversion}-%{name}
Summary: %{summary}
Requires: python%{python3_version_nodots}-six
Requires: python%{python3_version_nodots}-ligo-common
Requires: python%{python3_version_nodots}-future
Requires: python%{python3_version_nodots}-cryptography
Requires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-ligo-common
Requires: python%{python3_pkgversion}-future
Requires: python%{python3_pkgversion}-cryptography
%{?python_provide:%python_provide python%{python3_version_nodots}-%{name}}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
%description -n python%{python3_version_nodots}-%{name}
%description -n python%{python3_pkgversion}-%{name}
The gravitational-wave candidate event database (GraceDB) is a prototype
system to organize candidate events from gravitational-wave searches and
to provide an environment to record information about follow-ups. A simple
......@@ -88,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/gracedb_legacy
%{python2_sitelib}/*
%files -n python%{python3_version_nodots}-%{name}
%files -n python%{python3_pkgversion}-%{name}
%license LICENSE
%{python3_sitelib}/*
......
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