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