Show More
@@ -1,78 +1,78 b'' | |||||
1 | Summary: Mercurial -- a distributed SCM |
|
1 | Summary: Mercurial -- a distributed SCM | |
2 | Name: mercurial |
|
2 | Name: mercurial | |
3 | Version: snapshot |
|
3 | Version: snapshot | |
4 | Release: 0 |
|
4 | Release: 0 | |
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: / |
|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
10 |
|
10 | |||
11 | # From the README: |
|
11 | # From the README: | |
12 | # |
|
12 | # | |
13 | # Note: some distributions fails to include bits of distutils by |
|
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 |
|
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. |
|
15 | # compiler and a 3-way merge tool like merge, tkdiff, or kdiff3. | |
16 | # |
|
16 | # | |
17 | # python-devel provides an adequate python-dev. The merge tool is a |
|
17 | # python-devel provides an adequate python-dev. The merge tool is a | |
18 | # run-time dependency. |
|
18 | # run-time dependency. | |
19 | # |
|
19 | # | |
20 | BuildRequires: python >= 2.3, python-devel, make, gcc, asciidoc, xmlto |
|
20 | BuildRequires: python >= 2.3, python-devel, make, gcc, asciidoc, xmlto | |
21 |
|
21 | |||
22 | %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]))') | |
23 | %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
|
23 | %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | |
24 | %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext |
|
24 | %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext | |
25 |
|
25 | |||
26 | %description |
|
26 | %description | |
27 | Mercurial is a fast, lightweight source control management system designed |
|
27 | Mercurial is a fast, lightweight source control management system designed | |
28 | for efficient handling of very large distributed projects. |
|
28 | for efficient handling of very large distributed projects. | |
29 |
|
29 | |||
30 | %prep |
|
30 | %prep | |
31 | rm -rf $RPM_BUILD_ROOT |
|
|||
32 | %setup -q |
|
31 | %setup -q | |
33 |
|
32 | |||
34 | %build |
|
33 | %build | |
35 | make all |
|
34 | make all | |
36 |
|
35 | |||
37 | %install |
|
36 | %install | |
|
37 | rm -rf $RPM_BUILD_ROOT | |||
38 | python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} |
|
38 | python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} | |
39 | make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} |
|
39 | make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} | |
40 |
|
40 | |||
41 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} |
|
41 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} | |
42 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo |
|
42 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo | |
43 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} |
|
43 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} | |
44 | install contrib/git-viz/{hg-viz,git-rev-tree} $RPM_BUILD_ROOT%{_bindir} |
|
44 | install contrib/git-viz/{hg-viz,git-rev-tree} $RPM_BUILD_ROOT%{_bindir} | |
45 |
|
45 | |||
46 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
|
46 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
47 | mkdir -p $bash_completion_dir |
|
47 | mkdir -p $bash_completion_dir | |
48 | install contrib/bash_completion $bash_completion_dir/mercurial.sh |
|
48 | install contrib/bash_completion $bash_completion_dir/mercurial.sh | |
49 |
|
49 | |||
50 | zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
|
50 | zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions | |
51 | mkdir -p $zsh_completion_dir |
|
51 | mkdir -p $zsh_completion_dir | |
52 | install contrib/zsh_completion $zsh_completion_dir/_mercurial |
|
52 | install contrib/zsh_completion $zsh_completion_dir/_mercurial | |
53 |
|
53 | |||
54 | lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp |
|
54 | lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp | |
55 | mkdir -p $lisp_dir |
|
55 | mkdir -p $lisp_dir | |
56 | install contrib/mercurial.el $lisp_dir |
|
56 | install contrib/mercurial.el $lisp_dir | |
57 |
|
57 | |||
58 | # We don't want this, do we? |
|
58 | # We don't want this, do we? | |
59 | rm -f $RPM_BUILD_ROOT%{pythonlib}/../mercurial-*-py2.5.egg-info |
|
59 | rm -f $RPM_BUILD_ROOT%{pythonlib}/../mercurial-*-py2.5.egg-info | |
60 |
|
60 | |||
61 | %clean |
|
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT |
|
62 | rm -rf $RPM_BUILD_ROOT | |
63 |
|
63 | |||
64 | %files |
|
64 | %files | |
65 | %defattr(-,root,root,-) |
|
65 | %defattr(-,root,root,-) | |
66 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi |
|
66 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi | |
67 | %{_mandir}/man?/hg*.gz |
|
67 | %{_mandir}/man?/hg*.gz | |
68 | %{_sysconfdir}/bash_completion.d/mercurial.sh |
|
68 | %{_sysconfdir}/bash_completion.d/mercurial.sh | |
69 | %{_datadir}/zsh/site-functions/_mercurial |
|
69 | %{_datadir}/zsh/site-functions/_mercurial | |
70 | %{_datadir}/emacs/site-lisp/mercurial.el |
|
70 | %{_datadir}/emacs/site-lisp/mercurial.el | |
71 | %{_bindir}/hg |
|
71 | %{_bindir}/hg | |
72 | %{_bindir}/hgk |
|
72 | %{_bindir}/hgk | |
73 | %{_bindir}/hg-ssh |
|
73 | %{_bindir}/hg-ssh | |
74 | %{_bindir}/hg-viz |
|
74 | %{_bindir}/hg-viz | |
75 | %{_bindir}/git-rev-tree |
|
75 | %{_bindir}/git-rev-tree | |
76 | %{_bindir}/mercurial-convert-repo |
|
76 | %{_bindir}/mercurial-convert-repo | |
77 | %{pythonlib} |
|
77 | %{pythonlib} | |
78 | %{hgext} |
|
78 | %{hgext} |
General Comments 0
You need to be logged in to leave comments.
Login now