Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/mercurial.spec @ 5124:06154aff2b1a
merge with -stable
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 08 Aug 2007 23:00:01 +0200 |
parents | cc7a43af709d |
children |
comparison
equal
deleted
inserted
replaced
5123:f94dbc6c7eaf | 5124:06154aff2b1a |
---|---|
5 License: GPL | 5 License: GPL |
6 Group: Development/Tools | 6 Group: Development/Tools |
7 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz | 7 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz |
8 URL: http://www.selenic.com/mercurial | 8 URL: http://www.selenic.com/mercurial |
9 BuildRoot: /tmp/build.%{name}-%{version}-%{release} | 9 BuildRoot: /tmp/build.%{name}-%{version}-%{release} |
10 | |
11 # From the README: | |
12 # | |
13 # Note: some distributions fails to include bits of distutils by | |
14 # default, you'll need python-dev to install. You'll also need a C | |
15 # compiler and a 3-way merge tool like merge, tkdiff, or kdiff3. | |
16 # | |
17 # python-devel provides an adequate python-dev. The merge tool is a | |
18 # run-time dependency. | |
19 # | |
20 BuildRequires: python >= 2.3, python-devel, make, gcc, asciidoc, xmlto | |
10 | 21 |
11 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | 22 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
12 %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | 23 %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
13 %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext | 24 %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext |
14 | 25 |
19 %prep | 30 %prep |
20 rm -rf $RPM_BUILD_ROOT | 31 rm -rf $RPM_BUILD_ROOT |
21 %setup -q | 32 %setup -q |
22 | 33 |
23 %build | 34 %build |
24 python setup.py build | 35 make all |
25 | 36 |
26 %install | 37 %install |
27 python setup.py install --root $RPM_BUILD_ROOT | 38 python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} |
39 make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} | |
40 | |
41 install contrib/hgk $RPM_BUILD_ROOT%{_bindir} | |
42 install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo | |
43 install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} | |
44 install contrib/git-viz/{hg-viz,git-rev-tree} $RPM_BUILD_ROOT%{_bindir} | |
45 | |
46 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
47 mkdir -p $bash_completion_dir | |
48 install contrib/bash_completion $bash_completion_dir/mercurial.sh | |
49 | |
50 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions | |
51 mkdir -p $zsh_completion_dir | |
52 install contrib/zsh_completion $zsh_completion_dir/_mercurial | |
53 | |
54 lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp | |
55 mkdir -p $lisp_dir | |
56 install contrib/mercurial.el $lisp_dir | |
28 | 57 |
29 %clean | 58 %clean |
30 rm -rf $RPM_BUILD_ROOT | 59 rm -rf $RPM_BUILD_ROOT |
31 | 60 |
32 %files | 61 %files |
33 %defattr(-,root,root,-) | 62 %defattr(-,root,root,-) |
34 %doc doc/* *.cgi | 63 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi |
64 %{_mandir}/man?/hg*.gz | |
35 %dir %{pythonlib} | 65 %dir %{pythonlib} |
36 %dir %{hgext} | 66 %dir %{hgext} |
67 %{_sysconfdir}/bash_completion.d/mercurial.sh | |
68 %{_datadir}/zsh/site-functions/_mercurial | |
69 %{_datadir}/emacs/site-lisp/mercurial.el | |
70 %{_bindir}/hg | |
71 %{_bindir}/hgk | |
37 %{_bindir}/hgmerge | 72 %{_bindir}/hgmerge |
38 %{_bindir}/hg | 73 %{_bindir}/hg-ssh |
74 %{_bindir}/hg-viz | |
75 %{_bindir}/git-rev-tree | |
76 %{_bindir}/mercurial-convert-repo | |
39 %{pythonlib}/templates | 77 %{pythonlib}/templates |
40 %{pythonlib}/*.py* | 78 %{pythonlib}/*.py* |
41 %{pythonlib}/hgweb/*.py* | 79 %{pythonlib}/hgweb/*.py* |
42 %{pythonlib}/*.so | 80 %{pythonlib}/*.so |
43 %{hgext}/*.py* | 81 %{hgext}/*.py* |
82 %{hgext}/convert/*.py* |