In koji-1.22.0-129-g0ef3c751 I've changed the way how site-packages directory is obtained. What I did not realize back then is there can be multilib systems which will not search for packages in /usr/lib64. But 64bit systems do look into /usr/lib. Therefore, let's pick the location where both systems work. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894261 Fixes: #2578 https://pagure.io/koji/issue/2578 Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
30 lines
784 B
Makefile
30 lines
784 B
Makefile
SUBDIRS=koji_cli
|
|
|
|
PACKAGE = $(shell basename `pwd`)
|
|
PKGDIR = $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/$(PACKAGE)
|
|
|
|
FILES = koji
|
|
|
|
_default:
|
|
@echo "nothing to make. try make install"
|
|
|
|
clean:
|
|
rm -f *.o *.so *.pyc *~ kojic
|
|
rm -rf __pycache__
|
|
for d in $(SUBDIRS); do make -s -C $$d clean; done
|
|
|
|
install:
|
|
@if [ "$(DESTDIR)" = "" ]; then \
|
|
echo " "; \
|
|
echo "ERROR: A destdir is required"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
for d in $(SUBDIRS); do make DESTDIR=$(DESTDIR) \
|
|
-C $$d install; [ $$? = 0 ] || exit 1; done
|
|
|
|
mkdir -p $(DESTDIR)/usr/bin
|
|
install -p -m 755 $(FILES) $(DESTDIR)/usr/bin
|
|
mkdir -p $(DESTDIR)/etc/koji.conf.d
|
|
install -p -m 644 koji.conf $(DESTDIR)/etc/koji.conf
|
|
install -p -m 644 koji.conf $(DESTDIR)/etc/koji.conf
|