Here's the rather convoluted command I use to build 2.0.x rpms on CentOS 5 (python 2.4). Not sure if it helps or not...
echo 'python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES ; sed -i -e "s,man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$,man/man\1/\2.gz,g" INSTALLED_FILES' > rpm-install.sh ; env PYTHONPATH=`pwd` CPPFLAGS="-I`pwd`/bzrlib" python setup.py bdist_rpm --install-script=`pwd`/rpm-install.sh --doc-files=
Here's the rather convoluted command I use to build 2.0.x rpms on CentOS 5 (python 2.4). Not sure if it helps or not...
echo 'python setup.py install --root= $RPM_BUILD_ ROOT --record= INSTALLED_ FILES ; sed -i -e "s,man/ man\([[ :digit: ]]\)/\( .\+\.[[ :digit: ]]\)$,man/ man\1/\ 2.gz,g" INSTALLED_FILES' > rpm-install.sh ; env PYTHONPATH=`pwd` CPPFLAGS= "-I`pwd` /bzrlib" python setup.py bdist_rpm --install- script= `pwd`/rpm- install. sh --doc-files=