summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/pykdeextensions
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-11-24 09:58:05 +0100
committerFrancois Andriot <francois.andriot@free.fr>2012-11-24 09:58:05 +0100
commit32fb770ae4ed0851491a59df5e23e27fb8afdadf (patch)
treec36a3226a9dd6588d754bd3b0dccacf89e0589b3 /redhat/libraries/pykdeextensions
parente7f51ead5a067b6e3ac4fc64edc734a82711f2d2 (diff)
downloadtde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.tar.gz
tde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.zip
RPM: add PCLinuxOS support
Diffstat (limited to 'redhat/libraries/pykdeextensions')
-rw-r--r--redhat/libraries/pykdeextensions/trinity-pykdeextensions-3.5.13.1.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/redhat/libraries/pykdeextensions/trinity-pykdeextensions-3.5.13.1.spec b/redhat/libraries/pykdeextensions/trinity-pykdeextensions-3.5.13.1.spec
index 1f8110b55..377e55360 100644
--- a/redhat/libraries/pykdeextensions/trinity-pykdeextensions-3.5.13.1.spec
+++ b/redhat/libraries/pykdeextensions/trinity-pykdeextensions-3.5.13.1.spec
@@ -102,7 +102,7 @@ to support the creation and installation of KDE applications.
This package contains the libpythonize development files.
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
@@ -120,7 +120,9 @@ for f in src/*.py; do
-e "s|/usr/lib/pyshared/python\*|%{python_sitearch}|g" \
-e "s|'pykde-dir=',None,|'pykde-dir=','%{python_sitearch}',|g" \
-e "s|self.pykde_dir = None|self.pykde_dir = \"%{python_sitearch}\"|g" \
- -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g"
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|%{tde_includedir}/kde|%{tde_tdeincludedir}|g" \
+ -e 's|"/kde"|"/tde"|'
done
%build
@@ -128,6 +130,7 @@ unset QTDIR; . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt
+export KDEDIR=%{tde_prefix}
%__mkdir_p build
./setup.py build_libpythonize