[pg_view] Initial import (#1165584).
Lorenzo Dalrio
lorenzodalrio at fedoraproject.org
Wed Nov 26 14:31:17 UTC 2014
commit 2f11ce6a3975dd291c8f802ba4c2949e44a3df57
Author: Lorenzo Dalrio <lorenzo.dalrio at gmail.com>
Date: Wed Nov 26 15:31:09 2014 +0100
Initial import (#1165584).
.gitignore | 1 +
pg_view-python2-shebang.patch | 8 ++++++
pg_view.spec | 48 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2eb5da5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pg_view-11c942e2b0a3d2c054df06e6300a2d403607f96a.tar.gz
diff --git a/pg_view-python2-shebang.patch b/pg_view-python2-shebang.patch
new file mode 100644
index 0000000..2accc4b
--- /dev/null
+++ b/pg_view-python2-shebang.patch
@@ -0,0 +1,8 @@
+--- pg_view.py.old
++++ pg_view.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+ # -*- coding: utf-8 -*-
+
+ __appname__ = 'pg_view'
diff --git a/pg_view.spec b/pg_view.spec
new file mode 100644
index 0000000..669dd33
--- /dev/null
+++ b/pg_view.spec
@@ -0,0 +1,48 @@
+%global commit 11c942e2b0a3d2c054df06e6300a2d403607f96a
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+Name: pg_view
+Version: 1.2.0
+Release: 2.20141118git%{shortcommit}%{?dist}
+Summary: Command-line tool to display the state of the PostgreSQL processes
+
+License: ASL 2.0
+URL: https://github.com/zalando/pg_view
+Source0: https://github.com/zalando/pg_view/archive/%{commit}/pg_view-%{commit}.tar.gz
+Patch0: pg_view-python2-shebang.patch
+
+BuildArch: noarch
+
+Requires: python-psycopg2
+
+%description
+pg_view is a command-line tool to display the state of the PostgreSQL processes.
+It shows the per-process statistics combined with pg_stat_activity output
+for the processes that have the rows there, global system stats,
+per-partition information and the memory stats.
+
+
+%prep
+%setup -qn %{name}-%{commit}
+%patch0
+
+
+%build
+
+
+%install
+install -D -p -m 755 %{_builddir}/%{name}-%{commit}/pg_view.py \
+ %{buildroot}%{_bindir}/pg_view
+
+
+%files
+%doc CHANGELOG LICENSE README.md images
+%{_bindir}/pg_view
+
+
+%changelog
+* Thu Nov 20 2014 Lorenzo Dalrio <lorenzo.dalrio at gmail.com> - 1.2.0-2.20141118git11c942e
+- Patched shebang to point to /usr/bin/python2 explicitly.
+- Corrected package version to reflect script version.
+
+* Thu Nov 20 2014 Lorenzo Dalrio <lorenzo.dalrio at gmail.com> - 1.2.0-1.20141118git11c942e
+- Initial release.
diff --git a/sources b/sources
index e69de29..d0b2bae 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+91ab6055d997b00869ff966cbfe7ac95 pg_view-11c942e2b0a3d2c054df06e6300a2d403607f96a.tar.gz
More information about the scm-commits
mailing list