Fri, 11 Mar 2011 21:39:41 +0100
Import new package specs for introduction into repository.
michael@0 | 1 | Summary: A fast, lightweight Source Control Management system |
michael@1 | 2 | Vendor: Europalab Software |
michael@1 | 3 | Packager: Michael Schloh von Bennewitz |
michael@1 | 4 | Distribution: MeeGo Thirdparty |
michael@0 | 5 | Name: mercurial |
michael@1 | 6 | Version: 1.7.2 |
michael@1 | 7 | Release: 20101201 |
michael@0 | 8 | License: GPLv2+ |
michael@0 | 9 | Group: Development/Tools |
michael@0 | 10 | URL: http://mercurial.selenic.com/ |
michael@0 | 11 | Source0: http://mercurial.selenic.com/release/%{name}-%{version}.tar.gz |
michael@0 | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
michael@0 | 13 | |
michael@0 | 14 | # From the README: |
michael@0 | 15 | # |
michael@0 | 16 | # Note: some distributions fails to include bits of distutils by |
michael@0 | 17 | # default, you'll need python-dev to install. You'll also need a C |
michael@0 | 18 | # compiler and a 3-way merge tool like merge, tkdiff, or kdiff3. |
michael@0 | 19 | # |
michael@0 | 20 | # python-devel provides an adequate python-dev. The merge tool is a |
michael@0 | 21 | # run-time dependency. |
michael@0 | 22 | # |
michael@0 | 23 | BuildRequires: python >= 2.4, python-devel, make, gcc, python-docutils >= 0.5, gettext |
michael@0 | 24 | Provides: hg = %{version}-%{release} |
michael@0 | 25 | Requires: python >= 2.4 |
michael@0 | 26 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it |
michael@0 | 27 | #Requires: tk |
michael@0 | 28 | |
michael@0 | 29 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
michael@0 | 30 | %define emacs_lispdir %{_datadir}/emacs/site-lisp |
michael@0 | 31 | |
michael@0 | 32 | %description |
michael@0 | 33 | Mercurial is a fast, lightweight source control management system designed |
michael@0 | 34 | for efficient handling of very large distributed projects. |
michael@0 | 35 | |
michael@0 | 36 | %prep |
michael@0 | 37 | %setup -q |
michael@0 | 38 | |
michael@0 | 39 | %build |
michael@0 | 40 | make all |
michael@0 | 41 | |
michael@0 | 42 | %install |
michael@0 | 43 | rm -rf $RPM_BUILD_ROOT |
michael@0 | 44 | make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir} |
michael@0 | 45 | |
michael@0 | 46 | install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir} |
michael@0 | 47 | install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} |
michael@0 | 48 | |
michael@0 | 49 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
michael@0 | 50 | mkdir -p $bash_completion_dir |
michael@0 | 51 | install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh |
michael@0 | 52 | |
michael@0 | 53 | zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions |
michael@0 | 54 | mkdir -p $zsh_completion_dir |
michael@0 | 55 | install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial |
michael@0 | 56 | |
michael@0 | 57 | mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} |
michael@0 | 58 | install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir} |
michael@0 | 59 | install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir} |
michael@0 | 60 | |
michael@0 | 61 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d |
michael@0 | 62 | install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc |
michael@0 | 63 | |
michael@0 | 64 | %clean |
michael@0 | 65 | rm -rf $RPM_BUILD_ROOT |
michael@0 | 66 | |
michael@0 | 67 | %files |
michael@0 | 68 | %defattr(-,root,root,-) |
michael@0 | 69 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi |
michael@0 | 70 | %doc %attr(644,root,root) %{_mandir}/man?/hg* |
michael@0 | 71 | %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc |
michael@0 | 72 | %dir %{_datadir}/zsh/ |
michael@0 | 73 | %dir %{_datadir}/zsh/site-functions/ |
michael@0 | 74 | %{_datadir}/zsh/site-functions/_mercurial |
michael@0 | 75 | %dir %{_datadir}/emacs/site-lisp/ |
michael@0 | 76 | %{_datadir}/emacs/site-lisp/mercurial.el |
michael@0 | 77 | %{_datadir}/emacs/site-lisp/mq.el |
michael@0 | 78 | %{_bindir}/hg |
michael@0 | 79 | %{_bindir}/hgk |
michael@0 | 80 | %{_bindir}/hg-ssh |
michael@0 | 81 | %dir %{_sysconfdir}/bash_completion.d/ |
michael@0 | 82 | %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh |
michael@0 | 83 | %dir %{_sysconfdir}/mercurial |
michael@0 | 84 | %dir %{_sysconfdir}/mercurial/hgrc.d |
michael@0 | 85 | %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc |
michael@0 | 86 | %if "%{?pythonver}" != "2.4" |
michael@0 | 87 | %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info |
michael@0 | 88 | %endif |
michael@0 | 89 | %{_libdir}/python%{pythonver}/site-packages/%{name} |
michael@0 | 90 | %{_libdir}/python%{pythonver}/site-packages/hgext |