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,6 +115,7 @@ BuildRequires: java-devel | ||
| 115 | 115 | ||
| 116 | %if 0%{?_python} | 116 | %if 0%{?_python} |
| 117 | BuildRequires: python-devel | 117 | BuildRequires: python-devel |
| 118 | +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | ||
| 118 | %endif | 119 | %endif |
| 119 | 120 | ||
| 120 | BuildRequires: rsvg-view | 121 | BuildRequires: rsvg-view |
| @@ -382,7 +383,7 @@ rm -rf $RPM_BUILD_ROOT | @@ -382,7 +383,7 @@ rm -rf $RPM_BUILD_ROOT | ||
| 382 | %if 0%{?_python} | 383 | %if 0%{?_python} |
| 383 | %files -n python-tn3270 | 384 | %files -n python-tn3270 |
| 384 | %defattr(-,root,root) | 385 | %defattr(-,root,root) |
| 385 | -%{_libdir}/python/site-packages/py3270.so | 386 | +%{pythonextpath}/py3270.so |
| 386 | %endif | 387 | %endif |
| 387 | 388 | ||
| 388 | 389 |
src/python/Makefile.in
| @@ -111,7 +111,7 @@ run: $(BINDBG)/py3270@DLLEXT@ | @@ -111,7 +111,7 @@ run: $(BINDBG)/py3270@DLLEXT@ | ||
| 111 | #---[ Misc targets ]----------------------------------------------------------- | 111 | #---[ Misc targets ]----------------------------------------------------------- |
| 112 | 112 | ||
| 113 | install: $(BINRLS)/py3270@DLLEXT@ | 113 | install: $(BINRLS)/py3270@DLLEXT@ |
| 114 | - @$(MKDIR) $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ | 114 | + @$(MKDIR) $(DESTDIR)/$(PYTHONLIBPATH) |
| 115 | @$(INSTALL_PROGRAM) $(BINRLS)/py3270@DLLEXT@ $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ | 115 | @$(INSTALL_PROGRAM) $(BINRLS)/py3270@DLLEXT@ $(DESTDIR)/$(PYTHONLIBPATH)/py3270@DLLEXT@ |
| 116 | 116 | ||
| 117 | cleanDebug: clean | 117 | cleanDebug: clean |