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.

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

mercurial