/[packages]/cauldron/mercurial/current/SPECS/mercurial.spec
ViewVC logotype

Contents of /cauldron/mercurial/current/SPECS/mercurial.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 333829 - (show annotations) (download)
Sat Dec 22 10:31:02 2012 UTC (7 years, 3 months ago) by kamil
File size: 2380 byte(s)
- clean .spec a bit
1 Summary: A fast, lightweight distributed source control management system
2 Name: mercurial
3 Version: 2.4.1
4 Release: %mkrel 2
5 License: GPLv2+
6 Group: Development/Other
7 URL: http://www.selenic.com/mercurial/
8 Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
9 BuildRequires: python-devel
10 BuildRequires: xmlto
11 BuildRequires: asciidoc
12 BuildRequires: python-docutils
13 Provides: hg = %{version}-%{release}
14
15 %description
16 Mercurial is a fast, lightweight source control management system
17 designed for efficient handling of very large distributed
18 projects.
19
20
21 %prep
22 %setup -q
23
24 %build
25 %make all
26
27 %install
28 PYTHONDONTWRITEBYTECODE= %__python setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix} --record=%{name}.files
29 make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
30
31 install contrib/hgk $RPM_BUILD_ROOT%{_bindir}
32 install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo
33 install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}
34
35 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
36 mkdir -p $bash_completion_dir
37 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
38
39 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
40 mkdir -p $zsh_completion_dir
41 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
42
43 lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
44 mkdir -p $lisp_dir
45 install -m 644 contrib/mercurial.el $lisp_dir
46 install -m 644 contrib/mq.el $lisp_dir
47
48 xlisp_dir=$RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp
49 mkdir -p $xlisp_dir
50 install -m 644 contrib/mercurial.el $xlisp_dir
51 install -m 644 contrib/mq.el $xlisp_dir
52
53 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
54 install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
55
56 %files -f %{name}.files
57 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
58 %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
59 %dir %{_sysconfdir}/mercurial
60 %dir %{_sysconfdir}/mercurial/hgrc.d
61 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
62 %{_mandir}/man*/*
63 %{_sysconfdir}/bash_completion.d/mercurial.sh
64 %{_datadir}/zsh/site-functions/_mercurial
65 %{_datadir}/emacs/site-lisp/*.el
66 %{_datadir}/xemacs/site-packages/lisp/*.el
67 %{_bindir}/hgk
68 %{_bindir}/hg-ssh
69 %{_bindir}/mercurial-convert-repo

  ViewVC Help
Powered by ViewVC 1.1.26