summaryrefslogtreecommitdiffstats
path: root/redhat/libraries
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-08-31 15:38:14 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-08-31 15:38:14 +0200
commitcdec7ede2cd93dedf437e5b10597433ea9d9eabe (patch)
tree723b1f74f1d9d264363e9b535466dd461be8fef6 /redhat/libraries
parent1af57210e2e55d40eb39a274fcf48779c6b9e7d5 (diff)
downloadtde-packaging-cdec7ede2cd93dedf437e5b10597433ea9d9eabe.tar.gz
tde-packaging-cdec7ede2cd93dedf437e5b10597433ea9d9eabe.zip
RPM Packaging: update 3.5.13.2 for openSUSE 13.1
Diffstat (limited to 'redhat/libraries')
-rw-r--r--redhat/libraries/libksquirrel/libksquirrel-3.5.13.2-fix_giflib5_support.patch114
-rw-r--r--redhat/libraries/libksquirrel/libksquirrel-3.5.13.2.spec2
-rw-r--r--redhat/libraries/pytdeextensions/pytdeextensions-3.5.13.2.spec30
-rw-r--r--redhat/libraries/python-trinity/python-trinity-3.5.13.2.spec18
4 files changed, 130 insertions, 34 deletions
diff --git a/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2-fix_giflib5_support.patch b/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2-fix_giflib5_support.patch
new file mode 100644
index 000000000..dc65f1928
--- /dev/null
+++ b/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2-fix_giflib5_support.patch
@@ -0,0 +1,114 @@
+--- trinity-libksquirrel-3.5.13.2/kernel/kls_gif/fmt_codec_gif.cpp.giflib5 2013-06-07 20:05:31.000000000 +0200
++++ trinity-libksquirrel-3.5.13.2/kernel/kls_gif/fmt_codec_gif.cpp 2013-08-24 17:58:13.978555540 +0200
+@@ -43,14 +43,26 @@
+ /* libgif 4.2.0 has retired PrintGifError() and added GifErrorString() */
+ #if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \
+ ((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4)
++#if GIFLIB_MAJOR > 4
++static void PrintGifError(int ErrorCode)
++#else
+ static void PrintGifError(void)
++#endif
+ {
++#if GIFLIB_MAJOR > 4
++ char *Err = GifErrorString(ErrorCode);
++#else
+ char *Err = GifErrorString();
++#endif
+
+ if (Err != NULL) {
+ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
+ } else {
++#if GIFLIB_MAJOR > 4
++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", ErrorCode);
++#else
+ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError());
++#endif
+ }
+ }
+ #endif
+@@ -107,7 +119,12 @@
+ buf = 0;
+ saved = 0;
+
++#if GIFLIB_MAJOR > 4
++ int ErrorCode;
++ gif = DGifOpenFileName(file.c_str(), &ErrorCode);
++#else
+ gif = DGifOpenFileName(file.c_str());
++#endif
+
+ // for safety...
+ if(!gif)
+@@ -198,7 +215,11 @@
+ {
+ if (DGifGetRecordType(gif, &record) == GIF_ERROR)
+ {
++#if GIFLIB_MAJOR > 4
++ PrintGifError(gif->Error);
++#else
+ PrintGifError();
++#endif
+ return SQE_R_BADFILE;
+ }
+
+@@ -207,7 +228,11 @@
+ case IMAGE_DESC_RECORD_TYPE:
+ if(DGifGetImageDesc(gif) == GIF_ERROR)
+ {
++#if GIFLIB_MAJOR > 4
++ PrintGifError(gif->Error);
++#else
+ PrintGifError();
++#endif
+ return SQE_R_BADFILE;
+ }
+
+@@ -243,7 +268,11 @@
+ case EXTENSION_RECORD_TYPE:
+ if(DGifGetExtension(gif, &ExtCode, &Extension) == GIF_ERROR)
+ {
++#if GIFLIB_MAJOR > 4
++ PrintGifError(gif->Error);
++#else
+ PrintGifError();
++#endif
+ return SQE_R_BADFILE;
+ }
+
+@@ -287,7 +316,11 @@
+ {
+ if(DGifGetExtensionNext(gif, &Extension) == GIF_ERROR)
+ {
++#if GIFLIB_MAJOR > 4
++ PrintGifError(gif->Error);
++#else
+ PrintGifError();
++#endif
+ return SQE_R_BADFILE;
+ }
+ }
+@@ -366,7 +399,11 @@
+ {
+ if(DGifGetLine(gif, buf, Width) == GIF_ERROR)
+ {
++#if GIFLIB_MAJOR > 4
++ PrintGifError(gif->Error);
++#else
+ PrintGifError();
++#endif
+ memset(scan, 255, im->w * sizeof(RGBA));
+ return SQE_R_BADFILE;
+ }
+@@ -439,7 +476,11 @@
+ if(DGifGetLine(gif, buf, Width) == GIF_ERROR)
+ {
+ memset(scan, 255, im->w * sizeof(RGBA));
++#if GIFLIB_MAJOR > 4
++ PrintGifError(gif->Error);
++#else
+ PrintGifError();
++#endif
+ return SQE_R_BADFILE;
+ }
+ else
diff --git a/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2.spec b/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2.spec
index 2d3f5691e..d6794dbd2 100644
--- a/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2.spec
+++ b/redhat/libraries/libksquirrel/libksquirrel-3.5.13.2.spec
@@ -41,6 +41,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
Patch0: libksquirrel-3.5.13-detect_netpbm.patch
+Patch1: libksquirrel-3.5.13.2-fix_giflib5_support.patch
BuildRequires: trinity-tqtinterface-devel >= %{tde_version}
BuildRequires: trinity-arts-devel >= 1:1.5.10
@@ -155,6 +156,7 @@ Tools for KSquirrel.
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
%patch0 -p1 -b .netpbm
+%patch1 -p1 -b .giflib5
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
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=
diff --git a/redhat/libraries/python-trinity/python-trinity-3.5.13.2.spec b/redhat/libraries/python-trinity/python-trinity-3.5.13.2.spec
index 3237c399f..a0c0bca9b 100644
--- a/redhat/libraries/python-trinity/python-trinity-3.5.13.2.spec
+++ b/redhat/libraries/python-trinity/python-trinity-3.5.13.2.spec
@@ -54,19 +54,7 @@ BuildRequires: gettext
# PYTHON support
BuildRequires: python
-%if 0%{?rhel} >= 4 && 0%{?rhel} <= 5
-# RHEL 4/5 comes with old version, so we brought ours ...
-BuildRequires: trinity-PyQt-devel
-%endif
-%if 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: python-qt
-%endif
-%if 0%{?rhel} >= 6 || 0%{?fedora}
-BuildRequires: PyQt-devel
-%endif
-%if 0%{?suse_version}
-BuildRequires: trinity-PyQt-devel
-%endif
+BuildRequires: python-qt3-devel
# SIP support
%if 0%{?rhel} >= 4 && 0%{?rhel} <= 5
@@ -104,7 +92,7 @@ Provides: python-trinity-devel = %{version}-%{release}
Development .sip files with definitions of PyTDE classes. They
are needed to build PyTDE, but also as building blocks of other
packages based on them.
-The package also contains kdepyuic, a wrapper script around PyQt's
+The package also contains kdepyuic, a wrapper script around python-qt3's
user interface compiler.
@@ -138,7 +126,7 @@ export KDEDIR=%{tde_prefix}
export DH_OPTIONS
-export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt
+export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/python-qt3
%__python configure.py \
-k %{tde_prefix} \