Verified Commit fc565f46 authored by Adam Mercer's avatar Adam Mercer 💬

ligo-gracedb-2.2.0-3

parent 9d5b85e3
diff --git a/ligo/gracedb/cli/client.py b/ligo/gracedb/cli/client.py
index 8011a6e..d05879d 100644
--- a/ligo/gracedb/cli/client.py
+++ b/ligo/gracedb/cli/client.py
@@ -64,8 +64,7 @@ class CommandLineInterface(CommandBase):
# Other options
parser.add_argument("-s", "--service-url", dest="service",
help="GraceDB service URL", metavar="URL", type=str,
- default="https://gracedb-dev2.ligo.org/api/")
- #default=os.environ.get("GRACEDB_SERVICE_URL", DEFAULT_SERVICE_URL))
+ default=os.environ.get("GRACEDB_SERVICE_URL", DEFAULT_SERVICE_URL))
parser.add_argument("-p", "--proxy", dest="proxy", help="HTTP Proxy",
default=os.environ.get("HTTP_PROXY", None), metavar="PROXY[:PORT]",
type=str)
%define name ligo-gracedb
%define version 2.2.0
%define unmangled_version 2.2.0
%define release 3
Summary: Gravity Wave Candidate Event Database
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Source0: %{name}-%{unmangled_version}.tar.gz
Patch0: default_server.patch
License: GPLv2+
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
Vendor: Tanner Prestegard <tanner.prestegard@ligo.org>, Alexander Pace <alexander.pace@ligo.org>
Url: http://www.lsc-group.phys.uwm.edu/daswg/gracedb.html
BuildArch: noarch
BuildRequires: rpm-build
BuildRequires: epel-rpm-macros
BuildRequires: python-rpm-macros
BuildRequires: python3-rpm-macros
BuildRequires: python-setuptools
BuildRequires: python%{python3_pkgversion}-setuptools
%description
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
client tool is provided to submit a candidate event to the database.
# -- python2-ligo-gracedb
%package -n python2-%{name}
Summary: %{summary}
Provides: %{name}
Obsoletes: %{name}
Requires: python-six
Requires: python2-ligo-common
Requires: python-future
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{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
client tool is provided to submit a candidate event to the database.
# -- python-3X-ligo-gracedb
%package -n python%{python3_pkgversion}-%{name}
Summary: %{summary}
Requires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-ligo-common
Requires: python%{python3_pkgversion}-future
%{?python_provide:%python_provide python%{python3_pkgversion}-%{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
client tool is provided to submit a candidate event to the database.
# -- build steps
%prep
%setup -n %{name}-%{unmangled_version}
%patch0 -p1
%build
# build python3 first
%py3_build
# so that the scripts come from python2
%py2_build
%install
%py2_install
%py3_install
%clean
rm -rf $RPM_BUILD_ROOT
%files -n python2-%{name}
%license COPYING
%{_bindir}/gracedb
%{_bindir}/gracedb_legacy
%{python2_sitelib}/*
%files -n python%{python3_pkgversion}-%{name}
%license COPYING
%{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