##// END OF EJS Templates
contrib: update build defaults to latest Python and docutils versions...
Mads Kiilerich -
r23140:fbd79c25 default
parent child Browse files
Show More
@@ -1,79 +1,79 b''
1 PYTHONVER=2.7.6
1 PYTHONVER=2.7.8
2 PYTHONNAME=python-
2 PYTHONNAME=python-
3 PREFIX=$(HOME)/bin/prefix-$(PYTHONNAME)$(PYTHONVER)
3 PREFIX=$(HOME)/bin/prefix-$(PYTHONNAME)$(PYTHONVER)
4 SYMLINKDIR=$(HOME)/bin
4 SYMLINKDIR=$(HOME)/bin
5
5
6 help:
6 help:
7 @echo
7 @echo
8 @echo 'Make a custom installation of a Python version'
8 @echo 'Make a custom installation of a Python version'
9 @echo
9 @echo
10 @echo 'Common make parameters:'
10 @echo 'Common make parameters:'
11 @echo ' PYTHONVER=... [$(PYTHONVER)]'
11 @echo ' PYTHONVER=... [$(PYTHONVER)]'
12 @echo ' PREFIX=... [$(PREFIX)]'
12 @echo ' PREFIX=... [$(PREFIX)]'
13 @echo ' SYMLINKDIR=... [$(SYMLINKDIR) creating $(PYTHONNAME)$(PYTHONVER)]'
13 @echo ' SYMLINKDIR=... [$(SYMLINKDIR) creating $(PYTHONNAME)$(PYTHONVER)]'
14 @echo
14 @echo
15 @echo 'Common make targets:'
15 @echo 'Common make targets:'
16 @echo ' python - install Python $$PYTHONVER in $$PREFIX'
16 @echo ' python - install Python $$PYTHONVER in $$PREFIX'
17 @echo ' symlink - create a $$SYMLINKDIR/$(PYTHONNAME)$$PYTHONVER symlink'
17 @echo ' symlink - create a $$SYMLINKDIR/$(PYTHONNAME)$$PYTHONVER symlink'
18 @echo
18 @echo
19 @echo 'Example: create a temporary Python installation:'
19 @echo 'Example: create a temporary Python installation:'
20 @echo ' $$ make -f Makefile.python python PYTHONVER=2.4 PREFIX=/tmp/p24'
20 @echo ' $$ make -f Makefile.python python PYTHONVER=2.4 PREFIX=/tmp/p24'
21 @echo ' $$ /tmp/p24/bin/python -V'
21 @echo ' $$ /tmp/p24/bin/python -V'
22 @echo ' Python 2.4'
22 @echo ' Python 2.4'
23 @echo
23 @echo
24 @echo 'Some external libraries are required for building Python: zlib bzip2 openssl.'
24 @echo 'Some external libraries are required for building Python: zlib bzip2 openssl.'
25 @echo 'Make sure their development packages are installed systemwide.'
25 @echo 'Make sure their development packages are installed systemwide.'
26 # fedora: yum install zlib-devel bzip2-devel openssl-devel
26 # fedora: yum install zlib-devel bzip2-devel openssl-devel
27 # debian: apt-get install zlib1g-dev libbz2-dev libssl-dev
27 # debian: apt-get install zlib1g-dev libbz2-dev libssl-dev
28 @echo
28 @echo
29 @echo 'To build a nice collection of interesting Python versions:'
29 @echo 'To build a nice collection of interesting Python versions:'
30 @echo ' $$ for v in 2.{4{,.2,.3},5{,.6},6{,.1,.2,.9},7{,.6}}; do'
30 @echo ' $$ for v in 2.{4{,.2,.3},5{,.6},6{,.1,.2,.9},7{,.8}}; do'
31 @echo ' make -f Makefile.python symlink PYTHONVER=$$v || break; done'
31 @echo ' make -f Makefile.python symlink PYTHONVER=$$v || break; done'
32 @echo 'To run a Mercurial test on all these Python versions:'
32 @echo 'To run a Mercurial test on all these Python versions:'
33 @echo ' $$ for py in `cd ~/bin && ls $(PYTHONNAME)2.*`; do'
33 @echo ' $$ for py in `cd ~/bin && ls $(PYTHONNAME)2.*`; do'
34 @echo ' echo $$py; $$py run-tests.py test-http.t; echo; done'
34 @echo ' echo $$py; $$py run-tests.py test-http.t; echo; done'
35 @echo
35 @echo
36
36
37 export LANGUAGE=C
37 export LANGUAGE=C
38 export LC_ALL=C
38 export LC_ALL=C
39
39
40 python: $(PREFIX)/bin/python docutils
40 python: $(PREFIX)/bin/python docutils
41 printf 'import sys, zlib, bz2, docutils\nif sys.version_info >= (2,6):\n import ssl' | $(PREFIX)/bin/python
41 printf 'import sys, zlib, bz2, docutils\nif sys.version_info >= (2,6):\n import ssl' | $(PREFIX)/bin/python
42
42
43 PYTHON_SRCDIR=Python-$(PYTHONVER)
43 PYTHON_SRCDIR=Python-$(PYTHONVER)
44 PYTHON_SRCFILE=$(PYTHON_SRCDIR).tgz
44 PYTHON_SRCFILE=$(PYTHON_SRCDIR).tgz
45
45
46 $(PREFIX)/bin/python:
46 $(PREFIX)/bin/python:
47 [ -f $(PYTHON_SRCFILE) ] || wget http://www.python.org/ftp/python/$(PYTHONVER)/$(PYTHON_SRCFILE) || [ -f $(PYTHON_SRCFILE) ]
47 [ -f $(PYTHON_SRCFILE) ] || wget http://www.python.org/ftp/python/$(PYTHONVER)/$(PYTHON_SRCFILE) || [ -f $(PYTHON_SRCFILE) ]
48 rm -rf $(PYTHON_SRCDIR)
48 rm -rf $(PYTHON_SRCDIR)
49 tar xf $(PYTHON_SRCFILE)
49 tar xf $(PYTHON_SRCFILE)
50 # Ubuntu disables SSLv2 the hard way, disable it on old Pythons too
50 # Ubuntu disables SSLv2 the hard way, disable it on old Pythons too
51 -sed -i 's,self.*SSLv2_method(),0;//\0,g' $(PYTHON_SRCDIR)/Modules/_ssl.c
51 -sed -i 's,self.*SSLv2_method(),0;//\0,g' $(PYTHON_SRCDIR)/Modules/_ssl.c
52 # Find multiarch system libraries on Ubuntu with Python 2.4.x
52 # Find multiarch system libraries on Ubuntu with Python 2.4.x
53 # http://lipyrary.blogspot.dk/2011/05/how-to-compile-python-on-ubuntu-1104.html
53 # http://lipyrary.blogspot.dk/2011/05/how-to-compile-python-on-ubuntu-1104.html
54 -sed -i "s|lib_dirs = .* \[|\0'/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`',|g" $(PYTHON_SRCDIR)/setup.py
54 -sed -i "s|lib_dirs = .* \[|\0'/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`',|g" $(PYTHON_SRCDIR)/setup.py
55 # Find multiarch system libraries on Ubuntu and disable fortify error when setting argv
55 # Find multiarch system libraries on Ubuntu and disable fortify error when setting argv
56 LDFLAGS="-L/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`"; \
56 LDFLAGS="-L/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`"; \
57 BASECFLAGS=-U_FORTIFY_SOURCE; \
57 BASECFLAGS=-U_FORTIFY_SOURCE; \
58 export LDFLAGS BASECFLAGS; \
58 export LDFLAGS BASECFLAGS; \
59 cd $(PYTHON_SRCDIR) && ./configure --prefix=$(PREFIX) && make all SVNVERSION=pwd && make install
59 cd $(PYTHON_SRCDIR) && ./configure --prefix=$(PREFIX) && make all SVNVERSION=pwd && make install
60 printf 'import sys, zlib, bz2\nif sys.version_info >= (2,6):\n import ssl' | $(PREFIX)/bin/python
60 printf 'import sys, zlib, bz2\nif sys.version_info >= (2,6):\n import ssl' | $(PREFIX)/bin/python
61 rm -rf $(PYTHON_SRCDIR)
61 rm -rf $(PYTHON_SRCDIR)
62
62
63 DOCUTILSVER=0.11
63 DOCUTILSVER=0.12
64 DOCUTILS_SRCDIR=docutils-$(DOCUTILSVER)
64 DOCUTILS_SRCDIR=docutils-$(DOCUTILSVER)
65 DOCUTILS_SRCFILE=$(DOCUTILS_SRCDIR).tar.gz
65 DOCUTILS_SRCFILE=$(DOCUTILS_SRCDIR).tar.gz
66
66
67 docutils: $(PREFIX)/bin/python
67 docutils: $(PREFIX)/bin/python
68 @$(PREFIX)/bin/python -c 'import docutils' || ( set -ex; \
68 @$(PREFIX)/bin/python -c 'import docutils' || ( set -ex; \
69 [ -f $(DOCUTILS_SRCFILE) ] || wget http://downloads.sourceforge.net/project/docutils/docutils/$(DOCUTILSVER)/$(DOCUTILS_SRCFILE) || [ -f $(DOCUTILS_SRCFILE) ]; \
69 [ -f $(DOCUTILS_SRCFILE) ] || wget http://downloads.sourceforge.net/project/docutils/docutils/$(DOCUTILSVER)/$(DOCUTILS_SRCFILE) || [ -f $(DOCUTILS_SRCFILE) ]; \
70 rm -rf $(DOCUTILS_SRCDIR); \
70 rm -rf $(DOCUTILS_SRCDIR); \
71 tar xf $(DOCUTILS_SRCFILE); \
71 tar xf $(DOCUTILS_SRCFILE); \
72 cd $(DOCUTILS_SRCDIR) && $(PREFIX)/bin/python setup.py install --prefix=$(PREFIX); \
72 cd $(DOCUTILS_SRCDIR) && $(PREFIX)/bin/python setup.py install --prefix=$(PREFIX); \
73 $(PREFIX)/bin/python -c 'import docutils'; \
73 $(PREFIX)/bin/python -c 'import docutils'; \
74 rm -rf $(DOCUTILS_SRCDIR); )
74 rm -rf $(DOCUTILS_SRCDIR); )
75
75
76 symlink: python $(SYMLINKDIR)
76 symlink: python $(SYMLINKDIR)
77 ln -sf $(PREFIX)/bin/python $(SYMLINKDIR)/$(PYTHONNAME)$(PYTHONVER)
77 ln -sf $(PREFIX)/bin/python $(SYMLINKDIR)/$(PYTHONNAME)$(PYTHONVER)
78
78
79 .PHONY: help python docutils symlink
79 .PHONY: help python docutils symlink
@@ -1,162 +1,162 b''
1 %global emacs_lispdir %{_datadir}/emacs/site-lisp
1 %global emacs_lispdir %{_datadir}/emacs/site-lisp
2
2
3 %define withpython %{nil}
3 %define withpython %{nil}
4
4
5 %if "%{?withpython}"
5 %if "%{?withpython}"
6
6
7 %global pythonver %{withpython}
7 %global pythonver %{withpython}
8 %global pythonname Python-%{withpython}
8 %global pythonname Python-%{withpython}
9 %global docutilsname docutils-0.11
9 %global docutilsname docutils-0.12
10 %global pythonhg python-hg
10 %global pythonhg python-hg
11 %global hgpyprefix /usr/%{pythonhg}
11 %global hgpyprefix /usr/%{pythonhg}
12 # byte compilation will fail on some some Python /test/ files
12 # byte compilation will fail on some some Python /test/ files
13 %global _python_bytecompile_errors_terminate_build 0
13 %global _python_bytecompile_errors_terminate_build 0
14
14
15 %else
15 %else
16
16
17 %global pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
17 %global pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
18
18
19 %endif
19 %endif
20
20
21 Summary: A fast, lightweight Source Control Management system
21 Summary: A fast, lightweight Source Control Management system
22 Name: mercurial
22 Name: mercurial
23 Version: snapshot
23 Version: snapshot
24 Release: 0
24 Release: 0
25 License: GPLv2+
25 License: GPLv2+
26 Group: Development/Tools
26 Group: Development/Tools
27 URL: http://mercurial.selenic.com/
27 URL: http://mercurial.selenic.com/
28 Source0: %{name}-%{version}-%{release}.tar.gz
28 Source0: %{name}-%{version}-%{release}.tar.gz
29 %if "%{?withpython}"
29 %if "%{?withpython}"
30 Source1: %{pythonname}.tgz
30 Source1: %{pythonname}.tgz
31 Source2: %{docutilsname}.tar.gz
31 Source2: %{docutilsname}.tar.gz
32 %endif
32 %endif
33 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
33 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
34
34
35 BuildRequires: make, gcc, gettext
35 BuildRequires: make, gcc, gettext
36 %if "%{?withpython}"
36 %if "%{?withpython}"
37 BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel
37 BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel
38 %else
38 %else
39 BuildRequires: python >= 2.4, python-devel, python-docutils >= 0.5
39 BuildRequires: python >= 2.4, python-devel, python-docutils >= 0.5
40 Requires: python >= 2.4
40 Requires: python >= 2.4
41 %endif
41 %endif
42 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
42 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
43 #Requires: tk
43 #Requires: tk
44
44
45 %description
45 %description
46 Mercurial is a fast, lightweight source control management system designed
46 Mercurial is a fast, lightweight source control management system designed
47 for efficient handling of very large distributed projects.
47 for efficient handling of very large distributed projects.
48
48
49 %prep
49 %prep
50
50
51 %if "%{?withpython}"
51 %if "%{?withpython}"
52 %setup -q -n mercurial-%{version}-%{release} -a1 -a2
52 %setup -q -n mercurial-%{version}-%{release} -a1 -a2
53 # despite the comments in cgi.py, we do this to prevent rpmdeps from picking /usr/local/bin/python up
53 # despite the comments in cgi.py, we do this to prevent rpmdeps from picking /usr/local/bin/python up
54 sed -i '1c#! /usr/bin/env python' %{pythonname}/Lib/cgi.py
54 sed -i '1c#! /usr/bin/env python' %{pythonname}/Lib/cgi.py
55 %else
55 %else
56 %setup -q -n mercurial-%{version}-%{release}
56 %setup -q -n mercurial-%{version}-%{release}
57 %endif
57 %endif
58
58
59 %build
59 %build
60
60
61 %if "%{?withpython}"
61 %if "%{?withpython}"
62
62
63 PYPATH=$PWD/%{pythonname}
63 PYPATH=$PWD/%{pythonname}
64 cd $PYPATH
64 cd $PYPATH
65 ./configure --prefix=%{hgpyprefix}
65 ./configure --prefix=%{hgpyprefix}
66 make all %{?_smp_mflags}
66 make all %{?_smp_mflags}
67 cd -
67 cd -
68
68
69 cd %{docutilsname}
69 cd %{docutilsname}
70 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py build
70 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py build
71 cd -
71 cd -
72
72
73 # verify Python environment
73 # verify Python environment
74 LD_LIBRARY_PATH=$PYPATH PYTHONPATH=$PWD/%{docutilsname} $PYPATH/python -c 'import sys, zlib, bz2, ssl, curses, readline'
74 LD_LIBRARY_PATH=$PYPATH PYTHONPATH=$PWD/%{docutilsname} $PYPATH/python -c 'import sys, zlib, bz2, ssl, curses, readline'
75
75
76 # set environment for make
76 # set environment for make
77 export PATH=$PYPATH:$PATH
77 export PATH=$PYPATH:$PATH
78 export LD_LIBRARY_PATH=$PYPATH
78 export LD_LIBRARY_PATH=$PYPATH
79 export CFLAGS="-L $PYPATH"
79 export CFLAGS="-L $PYPATH"
80 export PYTHONPATH=$PWD/%{docutilsname}
80 export PYTHONPATH=$PWD/%{docutilsname}
81
81
82 %endif
82 %endif
83
83
84 make all
84 make all
85
85
86 %install
86 %install
87 rm -rf $RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
88
88
89 %if "%{?withpython}"
89 %if "%{?withpython}"
90
90
91 PYPATH=$PWD/%{pythonname}
91 PYPATH=$PWD/%{pythonname}
92 cd $PYPATH
92 cd $PYPATH
93 make install DESTDIR=$RPM_BUILD_ROOT
93 make install DESTDIR=$RPM_BUILD_ROOT
94 # these .a are not necessary and they are readonly and strip fails - kill them!
94 # these .a are not necessary and they are readonly and strip fails - kill them!
95 rm -f %{buildroot}%{hgpyprefix}/lib/{,python2.*/config}/libpython2.*.a
95 rm -f %{buildroot}%{hgpyprefix}/lib/{,python2.*/config}/libpython2.*.a
96 cd -
96 cd -
97
97
98 cd %{docutilsname}
98 cd %{docutilsname}
99 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py install --root="$RPM_BUILD_ROOT"
99 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py install --root="$RPM_BUILD_ROOT"
100 cd -
100 cd -
101
101
102 PATH=$PYPATH:$PATH LD_LIBRARY_PATH=$PYPATH make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{hgpyprefix} MANDIR=%{_mandir}
102 PATH=$PYPATH:$PATH LD_LIBRARY_PATH=$PYPATH make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{hgpyprefix} MANDIR=%{_mandir}
103 mkdir -p $RPM_BUILD_ROOT%{_bindir}
103 mkdir -p $RPM_BUILD_ROOT%{_bindir}
104 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/hg . )
104 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/hg . )
105 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/python2.? %{pythonhg} )
105 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/python2.? %{pythonhg} )
106
106
107 %else
107 %else
108
108
109 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
109 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
110
110
111 %endif
111 %endif
112
112
113 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/
113 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/
114 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/
114 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/
115
115
116 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
116 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
117 mkdir -p $bash_completion_dir
117 mkdir -p $bash_completion_dir
118 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
118 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
119
119
120 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
120 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
121 mkdir -p $zsh_completion_dir
121 mkdir -p $zsh_completion_dir
122 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
122 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
123
123
124 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
124 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
125 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}/
125 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}/
126 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}/
126 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}/
127
127
128 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
128 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
129 install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
129 install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
130
130
131 %clean
131 %clean
132 rm -rf $RPM_BUILD_ROOT
132 rm -rf $RPM_BUILD_ROOT
133
133
134 %files
134 %files
135 %defattr(-,root,root,-)
135 %defattr(-,root,root,-)
136 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
136 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
137 %doc %attr(644,root,root) %{_mandir}/man?/hg*
137 %doc %attr(644,root,root) %{_mandir}/man?/hg*
138 %doc %attr(644,root,root) contrib/*.svg
138 %doc %attr(644,root,root) contrib/*.svg
139 %dir %{_datadir}/zsh/
139 %dir %{_datadir}/zsh/
140 %dir %{_datadir}/zsh/site-functions/
140 %dir %{_datadir}/zsh/site-functions/
141 %{_datadir}/zsh/site-functions/_mercurial
141 %{_datadir}/zsh/site-functions/_mercurial
142 %dir %{_datadir}/emacs/site-lisp/
142 %dir %{_datadir}/emacs/site-lisp/
143 %{_datadir}/emacs/site-lisp/mercurial.el
143 %{_datadir}/emacs/site-lisp/mercurial.el
144 %{_datadir}/emacs/site-lisp/mq.el
144 %{_datadir}/emacs/site-lisp/mq.el
145 %{_bindir}/hg
145 %{_bindir}/hg
146 %{_bindir}/hgk
146 %{_bindir}/hgk
147 %{_bindir}/hg-ssh
147 %{_bindir}/hg-ssh
148 %dir %{_sysconfdir}/bash_completion.d/
148 %dir %{_sysconfdir}/bash_completion.d/
149 %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh
149 %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh
150 %dir %{_sysconfdir}/mercurial
150 %dir %{_sysconfdir}/mercurial
151 %dir %{_sysconfdir}/mercurial/hgrc.d
151 %dir %{_sysconfdir}/mercurial/hgrc.d
152 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
152 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
153 %if "%{?withpython}"
153 %if "%{?withpython}"
154 %{_bindir}/%{pythonhg}
154 %{_bindir}/%{pythonhg}
155 %{hgpyprefix}
155 %{hgpyprefix}
156 %else
156 %else
157 %if "%{?pythonver}" != "2.4"
157 %if "%{?pythonver}" != "2.4"
158 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
158 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
159 %endif
159 %endif
160 %{_libdir}/python%{pythonver}/site-packages/%{name}
160 %{_libdir}/python%{pythonver}/site-packages/%{name}
161 %{_libdir}/python%{pythonver}/site-packages/hgext
161 %{_libdir}/python%{pythonver}/site-packages/hgext
162 %endif
162 %endif
General Comments 0
You need to be logged in to leave comments. Login now