Commit 629ab559a3bdd935ccab085af09bbc66903a6386
1 parent
8a2fa6de
Exists in
master
and in
5 other branches
Corrigindo diretório de instalação do módulo python
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
pw3270.spec.in
... | ... | @@ -115,6 +115,7 @@ BuildRequires: java-devel |
115 | 115 | |
116 | 116 | %if 0%{?_python} |
117 | 117 | BuildRequires: python-devel |
118 | +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | |
118 | 119 | %endif |
119 | 120 | |
120 | 121 | BuildRequires: rsvg-view |
... | ... | @@ -382,7 +383,7 @@ rm -rf $RPM_BUILD_ROOT |
382 | 383 | %if 0%{?_python} |
383 | 384 | %files -n python-tn3270 |
384 | 385 | %defattr(-,root,root) |
385 | -%{_libdir}/python/site-packages/py3270.so | |
386 | +%{pythonextpath}/py3270.so | |
386 | 387 | %endif |
387 | 388 | |
388 | 389 | ... | ... |
src/python/Makefile.in
... | ... | @@ -111,7 +111,7 @@ run: $(BINDBG)/py3270@DLLEXT@ |
111 | 111 | #---[ Misc targets ]----------------------------------------------------------- |
112 | 112 | |
113 | 113 | install: $(BINRLS)/py3270@DLLEXT@ |
114 | - @$(MKDIR) $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ | |
114 | + @$(MKDIR) $(DESTDIR)/$(PYTHONLIBPATH) | |
115 | 115 | @$(INSTALL_PROGRAM) $(BINRLS)/py3270@DLLEXT@ $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ |
116 | 116 | |
117 | 117 | cleanDebug: clean | ... | ... |