Show More
@@ -1,88 +1,87 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: GPLv2+ |
|
5 | License: GPLv2+ | |
6 | Group: Development/Tools |
|
6 | Group: Development/Tools | |
7 | URL: http://mercurial.selenic.com/ |
|
7 | URL: http://mercurial.selenic.com/ | |
8 | Source0: http://mercurial.selenic.com/release/%{name}-%{version}.tar.gz |
|
8 | Source0: http://mercurial.selenic.com/release/%{name}-%{version}.tar.gz | |
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
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.4, python-devel, make, gcc, docutils >= 0.5 |
|
20 | BuildRequires: python >= 2.4, python-devel, make, gcc, docutils >= 0.5 | |
21 | Provides: hg = %{version}-%{release} |
|
21 | Provides: hg = %{version}-%{release} | |
22 | Requires: python >= 2.4 |
|
22 | Requires: python >= 2.4 | |
23 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it |
|
23 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it | |
24 | #Requires: tk |
|
24 | #Requires: tk | |
25 |
|
25 | |||
26 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
|
26 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | |
27 | %define emacs_lispdir %{_datadir}/emacs/site-lisp |
|
27 | %define emacs_lispdir %{_datadir}/emacs/site-lisp | |
28 |
|
28 | |||
29 | %description |
|
29 | %description | |
30 | Mercurial is a fast, lightweight source control management system designed |
|
30 | Mercurial is a fast, lightweight source control management system designed | |
31 | for efficient handling of very large distributed projects. |
|
31 | for efficient handling of very large distributed projects. | |
32 |
|
32 | |||
33 | %prep |
|
33 | %prep | |
34 | %setup -q |
|
34 | %setup -q | |
35 |
|
35 | |||
36 | %build |
|
36 | %build | |
37 | make all |
|
37 | make all | |
38 |
|
38 | |||
39 | %install |
|
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT |
|
40 | rm -rf $RPM_BUILD_ROOT | |
41 | python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} |
|
41 | make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir} | |
42 | make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} |
|
|||
43 |
|
42 | |||
44 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} |
|
43 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} | |
45 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo |
|
44 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo | |
46 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} |
|
45 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} | |
47 |
|
46 | |||
48 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
|
47 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
49 | mkdir -p $bash_completion_dir |
|
48 | mkdir -p $bash_completion_dir | |
50 | install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh |
|
49 | install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh | |
51 |
|
50 | |||
52 | zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
|
51 | zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions | |
53 | mkdir -p $zsh_completion_dir |
|
52 | mkdir -p $zsh_completion_dir | |
54 | install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial |
|
53 | install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial | |
55 |
|
54 | |||
56 | mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} |
|
55 | mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} | |
57 | install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir} |
|
56 | install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir} | |
58 | install contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir} |
|
57 | install contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir} | |
59 |
|
58 | |||
60 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d |
|
59 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d | |
61 | install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc |
|
60 | install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc | |
62 |
|
61 | |||
63 | %clean |
|
62 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT |
|
63 | rm -rf $RPM_BUILD_ROOT | |
65 |
|
64 | |||
66 | %files |
|
65 | %files | |
67 | %defattr(-,root,root,-) |
|
66 | %defattr(-,root,root,-) | |
68 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi |
|
67 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi | |
69 | %doc %attr(644,root,root) %{_mandir}/man?/hg* |
|
68 | %doc %attr(644,root,root) %{_mandir}/man?/hg* | |
70 | %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc |
|
69 | %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc | |
71 | %{_sysconfdir}/bash_completion.d/mercurial.sh |
|
70 | %{_sysconfdir}/bash_completion.d/mercurial.sh | |
72 | %{_datadir}/zsh/site-functions/_mercurial |
|
71 | %{_datadir}/zsh/site-functions/_mercurial | |
73 | %{_datadir}/emacs/site-lisp/mercurial.el |
|
72 | %{_datadir}/emacs/site-lisp/mercurial.el | |
74 | %{_datadir}/emacs/site-lisp/mq.el |
|
73 | %{_datadir}/emacs/site-lisp/mq.el | |
75 | %{_bindir}/hg |
|
74 | %{_bindir}/hg | |
76 | %{_bindir}/hgk |
|
75 | %{_bindir}/hgk | |
77 | %{_bindir}/hg-ssh |
|
76 | %{_bindir}/hg-ssh | |
78 | %{_bindir}/mercurial-convert-repo |
|
77 | %{_bindir}/mercurial-convert-repo | |
79 | %dir %{_sysconfdir}/bash_completion.d/ |
|
78 | %dir %{_sysconfdir}/bash_completion.d/ | |
80 | %dir %{_datadir}/zsh/site-functions/ |
|
79 | %dir %{_datadir}/zsh/site-functions/ | |
81 | %dir %{_sysconfdir}/mercurial |
|
80 | %dir %{_sysconfdir}/mercurial | |
82 | %dir %{_sysconfdir}/mercurial/hgrc.d |
|
81 | %dir %{_sysconfdir}/mercurial/hgrc.d | |
83 | %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc |
|
82 | %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc | |
84 | %if "%{?pythonver}" != "2.4" |
|
83 | %if "%{?pythonver}" != "2.4" | |
85 | %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info |
|
84 | %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info | |
86 | %endif |
|
85 | %endif | |
87 | %{_libdir}/python%{pythonver}/site-packages/%{name} |
|
86 | %{_libdir}/python%{pythonver}/site-packages/%{name} | |
88 | %{_libdir}/python%{pythonver}/site-packages/hgext |
|
87 | %{_libdir}/python%{pythonver}/site-packages/hgext |
General Comments 0
You need to be logged in to leave comments.
Login now