diff --git a/pw3270.spec.in b/pw3270.spec.in index ce8c19f..a49bee7 100644 --- a/pw3270.spec.in +++ b/pw3270.spec.in @@ -115,6 +115,7 @@ BuildRequires: java-devel %if 0%{?_python} BuildRequires: python-devel +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") %endif BuildRequires: rsvg-view @@ -382,7 +383,7 @@ rm -rf $RPM_BUILD_ROOT %if 0%{?_python} %files -n python-tn3270 %defattr(-,root,root) -%{_libdir}/python/site-packages/py3270.so +%{pythonextpath}/py3270.so %endif diff --git a/src/python/Makefile.in b/src/python/Makefile.in index 21fcbb3..ef95a62 100644 --- a/src/python/Makefile.in +++ b/src/python/Makefile.in @@ -111,7 +111,7 @@ run: $(BINDBG)/py3270@DLLEXT@ #---[ Misc targets ]----------------------------------------------------------- install: $(BINRLS)/py3270@DLLEXT@ - @$(MKDIR) $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ + @$(MKDIR) $(DESTDIR)/$(PYTHONLIBPATH) @$(INSTALL_PROGRAM) $(BINRLS)/py3270@DLLEXT@ $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ cleanDebug: clean -- libgit2 0.21.2