git-core.spec.inon commit [PATCH] Require less in RPM spec (c6ae615)
   1# Pass --without docs to rpmbuild if you don't want the documetnation
   2Name:           git-core
   3Version:        @@VERSION@@
   4Release:        1
   5Vendor:         Junio C Hamano <junkio@cox.net>
   6Summary:        Git core and tools
   7License:        GPL
   8Group:          Development/Tools
   9URL:            http://kernel.org/pub/software/scm/git/
  10Source:         http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
  11BuildRequires:  zlib-devel, openssl-devel, curl-devel  %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
  12BuildRoot:      %{_tmppath}/%{name}-%{version}-root
  13Requires:       sh-utils, curl, diffutils, less, rsync, rcs, openssh-clients, perl, python >= 2.4, tk
  14
  15%description
  16This is a stupid (but extremely fast) directory content manager.  It
  17doesn't do a whole lot, but what it _does_ do is track directory
  18contents efficiently. It is intended to be the base of an efficient,
  19distributed source code management system. This package includes
  20rudimentary tools that can be used as a SCM, but you should look
  21elsewhere for tools for ordinary humans layered on top of this.
  22
  23%prep
  24%setup -q
  25
  26%build
  27make prefix=%{_prefix} all %{!?_without_docs: doc}
  28
  29%install
  30rm -rf $RPM_BUILD_ROOT
  31make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} \
  32     install %{!?_without_docs: install-doc}
  33
  34%clean
  35rm -rf $RPM_BUILD_ROOT
  36
  37%files
  38%defattr(-,root,root)
  39%{_bindir}/*
  40%{_datadir}/git-core/templates/*
  41%doc README COPYING Documentation/*.txt
  42%{!?_without_docs: %doc Documentation/*.html }
  43%{!?_without_docs: %{_mandir}/man1/*.1*}
  44%{!?_without_docs: %{_mandir}/man7/*.7*}
  45
  46%changelog
  47* Fri Sep 16 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
  48- Linus noticed that less is required, added to the dependencies
  49
  50* Sun Sep 11 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
  51- Updated dependencies
  52- Don't assume manpages are gzipped
  53
  54* Sun Aug 07 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
  55- Redid the description
  56- Cut overlong make line, loosened changelog a bit
  57- I think Junio (or perhaps OSDL?) should be vendor...
  58
  59* Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>
  60- Add the man pages, and the --without docs build option
  61
  62* Wed Jul 7 2005 Chris Wright <chris@osdl.org>
  63- initial git spec file