summaryrefslogtreecommitdiffstats
path: root/redhat/libraries
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
parente7f51ead5a067b6e3ac4fc64edc734a82711f2d2 (diff)
downloadtde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.tar.gz
tde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.zip
RPM: add PCLinuxOS support
Diffstat (limited to 'redhat/libraries')
-rw-r--r--redhat/libraries/libkdcraw/trinity-libkdcraw-3.5.13.1.spec2
-rw-r--r--redhat/libraries/libkexiv2/trinity-libkexiv2-3.5.13.1.spec2
-rw-r--r--redhat/libraries/libkipi/trinity-libkipi-3.5.13.1.spec2
-rw-r--r--redhat/libraries/libksquirrel/trinity-libksquirrel-3.5.13.1.spec4
-rw-r--r--redhat/libraries/pykdeextensions/trinity-pykdeextensions-3.5.13.1.spec7
-rw-r--r--redhat/libraries/python-trinity/python-trinity-3.5.13.1.spec8
6 files changed, 17 insertions, 8 deletions
diff --git a/redhat/libraries/libkdcraw/trinity-libkdcraw-3.5.13.1.spec b/redhat/libraries/libkdcraw/trinity-libkdcraw-3.5.13.1.spec
index 17d893733..ad7295ee1 100644
--- a/redhat/libraries/libkdcraw/trinity-libkdcraw-3.5.13.1.spec
+++ b/redhat/libraries/libkdcraw/trinity-libkdcraw-3.5.13.1.spec
@@ -79,7 +79,7 @@ libkdcraw-devel contains development files and documentation. The
library documentation is available on kdcraw.h header file.
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
diff --git a/redhat/libraries/libkexiv2/trinity-libkexiv2-3.5.13.1.spec b/redhat/libraries/libkexiv2/trinity-libkexiv2-3.5.13.1.spec
index 536dc1340..9d79a27ca 100644
--- a/redhat/libraries/libkexiv2/trinity-libkexiv2-3.5.13.1.spec
+++ b/redhat/libraries/libkexiv2/trinity-libkexiv2-3.5.13.1.spec
@@ -75,7 +75,7 @@ library. The library documentation is available on kexiv2.h header file.
Libkexif is a wrapper around Exiv2 library to manipulate pictures metadata.
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
diff --git a/redhat/libraries/libkipi/trinity-libkipi-3.5.13.1.spec b/redhat/libraries/libkipi/trinity-libkipi-3.5.13.1.spec
index 8bb1271be..6831bd301 100644
--- a/redhat/libraries/libkipi/trinity-libkipi-3.5.13.1.spec
+++ b/redhat/libraries/libkipi/trinity-libkipi-3.5.13.1.spec
@@ -85,7 +85,7 @@ This package contains development files and documentation for libkipi library.
Homepage: http://www.kipi-plugins.org/
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
diff --git a/redhat/libraries/libksquirrel/trinity-libksquirrel-3.5.13.1.spec b/redhat/libraries/libksquirrel/trinity-libksquirrel-3.5.13.1.spec
index 4bf6996a5..3ed0af029 100644
--- a/redhat/libraries/libksquirrel/trinity-libksquirrel-3.5.13.1.spec
+++ b/redhat/libraries/libksquirrel/trinity-libksquirrel-3.5.13.1.spec
@@ -54,10 +54,12 @@ BuildRequires: djvulibre
# XMEDCON support
%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+%if 0%{?pclinuxos} == 0
%define with_xmedcon 1
BuildRequires: xmedcon
BuildRequires: xmedcon-devel
%endif
+%endif
# RSVG support
%if 0%{?fedora} || 0%{?rhel}
@@ -102,7 +104,7 @@ Requires: %{name}
Tools for KSquirrel.
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
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
diff --git a/redhat/libraries/python-trinity/python-trinity-3.5.13.1.spec b/redhat/libraries/python-trinity/python-trinity-3.5.13.1.spec
index bcbc29aaa..9e35b3833 100644
--- a/redhat/libraries/python-trinity/python-trinity-3.5.13.1.spec
+++ b/redhat/libraries/python-trinity/python-trinity-3.5.13.1.spec
@@ -105,7 +105,7 @@ General documentation and examples for PyKDE providing programming
tips and working code you can use to learn from.
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
@@ -136,11 +136,15 @@ export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt
-L %{_lib} \
-v %{_datadir}/sip/trinity
-%if 0%{?mgaversion} || 0%{?mdkversion}
# Shitty hack to add LDFLAGS
+%if 0%{?mgaversion} || 0%{?mdkversion}
%__sed -i */Makefile \
+%if 0%{?pclinuxos}
+ -e "/^LIBS = / s|$| -lpython2.6 -lDCOP -lkdecore -lkdefx -lkdeui -lkresources -lkabc -lkparts -lkio|"
+%else
-e "/^LIBS = / s|$| -lpython2.7 -lDCOP -lkdecore -lkdefx -lkdeui -lkresources -lkabc -lkparts -lkio|"
%endif
+%endif
%__make %{_smp_mflags}