public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tig] v2.6.1: Initial import of tig
@ 2026-06-15 7:22 jbowes
0 siblings, 0 replies; only message in thread
From: jbowes @ 2026-06-15 7:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/tig
Branch : v2.6.1
Commit : 9030e4fddb012ad400a3fb07f0af52ea1bf35ca3
Author : jbowes <jbowes@fedoraproject.org>
Date : 2007-06-02T16:08:56+00:00
Stats : +127/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/tig/c/9030e4fddb012ad400a3fb07f0af52ea1bf35ca3?branch=v2.6.1
Log:
Initial import of tig
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..dfd68dd 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+tig-0.7.tar.gz
diff --git a/Supply-explicit-permission-bits-to-install.patch b/Supply-explicit-permission-bits-to-install.patch
new file mode 100644
index 0000000..58582a3
--- /dev/null
+++ b/Supply-explicit-permission-bits-to-install.patch
@@ -0,0 +1,56 @@
+From a066a53681c331e096cc88ffbeaced33372c5448 Mon Sep 17 00:00:00 2001
+From: Jeffrey C. Ollie <jeff@ocjtech.us>
+Date: Thu, 31 May 2007 14:20:32 -0500
+Subject: [PATCH] Supply explicit permission bits to 'install'
+
+'install' will install files with permissions set to '0755' if the
+permissions are not specified on the command line. Having the execute
+bits set on non-executable content is not desireable. Specify mode
+0644 for non-executable content as well as specify mode 0755 for
+executable content (in case the defaults change or are different on
+different systems). Also tell 'install' to preserve timestamps.
+
+[ Updated to also do it when installing HTML files. --jonas ]
+
+Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
+Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
+---
+ Makefile | 8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 57196b0..0e42de6 100644
+--- a/Makefile
++++ b/Makefile
+@@ -38,7 +38,7 @@ doc-html: $(HTMLDOC)
+ install: all
+ mkdir -p $(DESTDIR)$(bindir) && \
+ for prog in $(PROGS); do \
+- install $$prog $(DESTDIR)$(bindir); \
++ install -p -m 0755 $$prog $(DESTDIR)$(bindir); \
+ done
+
+ install-doc-man: doc-man
+@@ -46,8 +46,8 @@ install-doc-man: doc-man
+ $(DESTDIR)$(mandir)/man5
+ for doc in $(MANDOC); do \
+ case "$$doc" in \
+- *.1) install $$doc $(DESTDIR)$(mandir)/man1 ;; \
+- *.5) install $$doc $(DESTDIR)$(mandir)/man5 ;; \
++ *.1) install -p -m 0644 $$doc $(DESTDIR)$(mandir)/man1 ;; \
++ *.5) install -p -m 0644 $$doc $(DESTDIR)$(mandir)/man5 ;; \
+ esac \
+ done
+
+@@ -55,7 +55,7 @@ install-doc-html: doc-html
+ mkdir -p $(DESTDIR)$(docdir)/tig
+ for doc in $(HTMLDOC); do \
+ case "$$doc" in \
+- *.html) install $$doc $(DESTDIR)$(docdir)/tig ;; \
++ *.html) install -p -m 0644 $$doc $(DESTDIR)$(docdir)/tig ;; \
+ esac \
+ done
+
+--
+1.5.2.888.g96a5e
+
diff --git a/sources b/sources
index e69de29..ad74b86 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3774b673e1180461fb003378908604e9 tig-0.7.tar.gz
diff --git a/tig.spec b/tig.spec
new file mode 100644
index 0000000..6d8f6ed
--- /dev/null
+++ b/tig.spec
@@ -0,0 +1,69 @@
+Name: tig
+Version: 0.7
+Release: 3%{?dist}
+Summary: Text-mode interface for the git revision control system
+
+Group: Development/Tools
+License: GPL
+URL: http://jonas.nitro.dk/tig
+Source0: http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
+Patch0: Supply-explicit-permission-bits-to-install.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: ncurses-devel
+BuildRequires: xmlto
+BuildRequires: asciidoc
+Requires: git-core
+
+%description
+Tig is a repository browser for the git revision control system that
+additionally can act as a pager for output from various git commands.
+
+When browsing repositories, it uses the underlying git commands to present the
+user with various views, such as summarized revision log and showing the commit
+with the log message, diffstat, and the diff.
+
+Using it as a pager, it will display input from stdin and colorize it.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+make CFLAGS='%{optflags}' %{?_smp_mflags} all doc-man doc-html
+
+#Convert to unix line endings
+sed -i -e 's/\r//' *.html
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install install-doc-man DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} \
+ mandir=%{_mandir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README SITES BUGS manual.txt *.html
+
+%{_bindir}/tig
+
+%{_mandir}/man1/tig.1*
+%{_mandir}/man5/tigrc.5*
+
+
+%changelog
+* Fri Jun 01 2007 James Bowes <jbowes@redhat.com> - 0.7-3
+- Incorporate differences from jcollie's tig spec.
+
+* Fri Jun 01 2007 James Bowes <jbowes@redhat.com> - 0.7-2
+- Update spec file after review feedback.
+
+* Thu May 31 2007 James Bowes <jbowes@redhat.com> - 0.7-1
+- Initial packaging.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 7:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 7:22 [rpms/tig] v2.6.1: Initial import of tig jbowes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox