##// END OF EJS Templates
buildrpm: collect code for building local hg and using it in one place
Mads Kiilerich -
r21639:57e0f053 default
parent child Browse files
Show More
@@ -8,9 +8,6 b''
8 # - centOS 6
8 # - centOS 6
9
9
10 cd "`dirname $0`/.."
10 cd "`dirname $0`/.."
11 HG="$PWD/hg"
12 PYTHONPATH="$PWD/mercurial/pure"
13 export PYTHONPATH
14
11
15 specfile=contrib/mercurial.spec
12 specfile=contrib/mercurial.spec
16 if [ ! -f $specfile ]; then
13 if [ ! -f $specfile ]; then
@@ -31,13 +28,17 b" if $HG id -i | grep '+$' > /dev/null 2>&"
31 fi
28 fi
32 fi
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 rpmdir="$PWD/rpmbuild"
37 rpmdir="$PWD/rpmbuild"
35
38
36 rm -rf $rpmdir
39 rm -rf $rpmdir
37 mkdir -p $rpmdir/SOURCES $rpmdir/SPECS $rpmdir/RPMS $rpmdir/SRPMS $rpmdir/BUILD
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 hgversion=`$HG version | sed -ne 's/.*(version \(.*\))$/\1/p'`
42 hgversion=`$HG version | sed -ne 's/.*(version \(.*\))$/\1/p'`
42
43
43 if echo $hgversion | grep -- '-' > /dev/null 2>&1; then
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 Summary: A fast, lightweight Source Control Management system
4 Summary: A fast, lightweight Source Control Management system
2 Name: mercurial
5 Name: mercurial
3 Version: snapshot
6 Version: snapshot
@@ -14,9 +17,6 b' Requires: python >= 2.4'
14 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
17 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
15 #Requires: tk
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 %description
20 %description
21 Mercurial is a fast, lightweight source control management system designed
21 Mercurial is a fast, lightweight source control management system designed
22 for efficient handling of very large distributed projects.
22 for efficient handling of very large distributed projects.
General Comments 0
You need to be logged in to leave comments. Login now