Show More
@@ -8,9 +8,6 b'' | |||
|
8 | 8 | # - centOS 6 |
|
9 | 9 | |
|
10 | 10 | cd "`dirname $0`/.." |
|
11 | HG="$PWD/hg" | |
|
12 | PYTHONPATH="$PWD/mercurial/pure" | |
|
13 | export PYTHONPATH | |
|
14 | 11 | |
|
15 | 12 | specfile=contrib/mercurial.spec |
|
16 | 13 | if [ ! -f $specfile ]; then |
@@ -31,13 +28,17 b" if $HG id -i | grep '+$' > /dev/null 2>&" | |||
|
31 | 28 | fi |
|
32 | 29 | fi |
|
33 | 30 | |
|
31 | # build local hg and use it | |
|
32 | python setup.py build_py -c -d . | |
|
33 | HG="$PWD/hg" | |
|
34 | PYTHONPATH="$PWD/mercurial/pure" | |
|
35 | export PYTHONPATH | |
|
36 | ||
|
34 | 37 | rpmdir="$PWD/rpmbuild" |
|
35 | 38 | |
|
36 | 39 | rm -rf $rpmdir |
|
37 | 40 | mkdir -p $rpmdir/SOURCES $rpmdir/SPECS $rpmdir/RPMS $rpmdir/SRPMS $rpmdir/BUILD |
|
38 | 41 | |
|
39 | # make setup.py build the version string | |
|
40 | python setup.py build_py -c -d . | |
|
41 | 42 | hgversion=`$HG version | sed -ne 's/.*(version \(.*\))$/\1/p'` |
|
42 | 43 | |
|
43 | 44 | if echo $hgversion | grep -- '-' > /dev/null 2>&1; then |
@@ -1,3 +1,6 b'' | |||
|
1 | %global emacs_lispdir %{_datadir}/emacs/site-lisp | |
|
2 | %global pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | |
|
3 | ||
|
1 | 4 | Summary: A fast, lightweight Source Control Management system |
|
2 | 5 | Name: mercurial |
|
3 | 6 | Version: snapshot |
@@ -14,9 +17,6 b' Requires: python >= 2.4' | |||
|
14 | 17 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it |
|
15 | 18 | #Requires: tk |
|
16 | 19 | |
|
17 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | |
|
18 | %define emacs_lispdir %{_datadir}/emacs/site-lisp | |
|
19 | ||
|
20 | 20 | %description |
|
21 | 21 | Mercurial is a fast, lightweight source control management system designed |
|
22 | 22 | for efficient handling of very large distributed projects. |
General Comments 0
You need to be logged in to leave comments.
Login now