mercurial/mercurial.spec

Tue, 19 Oct 2010 14:53:19 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 19 Oct 2010 14:53:19 +0200
changeset 269
b93b2c78541a
parent 211
ba83f88949c2
child 270
42bbe3abe794
permissions
-rw-r--r--

Synchronize with current state of original package vendor specs.

     1 ##
     2 ##  mercurial.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   package information
    25 Name:         mercurial
    26 Summary:      Disributed Version Control System
    27 URL:          http://selenic.com/mercurial/
    28 Vendor:       Matt Mackall et al.
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        EVAL
    32 Group:        SCM
    33 License:      GPL
    34 Version:      1.6.2
    35 Release:      20100803
    37 #   list of sources
    38 Source0:      http://mercurial.selenic.com/release/mercurial-%{version}.tar.gz
    40 #   build information
    41 BuildPreReq:  OpenPKG, openpkg >= 20100101, python
    42 PreReq:       OpenPKG, openpkg >= 20100101, python
    44 %description
    45     Mercurial is a fast, lightweight Source Control Management (SCM)
    46     system designed for efficient handling of very large distributed
    47     projects.
    49 %track
    50     prog mercurial = {
    51         version   = %{version}
    52         url       = http://mercurial.selenic.com/release/
    53         regex     = mercurial-(__VER__)\.tar\.gz
    54     }
    56 %prep
    57     %setup -q
    59 %build
    61 %install
    62     %{l_shtool} mkdir -f -p -m 755 \
    63         $RPM_BUILD_ROOT%{l_prefix}/bin \
    64         $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \
    65         $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \
    66         $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
    67         $RPM_BUILD_ROOT%{l_prefix}/man/man5
    68     %{l_shtool} subst \
    69         -e 's;#!/usr/bin/env python;#!%{l_prefix}/bin/python;g' \
    70         hg
    71     %{l_prefix}/bin/python setup.py install \
    72         --root=$RPM_BUILD_ROOT \
    73         --prefix=%{l_prefix} \
    74         --install-lib=%{l_prefix}/lib/mercurial
    75     mv  $RPM_BUILD_ROOT%{l_prefix}/bin/hg \
    76         $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial/hg
    77     (   echo "#!/bin/sh"
    78         echo "PYTHONPATH=\"%{l_prefix}/lib/mercurial\""
    79         echo "export PYTHONPATH"
    80         echo "%{l_prefix}/bin/python %{l_prefix}/libexec/mercurial/hg \${1+\"\$@\"}"
    81     ) >$RPM_BUILD_ROOT%{l_prefix}/bin/hg
    82     chmod 755 $RPM_BUILD_ROOT%{l_prefix}/bin/hg
    83     %{l_shtool} install -c -m 644 \
    84        doc/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
    85     %{l_shtool} install -c -m 644 \
    86        doc/*.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/
    87     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    89 %files -f files
    91 %clean

mercurial