Fix build rules for debian package.
[git/jrn.git] / git-core.spec.in
blob9921f46e9e88b450ee29f382337f8e2b53ccb695
1 # Pass --without docs to rpmbuild if you don't want the documetnation
2 Name: git-core
3 Version: @@VERSION@@
4 Release: 1
5 Vendor: Linus Torvalds <torvalds@osdl.org>
6 Summary: Git core and tools
7 License: GPL
8 Group: Development/Tools
9 URL: http://kernel.org/pub/software/scm/git/
10 Source: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
11 BuildRequires: zlib-devel, openssl-devel, curl-devel %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
12 BuildRoot: %{_tmppath}/%{name}-%{version}-root
13 Prereq: sh-utils, diffutils, rsync, rcs, mktemp >= 1.5
15 %description
16 GIT comes in two layers. The bottom layer is merely an extremely fast
17 and flexible filesystem-based database designed to store directory trees
18 with regard to their history. The top layer is a SCM-like tool which
19 enables human beings to work with the database in a manner to a degree
20 similar to other SCM tools (like CVS, BitKeeper or Monotone).
22 %prep
23 %setup -q
25 %build
27 make prefix=%{_prefix} all %{!?_without_docs: doc}
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 make dest=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} install install-tools %{!?_without_docs: install-doc}
33 %clean
34 rm -rf $RPM_BUILD_ROOT
36 %files
37 %defattr(-,root,root)
38 %{_bindir}/*
39 %{_datadir}/git-core/templates/*
40 %doc README COPYING Documentation/*.txt
41 %{!?_without_docs: %doc Documentation/*.html }
42 %{!?_without_docs: %{_mandir}/man1/*.1.gz}
43 %{!?_without_docs: %{_mandir}/man7/*.7.gz}
45 %changelog
46 * Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>
47 - Add the man pages, and the --without docs build option
48 * Wed Jul 7 2005 Chris Wright <chris@osdl.org>
49 - initial git spec file