diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-08-31 15:38:14 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-08-31 15:38:14 +0200 |
commit | cdec7ede2cd93dedf437e5b10597433ea9d9eabe (patch) | |
tree | 723b1f74f1d9d264363e9b535466dd461be8fef6 /redhat/libraries/pytdeextensions | |
parent | 1af57210e2e55d40eb39a274fcf48779c6b9e7d5 (diff) | |
download | tde-packaging-cdec7ede2cd93dedf437e5b10597433ea9d9eabe.tar.gz tde-packaging-cdec7ede2cd93dedf437e5b10597433ea9d9eabe.zip |
RPM Packaging: update 3.5.13.2 for openSUSE 13.1
Diffstat (limited to 'redhat/libraries/pytdeextensions')
-rw-r--r-- | redhat/libraries/pytdeextensions/pytdeextensions-3.5.13.2.spec | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/redhat/libraries/pytdeextensions/pytdeextensions-3.5.13.2.spec b/redhat/libraries/pytdeextensions/pytdeextensions-3.5.13.2.spec index 2ba4b2fe6..f26445c40 100644 --- a/redhat/libraries/pytdeextensions/pytdeextensions-3.5.13.2.spec +++ b/redhat/libraries/pytdeextensions/pytdeextensions-3.5.13.2.spec @@ -53,17 +53,9 @@ BuildRequires: trinity-tdelibs-devel >= %{tde_version} BuildRequires: desktop-file-utils BuildRequires: gettext +# Python stuff BuildRequires: trinity-python-trinity-devel - -%if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: python-qt -%else -%if 0%{?rhel} == 4 || 0%{?rhel} == 5 || 0%{?suse_version} -BuildRequires: trinity-PyQt-devel -%else -BuildRequires: PyQt-devel -%endif -%endif +BuildRequires: python-qt3-devel Requires: trinity-libpythonize0 = %{version}-%{release} @@ -176,24 +168,24 @@ if [ -f "%{_libdir}/${LIBPYTHON}" ]; then -e "s|#define LIB_PYTHON \".*\"|#define LIB_PYTHON \"%{_libdir}/${LIBPYTHON}\"|" fi -if [ -d "%{python_sitearch}/trinity-PyQt" ]; then - %__sed -i "src/kdedistutils.py" \ - -e "s|'pyqt-dir=','%{python_sitearch}'|'pyqt-dir=','%{python_sitearch}/trinity-PyQt'|g" \ - -e "s|self.pyqt_dir = \"%{python_sitearch}\"|self.pyqt_dir = \"%{python_sitearch}/trinity-PyQt\"|g" -fi +# Set PyQt directory to actual directory +%__sed -i "src/kdedistutils.py" \ + -e "s|'pyqt-dir=','%{python_sitearch}'|'pyqt-dir=','%{python_sitearch}/python-qt3'|g" \ + -e "s|self.pyqt_dir = \"%{python_sitearch}\"|self.pyqt_dir = \"%{python_sitearch}/python-qt3\"|g" + %build -unset QTDIR; . /etc/profile.d/qt3.sh +unset QTDIR QTINC QTLIB; . /etc/profile.d/qt3.sh export PATH="%{tde_bindir}:${PATH}" -export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt +export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/python-qt3 %__mkdir_p build ./setup.py build_libpythonize %install -unset QTDIR; . /etc/profile.d/qt3.sh +unset QTDIR QTINC QTLIB; . /etc/profile.d/qt3.sh export PATH="%{tde_bindir}:${PATH}" -export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt +export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/python-qt3 # Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia export PYTHONDONTWRITEBYTECODE= |