From: Jonas Fonseca Date: Fri, 22 Jun 2007 15:06:15 +0000 (+0200) Subject: Move tig.spec.in to the contrib area X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b48a10d72621017541c31d91f9bc8bbd4cae7a2;p=tig.git Move tig.spec.in to the contrib area --- diff --git a/Makefile b/Makefile index d5d9695..4caba6c 100644 --- 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 index 0000000..d613870 --- /dev/null +++ b/contrib/tig.spec.in @@ -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 +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 +- Include documentation sources for --without docs +- Remove PDF version of manual from being build and installed + +* Mon May 28 2007 Jakub Narebski +- Initial tig spec file diff --git a/tig.spec.in b/tig.spec.in deleted file mode 100644 index d613870..0000000 --- a/tig.spec.in +++ /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 -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 -- Include documentation sources for --without docs -- Remove PDF version of manual from being build and installed - -* Mon May 28 2007 Jakub Narebski -- Initial tig spec file