contrib/mercurial.spec
branchstable
changeset 12056 85439f43749f
parent 11845 85de44ae0238
child 21638 5337cb17fa1f
equal deleted inserted replaced
12055:81c4e18c7cee 12056:85439f43749f
     1 Summary: Mercurial -- a distributed SCM
     1 Summary: A fast, lightweight Source Control Management system
     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
    38 
    38 
    39 %install
    39 %install
    40 rm -rf $RPM_BUILD_ROOT
    40 rm -rf $RPM_BUILD_ROOT
    41 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
    41 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
    42 
    42 
    43 install contrib/hgk          $RPM_BUILD_ROOT%{_bindir}
    43 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}
    44 install contrib/hg-ssh       $RPM_BUILD_ROOT%{_bindir}
    44 install -m 755 contrib/hg-ssh $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 -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
    48 install -m 644 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 -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
    52 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
    53 
    53 
    54 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
    54 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
    55 install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}
    55 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}
    56 install contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}
    56 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}
    57 
    57 
    58 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
    58 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
    59 install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
    59 install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
    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 *.cgi contrib/*.fcgi
    66 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
    67 %doc %attr(644,root,root) %{_mandir}/man?/hg*
    67 %doc %attr(644,root,root) %{_mandir}/man?/hg*
    68 %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
    68 %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
    69 %{_sysconfdir}/bash_completion.d/mercurial.sh
    69 %dir %{_datadir}/zsh/
       
    70 %dir %{_datadir}/zsh/site-functions/
    70 %{_datadir}/zsh/site-functions/_mercurial
    71 %{_datadir}/zsh/site-functions/_mercurial
       
    72 %dir %{_datadir}/emacs/site-lisp/
    71 %{_datadir}/emacs/site-lisp/mercurial.el
    73 %{_datadir}/emacs/site-lisp/mercurial.el
    72 %{_datadir}/emacs/site-lisp/mq.el
    74 %{_datadir}/emacs/site-lisp/mq.el
    73 %{_bindir}/hg
    75 %{_bindir}/hg
    74 %{_bindir}/hgk
    76 %{_bindir}/hgk
    75 %{_bindir}/hg-ssh
    77 %{_bindir}/hg-ssh
    76 %dir %{_sysconfdir}/bash_completion.d/
    78 %dir %{_sysconfdir}/bash_completion.d/
    77 %dir %{_datadir}/zsh/site-functions/
    79 %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh
    78 %dir %{_sysconfdir}/mercurial
    80 %dir %{_sysconfdir}/mercurial
    79 %dir %{_sysconfdir}/mercurial/hgrc.d
    81 %dir %{_sysconfdir}/mercurial/hgrc.d
    80 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
    82 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
    81 %if "%{?pythonver}" != "2.4"
    83 %if "%{?pythonver}" != "2.4"
    82 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
    84 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info