summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/python-trinity
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-12-28 17:33:42 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2013-12-28 17:33:42 +0100
commitf2b702ffebf729f632c9fe8dadd8fa06660832d7 (patch)
treeaa22a785a863d87a3d96d3c1a085de79fd0b138f /redhat/libraries/python-trinity
parent43ed3b6077952745b04a8c749726871f7cd76142 (diff)
downloadtde-packaging-f2b702ffebf729f632c9fe8dadd8fa06660832d7.tar.gz
tde-packaging-f2b702ffebf729f632c9fe8dadd8fa06660832d7.zip
RPM Packaging: update python stuff
Diffstat (limited to 'redhat/libraries/python-trinity')
-rw-r--r--redhat/libraries/python-trinity/python-trinity-14.0.0-python_tqt.patch11
-rw-r--r--redhat/libraries/python-trinity/python-trinity-14.0.0-sip4_tqt.patch23
-rw-r--r--redhat/libraries/python-trinity/python-trinity-14.0.0.spec31
3 files changed, 43 insertions, 22 deletions
diff --git a/redhat/libraries/python-trinity/python-trinity-14.0.0-python_tqt.patch b/redhat/libraries/python-trinity/python-trinity-14.0.0-python_tqt.patch
new file mode 100644
index 000000000..361a00a35
--- /dev/null
+++ b/redhat/libraries/python-trinity/python-trinity-14.0.0-python_tqt.patch
@@ -0,0 +1,11 @@
+--- python-trinity/configure.py.ORI2 2013-12-28 17:02:32.849146767 +0100
++++ python-trinity/configure.py 2013-12-28 17:02:44.143068602 +0100
+@@ -37,7 +37,7 @@
+ sys.exit (-1)
+
+ try:
+- import pyqtconfig
++ from python_tqt import pyqtconfig
+ except:
+ sipconfig.error ("Can't find pyqtconfig.py in sys.path - exiting")
+
diff --git a/redhat/libraries/python-trinity/python-trinity-14.0.0-sip4_tqt.patch b/redhat/libraries/python-trinity/python-trinity-14.0.0-sip4_tqt.patch
new file mode 100644
index 000000000..e73fbdff0
--- /dev/null
+++ b/redhat/libraries/python-trinity/python-trinity-14.0.0-sip4_tqt.patch
@@ -0,0 +1,23 @@
+--- python-trinity/configure.py.ORI 2013-12-28 15:55:54.269299304 +0100
++++ python-trinity/configure.py 2013-12-28 15:56:05.611221484 +0100
+@@ -30,7 +30,7 @@
+ import py_compile
+
+ try:
+- import sipconfig
++ from sip4_tqt import sipconfig
+ except:
+ print ("Can't find sipconfig.py (expected in sys.path)")
+ print ("Have you built the correct version of sip?")
+--- python-trinity/pytdeconfig.py.in.ORI 2013-12-28 15:57:53.618481027 +0100
++++ python-trinity/pytdeconfig.py.in 2013-12-28 15:58:05.467399833 +0100
+@@ -22,7 +22,8 @@
+ # modules that %Import PyKDE modules.
+
+
+-import sipconfig, pyqtconfig
++from sip4_tqt import sipconfig
++import pyqtconfig
+
+
+ # These are installation specific values created when PyTQt was configured.
diff --git a/redhat/libraries/python-trinity/python-trinity-14.0.0.spec b/redhat/libraries/python-trinity/python-trinity-14.0.0.spec
index 978c6e036..0b2b65586 100644
--- a/redhat/libraries/python-trinity/python-trinity-14.0.0.spec
+++ b/redhat/libraries/python-trinity/python-trinity-14.0.0.spec
@@ -43,8 +43,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
-#Patch0: python-trinity-14.0.0-ftbfs.patch
-#Patch1: python-trinity-14.0.0-ftbfs2.patch
+Patch1: python-trinity-14.0.0-sip4_tqt.patch
+Patch2: python-trinity-14.0.0-python_tqt.patch
BuildRequires: trinity-tqtinterface-devel >= %{tde_version}
BuildRequires: trinity-arts-devel >= 1:1.5.10
@@ -55,22 +55,11 @@ BuildRequires: gettext
# PYTHON support
BuildRequires: python
BuildRequires: trinity-python-tqt-devel
+Requires: trinity-python-tqt
-
-# SIP support
-%if 0%{?rhel} >= 4 && 0%{?rhel} <= 5
-# RHEL 4/5 comes with old version, so we brought ours ...
-BuildRequires: trinity-sip-devel
-%endif
-%if 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: python-sip
-%endif
-%if 0%{?rhel} >= 6 || 0%{?fedora}
-BuildRequires: sip-devel
-%endif
-%if 0%{?suse_version}
-BuildRequires: python-sip-devel
-%endif
+# SIP
+BuildRequires: trinity-sip4-tqt-devel >= 4.10.5
+Requires: trinity-sip4-tqt >= 4.10.5
Obsoletes: python-trinity < %{version}-%{release}
Provides: python-trinity = %{version}-%{release}
@@ -78,7 +67,7 @@ Provides: python-trinity = %{version}-%{release}
%description
Python binding module that provides wide access to the Trinity API,
also known as PyTDE. Using this, you'll get (for example) classes
-from kio, kjs, khtml and kprint.
+from tdeio, tdejs, tdehtml and tdeprint.
%package devel
@@ -116,10 +105,8 @@ tips and working code you can use to learn from.
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
-%if 0%{?suse_version} == 1310
-#patch0 -p1 -b .ftbfs
-#patch1 -p1 -b .ftbfs
-%endif
+%patch1 -p1 -b .sip4tqt
+%patch2 -p1 -b .pythontqt
%build