Code

Move tig.spec.in to the contrib area
authorJonas Fonseca <fonseca@diku.dk>
Fri, 22 Jun 2007 15:06:15 +0000 (17:06 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 22 Jun 2007 15:06:40 +0000 (17:06 +0200)
Makefile
contrib/tig.spec.in [new file with mode: 0644]
tig.spec.in [deleted file]

index d5d9695cc8cbee4608ad6222b7c54af1639bb6e1..4caba6c3922b7999be056180c43a6d6e98099562 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -105,7 +105,7 @@ release-dist: release-doc
 .PHONY: all all-debug doc doc-man doc-html install install-doc \
        install-doc-man install-doc-html clean spell-check dist rpm
 
-tig.spec: tig.spec.in
+tig.spec: contrib/tig.spec.in
        sed -e 's/@@VERSION@@/$(RPM_VERSION)/g' < $< > $@
 
 tig: tig.c
diff --git a/contrib/tig.spec.in b/contrib/tig.spec.in
new file mode 100644 (file)
index 0000000..d613870
--- /dev/null
@@ -0,0 +1,61 @@
+# -*- mode: rpm-spec-mode; encoding: utf-8; -*-
+# Pass '--without docs' to rpmbuild if you don't want the documentation to be build
+
+Summary:       Tig: text-mode interface for git
+Name:          tig
+Version:       @@VERSION@@
+Release:       1%{?dist}
+License:       GPL
+Group:                 Development/Tools
+Vendor:        Jonas Fonseca <fonseca@diku.dk>
+URL:           http://jonas.nitro.dk/tig/
+Source:        http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
+BuildRequires:         ncurses-devel%{!?_without_docs:, xmlto, asciidoc > 6.0.3}
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires:      git-core, ncurses
+
+%description
+Tig is a git repository browser 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
+
+%build
+CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
+%{__make} %{_smp_mflags} \
+       prefix=%{_prefix} \
+       all %{!?_without_docs: doc-man doc-html}
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
+%{__make} %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT \
+       prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
+       install %{!?_without_docs: install-doc-man}
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%{_bindir}/*
+%doc README COPYING INSTALL SITES BUGS TODO contrib/tigrc
+%{!?_without_docs: %{_mandir}/man1/*.1*}
+%{!?_without_docs: %{_mandir}/man5/*.5*}
+%{!?_without_docs: %doc *.html}
+%{?_without_docs:  %doc *.txt}
+
+%changelog
+* Fri Jun  1 2007 Jakub Narebski <jnareb@gmail.com>
+- Include documentation sources for --without docs
+- Remove PDF version of manual from being build and installed
+
+* Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
+- Initial tig spec file
diff --git a/tig.spec.in b/tig.spec.in
deleted file mode 100644 (file)
index d613870..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-# -*- mode: rpm-spec-mode; encoding: utf-8; -*-
-# Pass '--without docs' to rpmbuild if you don't want the documentation to be build
-
-Summary:       Tig: text-mode interface for git
-Name:          tig
-Version:       @@VERSION@@
-Release:       1%{?dist}
-License:       GPL
-Group:                 Development/Tools
-Vendor:        Jonas Fonseca <fonseca@diku.dk>
-URL:           http://jonas.nitro.dk/tig/
-Source:        http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
-BuildRequires:         ncurses-devel%{!?_without_docs:, xmlto, asciidoc > 6.0.3}
-BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:      git-core, ncurses
-
-%description
-Tig is a git repository browser 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
-
-%build
-CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
-%{__make} %{_smp_mflags} \
-       prefix=%{_prefix} \
-       all %{!?_without_docs: doc-man doc-html}
-
-%install
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
-%{__make} %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT \
-       prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
-       install %{!?_without_docs: install-doc-man}
-
-%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root)
-%{_bindir}/*
-%doc README COPYING INSTALL SITES BUGS TODO contrib/tigrc
-%{!?_without_docs: %{_mandir}/man1/*.1*}
-%{!?_without_docs: %{_mandir}/man5/*.5*}
-%{!?_without_docs: %doc *.html}
-%{?_without_docs:  %doc *.txt}
-
-%changelog
-* Fri Jun  1 2007 Jakub Narebski <jnareb@gmail.com>
-- Include documentation sources for --without docs
-- Remove PDF version of manual from being build and installed
-
-* Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
-- Initial tig spec file