--- ./Makefile.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./Makefile 2008-11-06 11:36:24.000000000 +0100 @@ -2,7 +2,7 @@ PKGNAME = createrepo VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec) RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec) CVSTAG=createrepo-$(subst .,_,$(VERSION)-$(RELEASE)) -PYTHON=python +PYTHON=@@PYTHON@@ SUBDIRS = $(PKGNAME) bin docs PYFILES = $(wildcard *.py) @@ -10,7 +10,7 @@ PYFILES = $(wildcard *.py) SHELL = /bin/sh top_srcdir = . srcdir = . -prefix = /usr +prefix = @@PREFIX@@ exec_prefix = ${prefix} bindir = ${exec_prefix}/bin @@ -50,7 +50,7 @@ MODULES = $(srcdir)/genpkgmetadata.py \ .SUFFIXES: .py .pyc .py.pyc: - python -c "import py_compile; py_compile.compile($*.py)" + $(PYTHON) -c "import py_compile; py_compile.compile($*.py)" all: $(MODULES) --- ./bin/Makefile.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./bin/Makefile 2008-11-06 11:32:42.000000000 +0100 @@ -1,7 +1,7 @@ SHELL = /bin/sh top_srcdir = .. srcdir = ../bin -prefix = /usr +prefix = @@PREFIX@@ exec_prefix = ${prefix} bindir = ${exec_prefix}/bin --- ./bin/createrepo.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./bin/createrepo 2008-11-06 11:33:18.000000000 +0100 @@ -1,2 +1,2 @@ #!/bin/sh -exec /usr/share/createrepo/genpkgmetadata.py "$@" +exec @@PREFIX@@/share/createrepo/genpkgmetadata.py "$@" --- ./bin/mergerepo.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./bin/mergerepo 2008-11-06 11:33:48.000000000 +0100 @@ -1,2 +1,3 @@ #!/bin/sh -exec /usr/share/createrepo/mergerepo.py "$@" +exec @@PREFIX@@/share/createrepo/mergerepo.py "$@" + --- ./bin/modifyrepo.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./bin/modifyrepo 2008-11-06 11:33:27.000000000 +0100 @@ -1,2 +1,2 @@ #!/bin/sh -exec /usr/share/createrepo/modifyrepo.py "$@" +exec @@PREFIX@@/share/createrepo/modifyrepo.py "$@" --- ./genpkgmetadata.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./genpkgmetadata.py 2008-11-06 11:34:22.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!@@PYTHON@@ -t # primary functions and glue for generating the repository metadata # --- ./mergerepo.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./mergerepo.py 2008-11-06 11:34:52.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!@@PYTHON@@ -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or --- ./modifyrepo.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ ./modifyrepo.py 2008-11-06 11:34:39.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!@@PYTHON@@ # This tools is used to insert arbitrary metadata into an RPM repository. # Example: # ./modifyrepo.py updateinfo.xml myrepo/repodata --- createrepo/Makefile.orig 2008-10-28 20:58:14.000000000 +0100 +++ createrepo/Makefile 2008-11-06 11:42:50.000000000 +0100 @@ -1,4 +1,4 @@ -PYTHON=python +PYTHON=@@PYTHON@@ PACKAGE = $(shell basename `pwd`) PYFILES = $(wildcard *.py) PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)') @@ -9,7 +9,7 @@ PKGDIR = $(PYLIBDIR)/site-packages/$(PKG SHELL = /bin/sh top_srcdir = .. srcdir = ../$(PKGNAME) -prefix = /usr +prefix = @@PREFIX@@ exec_prefix = ${prefix} bindir = ${exec_prefix}/bin --- createrepo/merge.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ createrepo/merge.py 2008-11-06 11:43:43.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!@@PYTHON@@ -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or --- createrepo/readMetadata.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ createrepo/readMetadata.py 2008-11-06 11:43:39.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!@@PYTHON@@ -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by --- createrepo/utils.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ createrepo/utils.py 2008-11-06 11:43:37.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!@@PYTHON@@ # util functions for createrepo # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by --- createrepo/yumbased.py.orig 2008-10-28 20:58:14.000000000 +0100 +++ createrepo/yumbased.py 2008-11-06 11:43:34.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!@@PYTHON@@ -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or