##// END OF EJS Templates
mercurial.spec: update requirements for the build
Gilles Moris -
r9635:5d8125bb default
parent child Browse files
Show More
@@ -1,86 +1,86 b''
1 1 Summary: Mercurial -- a distributed SCM
2 2 Name: mercurial
3 3 Version: snapshot
4 4 Release: 0
5 5 License: GPLv2
6 6 Group: Development/Tools
7 7 URL: http://mercurial.selenic.com/
8 8 Source0: http://mercurial.selenic.com/release/%{name}-%{version}.tar.gz
9 9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
10 10
11 11 # From the README:
12 12 #
13 13 # Note: some distributions fails to include bits of distutils by
14 14 # default, you'll need python-dev to install. You'll also need a C
15 15 # compiler and a 3-way merge tool like merge, tkdiff, or kdiff3.
16 16 #
17 17 # python-devel provides an adequate python-dev. The merge tool is a
18 18 # run-time dependency.
19 19 #
20 BuildRequires: python >= 2.4, python-devel, make, gcc, asciidoc, xmlto
20 BuildRequires: python >= 2.4, python-devel, make, gcc, docutils >= 0.5
21 21 Provides: hg = %{version}-%{release}
22 22
23 23 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
24 24 %define emacs_lispdir %{_datadir}/emacs/site-lisp
25 25
26 26 %description
27 27 Mercurial is a fast, lightweight source control management system designed
28 28 for efficient handling of very large distributed projects.
29 29
30 30 %prep
31 31 %setup -q
32 32
33 33 %build
34 34 make all
35 35
36 36 %install
37 37 rm -rf $RPM_BUILD_ROOT
38 38 python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix}
39 39 make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
40 40
41 41 install contrib/hgk $RPM_BUILD_ROOT%{_bindir}
42 42 install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo
43 43 install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}
44 44 install contrib/git-viz/{hg-viz,git-rev-tree} $RPM_BUILD_ROOT%{_bindir}
45 45
46 46 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
47 47 mkdir -p $bash_completion_dir
48 48 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
49 49
50 50 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
51 51 mkdir -p $zsh_completion_dir
52 52 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
53 53
54 54 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
55 55 install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}
56 56
57 57 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
58 58 install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
59 59
60 60 %clean
61 61 rm -rf $RPM_BUILD_ROOT
62 62
63 63 %files
64 64 %defattr(-,root,root,-)
65 65 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi contrib/*.fcgi
66 66 %doc %attr(644,root,root) %{_mandir}/man?/hg*.gz
67 67 %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
68 68 %{_sysconfdir}/bash_completion.d/mercurial.sh
69 69 %{_datadir}/zsh/site-functions/_mercurial
70 70 %{_datadir}/emacs/site-lisp/mercurial.el
71 71 %{_bindir}/hg
72 72 %{_bindir}/hgk
73 73 %{_bindir}/hg-ssh
74 74 %{_bindir}/hg-viz
75 75 %{_bindir}/git-rev-tree
76 76 %{_bindir}/mercurial-convert-repo
77 77 %dir %{_sysconfdir}/bash_completion.d/
78 78 %dir %{_datadir}/zsh/site-functions/
79 79 %dir %{_sysconfdir}/mercurial
80 80 %dir %{_sysconfdir}/mercurial/hgrc.d
81 81 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
82 82 %if "%{?pythonver}" != "2.4"
83 83 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
84 84 %endif
85 85 %{_libdir}/python%{pythonver}/site-packages/%{name}
86 86 %{_libdir}/python%{pythonver}/site-packages/hgext
General Comments 0
You need to be logged in to leave comments. Login now