PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/tig-1.0/contrib/tig.spec.in

#
Autoconf | 64 lines | 50 code | 12 blank | 2 comment | 7 complexity | 8968488b4ecfa56a4c6f351045a2a48c MD5 | raw file
Possible License(s): GPL-2.0
  1. # -*- mode: rpm-spec-mode; encoding: utf-8; -*-
  2. # Pass '--without docs' to rpmbuild if you don't want the documentation to be build
  3. Summary: Tig: text-mode interface for git
  4. Name: tig
  5. Version: @@VERSION@@
  6. Release: @@RELEASE@@%{?dist}
  7. License: GPL
  8. Group: Development/Tools
  9. Vendor: Jonas Fonseca <fonseca@diku.dk>
  10. URL: http://jonas.nitro.dk/tig/
  11. Source: http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
  12. BuildRequires: ncurses-devel%{!?_without_docs:, xmlto, asciidoc > 6.0.3}
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. Requires: git-core, ncurses
  15. %description
  16. Tig is a git repository browser that additionally can act as a pager
  17. for output from various git commands.
  18. When browsing repositories, it uses the underlying git commands to
  19. present the user with various views, such as summarized revision log
  20. and showing the commit with the log message, diffstat, and the diff.
  21. Using it as a pager, it will display input from stdin and colorize it.
  22. %prep
  23. %setup -q
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
  26. %{__make} %{_smp_mflags} \
  27. prefix=%{_prefix} \
  28. all %{!?_without_docs: doc-man doc-html}
  29. %install
  30. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  31. CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
  32. %{__make} %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT \
  33. prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
  34. install %{!?_without_docs: install-doc-man}
  35. %clean
  36. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  37. %files
  38. %defattr(-,root,root)
  39. %{_bindir}/*
  40. %doc README COPYING INSTALL SITES BUGS contrib/tigrc contrib/tig-completion.bash
  41. %{!?_without_docs: %{_mandir}/man1/*.1*}
  42. %{!?_without_docs: %{_mandir}/man5/*.5*}
  43. %{!?_without_docs: %doc *.html}
  44. %{?_without_docs: %doc *.txt}
  45. %changelog
  46. * Sat Jun 23 2007 Jonas Fonseca <fonseca@diku.dk>
  47. - Include tig bash completion script
  48. * Fri Jun 1 2007 Jakub Narebski <jnareb@gmail.com>
  49. - Include documentation sources for --without docs
  50. - Remove PDF version of manual from being build and installed
  51. * Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
  52. - Initial tig spec file