[reptyr] Initial import (#682414).

Ville Skyttä scop at fedoraproject.org
Sat Mar 12 09:03:44 UTC 2011


commit 981993d199124c8baaed7355f48e696a09d8e8f7
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Mar 12 11:03:19 2011 +0200

    Initial import (#682414).

 .gitignore         |    1 +
 reptyr-snapshot.sh |   26 +++++++++++++++++++++++++
 reptyr.spec        |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 4 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ed4cc56 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/reptyr-20110311git919fff7.tar.bz2
diff --git a/reptyr-snapshot.sh b/reptyr-snapshot.sh
new file mode 100755
index 0000000..2edfe4e
--- /dev/null
+++ b/reptyr-snapshot.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+if [ -z "$1" ] ; then
+    echo "usage: $0 <git-revision>"
+    exit 1
+fi
+
+gitrev=$1
+curdir=$(pwd)
+tmpdir=$(mktemp -d)
+trap cleanup EXIT
+cleanup()
+{
+    set +e
+    [ -z "$tmpdir" -o ! -d "$tmpdir" ] || rm -rf "$tmpdir"
+}
+
+release=$(date +%Y%m%d)git$gitrev
+
+cd $tmpdir
+git clone git://github.com/nelhage/reptyr.git
+cd reptyr
+git archive --format=tar --prefix=reptyr-$release/ $gitrev \
+| bzip2 --best > $curdir/reptyr-$release.tar.bz2
diff --git a/reptyr.spec b/reptyr.spec
new file mode 100644
index 0000000..7a903ba
--- /dev/null
+++ b/reptyr.spec
@@ -0,0 +1,54 @@
+%global snapshot 20110311git919fff7
+
+Name:           reptyr
+Version:        0.2
+Release:        2.%{snapshot}%{?dist}
+Summary:        Attach a running process to a new terminal
+
+Group:          Applications/System
+License:        MIT
+URL:            http://github.com/nelhage/reptyr
+# Source0 generated with Source99
+Source0:        %{name}-%{snapshot}.tar.bz2
+Source99:       %{name}-snapshot.sh
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+
+%description
+reptyr is a utility for taking an existing running program and
+attaching it to a new terminal.  Started a long-running process over
+ssh, but have to leave and don't want to interrupt it?  Just start a
+screen, use reptyr to grab it, and then kill the ssh session and head
+on home.
+
+
+%prep
+%setup -q -n %{name}-%{snapshot}
+
+
+%build
+make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install PREFIX="%{_prefix}" DESTDIR="$RPM_BUILD_ROOT"
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog COPYING NOTES README
+%{_bindir}/reptyr
+%{_mandir}/man1/reptyr.1*
+
+%changelog
+* Fri Mar 11 2011 Ville Skyttä <ville.skytta at iki.fi> - 0.2-2.20110311git919fff7
+- Update to git revision 919fff7, fixes crash with invalid arguments.
+
+* Sat Mar  5 2011 Ville Skyttä <ville.skytta at iki.fi> - 0.2-1
+- First build.
diff --git a/sources b/sources
index e69de29..605a090 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6a602afaa2807710421ce3865a68ab52  reptyr-20110311git919fff7.tar.bz2


More information about the scm-commits mailing list