Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
packaging
sl-spec-files
Commits
fc565f46
Verified
Commit
fc565f46
authored
Feb 28, 2019
by
Adam Mercer
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ligo-gracedb-2.2.0-3
parent
9d5b85e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
0 deletions
+108
-0
ligo-gracedb/default_server.patch
ligo-gracedb/default_server.patch
+14
-0
ligo-gracedb/ligo-gracedb-2.2.0-3.spec
ligo-gracedb/ligo-gracedb-2.2.0-3.spec
+94
-0
No files found.
ligo-gracedb/default_server.patch
0 → 100644
View file @
fc565f46
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)
ligo-gracedb/ligo-gracedb-2.2.0-3.spec
0 → 100644
View file @
fc565f46
%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}/*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment