[vit] Initial SCM commit
Ankur Sinha
ankursinha at fedoraproject.org
Fri Jul 11 13:29:09 UTC 2014
commit 403e80ac8ea653c64a821af9172e12133e8889ab
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur at gmail.com>
Date: Fri Jul 11 23:29:13 2014 +1000
Initial SCM commit
.gitignore | 1 +
sources | 1 +
vit-1.2-Makefile.patch | 25 ++++++++++++++++++
vit-1.2-manpage5.patch | 11 ++++++++
vit.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7cef30a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vit-1.2.tar.gz
diff --git a/sources b/sources
index e69de29..721588c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9c97b6518e8942daccafe84778567fcf vit-1.2.tar.gz
diff --git a/vit-1.2-Makefile.patch b/vit-1.2-Makefile.patch
new file mode 100644
index 0000000..f92643d
--- /dev/null
+++ b/vit-1.2-Makefile.patch
@@ -0,0 +1,25 @@
+--- Makefile.in.orig 2014-06-24 13:49:33.373879905 +1000
++++ Makefile.in 2014-06-24 13:58:42.477358148 +1000
+@@ -28,14 +28,14 @@
+ chmod 755 vit
+
+ install:
+- sudo mkdir -p @prefix@/bin
+- sudo cp vit @prefix@/bin/vit
+- sudo mkdir -p @prefix@/man/man1
+- sudo cp vit.1 @prefix@/man/man1/
+- sudo mkdir -p @prefix@/man/man5
+- sudo cp vitrc.5 @prefix@/man/man5/
+- sudo mkdir -p @prefix@/etc/
+- sudo cp commands @prefix@/etc/vit-commands
++ mkdir -p $(DESTDIR)/@prefix@/bin
++ cp vit $(DESTDIR)/@prefix@/bin/vit
++ mkdir -p $(DESTDIR)/@prefix@/share/man/man1
++ cp vit.1 $(DESTDIR)/@prefix@/share/man/man1/
++ mkdir -p $(DESTDIR)/@prefix@/share/man/man5
++ cp vitrc.5 $(DESTDIR)/@prefix@/share/man/man5/
++ mkdir -p $(DESTDIR)/etc/
++ cp commands $(DESTDIR)/etc/vit-commands
+
+ autoconf:
+ @make -f .makefile autoconf
diff --git a/vit-1.2-manpage5.patch b/vit-1.2-manpage5.patch
new file mode 100644
index 0000000..4938d51
--- /dev/null
+++ b/vit-1.2-manpage5.patch
@@ -0,0 +1,11 @@
+--- vitrc.5.orig 2014-06-24 13:52:51.998272951 +1000
++++ vitrc.5 2014-06-24 13:53:33.822937834 +1000
+@@ -58,7 +58,7 @@
+ ID of the task that is currently selected in VIT.
+
+ .TP
+-.B map c=:! task %TASKID rc.defaultwidth:200 | grep -o -P -m 1 "(ftp|http)s?://\S*" | tr -d '\n' | xsel -b<Return>
++.B map c=:! task %TASKID rc.defaultwidth:200 | grep -o -P -m 1 "(ftp|http)s?://\\\\S*" | tr -d '\n' | xsel -b<Return>
+ Copies the first link it finds to the clipboard.
+
+ .TP
diff --git a/vit.spec b/vit.spec
new file mode 100644
index 0000000..524618c
--- /dev/null
+++ b/vit.spec
@@ -0,0 +1,67 @@
+Name: vit
+Version: 1.2
+Release: 1%{?dist}
+Summary: A minimalist Taskwarrior full-screen terminal interface with Vim key bindings
+
+
+License: GPLv3+
+URL: http://taskwarrior.org
+Source0: http://taskwarrior.org/download/%{name}-%{version}.tar.gz
+
+# Fix up makefile.in
+# https://bug.tasktools.org/browse/VT-96
+Patch0: vit-1.2-Makefile.patch
+
+# Fix the man page
+# https://bug.tasktools.org/browse/VT-97
+Patch1: vit-1.2-manpage5.patch
+
+BuildArch: noarch
+BuildRequires: task perl(Curses)
+Requires: task
+
+%description
+Features:
+* Vim key bindings
+* uncluttered display
+* no mouse
+* speed
+
+
+%prep
+%setup -q
+%patch0
+%patch1
+
+# Make it look at /etc/, not /prefix/etc/
+sed -i-backup "14 s:%prefix%::" vit.pl
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+%make_install
+
+
+%files
+%doc AUTHORS CHANGES LICENSE README TODO
+%{_bindir}/%{name}
+%config(noreplace)%{_sysconfdir}/%{name}-commands
+%{_mandir}/man1/%{name}*
+%{_mandir}/man5/%{name}*
+
+
+%changelog
+* Fri Jul 11 2014 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.2-1
+- Update as per reviewer comments - rhbz1112072
+
+* Tue Jun 24 2014 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.2-1
+- Update to new 1.2 stable version
+
+* Mon Jun 23 2014 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.2-0.1.beta1
+- Initial rpmbuild
+
+* Mon Jun 23 2014 Ankur Sinha <sanjay.ankur at gmail.com>
+-
More information about the scm-commits
mailing list