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