summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/dependencies/libtqtinterface
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-14 13:51:18 +0100
committerTim Williams <tmw@autotrain.org>2011-10-14 13:51:18 +0100
commitec2515f058c60d2478a549f58376db628ba556b9 (patch)
treeaefbde1b807005611b397e01ebc5782c7d27ff91 /mandriva/2010.2/dependencies/libtqtinterface
parentbba295da1161579c6fe734680c827e50a3585131 (diff)
downloadtde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.tar.gz
tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.zip
Initial commit of the Mandriva patches and spec files.
This includes the main dependencies and core packages, but very little else.
Diffstat (limited to 'mandriva/2010.2/dependencies/libtqtinterface')
-rw-r--r--mandriva/2010.2/dependencies/libtqtinterface/libtqtinterface.spec135
-rw-r--r--mandriva/2010.2/dependencies/libtqtinterface/tqglobal-comments.patch26
-rw-r--r--mandriva/2010.2/dependencies/libtqtinterface/tqt-comments.patch23
-rw-r--r--mandriva/2010.2/dependencies/libtqtinterface/tqt-r1217318.diff12
4 files changed, 196 insertions, 0 deletions
diff --git a/mandriva/2010.2/dependencies/libtqtinterface/libtqtinterface.spec b/mandriva/2010.2/dependencies/libtqtinterface/libtqtinterface.spec
new file mode 100644
index 000000000..3bba9bb56
--- /dev/null
+++ b/mandriva/2010.2/dependencies/libtqtinterface/libtqtinterface.spec
@@ -0,0 +1,135 @@
+# TODO
+# - for some unknown reason to me it creates dead symlinks instead of libtqt shared library
+# libtool: install: /usr/bin/install -c -p .libs/libtqt.so.4.2.0 /tmp/xxx/usr/lib64/libtqt.so.4.2.0
+# /usr/bin/install: cannot stat `.libs/libtqt.so.4.2.0': No such file or directory
+# workarounded in spec r1.2 commit
+#
+# Conditional build:
+%bcond_with qt4 # Enable Qt4 support (this will disable all Qt3 support)
+
+%define epoch_kdelibs 30000000
+
+Summary: Interface and abstraction library for Qt and Trinity
+Name: libtqtinterface
+Version: 3.5.12
+Release: %mkrel 1
+#Epoch: %epoch_kdelibs
+License: GPL v2
+Group: Graphical desktop/KDE3
+Source0: http://mirror.its.uidaho.edu/pub/trinity/releases/%{version}/dependencies/tqtinterface-%{version}.tar.gz
+# Source0-md5: 361c45961184f01f95d3b771138c8229
+Patch0: tqt-comments.patch
+Patch1: tqglobal-comments.patch
+Patch2: tqt-r1217318.diff
+URL: http://trinity.pearsoncomputing.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libltdl-devel
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: qt3-devel
+BuildRequires: sed >= 4.0
+#BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot: %_tmppath/%name-%version-%release-root
+
+
+%description
+This package includes libraries that abstract the underlying Qt system
+from the actual Trinity code, allowing easy, complete upgrades to new
+versions of Qt.
+
+It also contains various functions that have been removed from newer
+versions of Qt, but are completely portable and isolated from other
+APIs such as Xorg. This allows the Trinity project to efficiently
+perform certain operations that are infeasible or unneccessarily
+difficult when using pure Qt4 or above.
+
+%package devel
+Summary: Header files for libtqtinterface library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtqtinterface
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for libtqtinterface library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libtqtinterface.
+
+%prep
+%setup -qc
+mv dependencies/tqtinterface/* .
+%patch0 -p0
+%patch1 -p0
+%patch2 -p2
+
+# libtool copy
+rm -r libltdl
+%{__sed} -i -e '/ltdl.m4/d' Makefile.am.in
+
+# remove copy of QtCore and QtGui devel headers
+rm -r qtinterface/qt4 qtinterface/tqt4
+%{__sed} -i -e /tqt4/d qtinterface/Makefile.am
+
+%build
+make -f admin/Makefile.common cvs
+
+QTDIR=%qt3dir ; export QTDIR;
+PATH=%{qt3dir}/bin:$PATH; export PATH;
+export xdg_menudir=%_sysconfdir/xdg/kde/menus
+
+%configure_kde3 \
+ --includedir=%{_kde3_includedir}/tqt \
+%if "%{_lib}" == "lib64"
+ --enable-libsuffix=64 \
+%endif
+ %{?with_qt4:--enable-qt4}
+
+%{__make} \
+ LIBTOOL="%{_bindir}/libtool -v"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# force -j1 or USE_QTX is replaced _after_ file is installed
+%{__make} -j1 install \
+ DESTDIR=$RPM_BUILD_ROOT \
+
+# --disable-static did not work, rm it again
+#rm $RPM_BUILD_ROOT%{_libdir}/libtqt.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_kde3_libdir}/libtqt.so.*.*.*
+%attr(755,root,root) %{_kde3_libdir}/libtqt.a
+%ghost %attr(755,root,root) %{_kde3_libdir}/libtqt.so.4
+
+%files devel
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING README
+%attr(755,root,root) %{_kde3_bindir}/convert_qt_tqt1
+%attr(755,root,root) %{_kde3_bindir}/convert_qt_tqt2
+%attr(755,root,root) %{_kde3_bindir}/convert_qt_tqt3
+%attr(755,root,root) %{_kde3_bindir}/dcopidl-tqt
+%attr(755,root,root) %{_kde3_bindir}/dcopidl2cpp-tqt
+%attr(755,root,root) %{_kde3_bindir}/dcopidlng-tqt
+%attr(755,root,root) %{_kde3_bindir}/mcopidl-tqt
+%attr(755,root,root) %{_kde3_bindir}/moc-tqt
+%attr(755,root,root) %{_kde3_bindir}/tqt-replace
+%attr(755,root,root) %{_kde3_bindir}/tqt-replace-stream
+%dir %{_kde3_includedir}/tqt
+%{_kde3_includedir}/tqt/tq*.h
+%{_kde3_libdir}/libtqt.la
+%{_kde3_libdir}/libtqt.so
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* Wed Feb 1 2011 Tim Williams <tim@my-place.org.uk> 1:3.5.12-1mvf2010.2
++ Rewrite for MDV 2010.2
++ Spec based on revision 1.4 from PLD linux
++ Add tqt-comments.patch, tqglobal-comments.patch. My compiler doesn't like // comments.
diff --git a/mandriva/2010.2/dependencies/libtqtinterface/tqglobal-comments.patch b/mandriva/2010.2/dependencies/libtqtinterface/tqglobal-comments.patch
new file mode 100644
index 000000000..332a7d57c
--- /dev/null
+++ b/mandriva/2010.2/dependencies/libtqtinterface/tqglobal-comments.patch
@@ -0,0 +1,26 @@
+--- qtinterface/tqglobal.h.orig 2011-02-04 12:35:10.215472605 +0000
++++ qtinterface/tqglobal.h 2011-02-04 12:35:45.537474675 +0000
+@@ -26,18 +26,18 @@
+
+ #ifdef USE_QT3
+
+-// Pull in all Qt3 global defines
++/* Pull in all Qt3 global defines */
+
+ #include <qglobal.h>
+
+-#endif // USE_QT3
++#endif /* USE_QT3 */
+
+ #ifdef USE_QT4
+
+-// Pull in all Qt4 global defines
++/* Pull in all Qt4 global defines */
+
+ #include <Qt/qglobal.h>
+
+-#endif // USE_QT4
++#endif /* USE_QT4 */
+
+ #endif /* TQGLOBAL_H */
+\ No newline at end of file
diff --git a/mandriva/2010.2/dependencies/libtqtinterface/tqt-comments.patch b/mandriva/2010.2/dependencies/libtqtinterface/tqt-comments.patch
new file mode 100644
index 000000000..e367613f8
--- /dev/null
+++ b/mandriva/2010.2/dependencies/libtqtinterface/tqt-comments.patch
@@ -0,0 +1,23 @@
+--- qtinterface/tqt.h.orig 2010-08-31 00:37:01.000000000 +0100
++++ qtinterface/tqt.h 2011-02-03 13:48:47.483987570 +0000
+@@ -42,7 +42,7 @@
+ #define TQT_METHOD(a) METHOD(a)
+ #define TQT_SLOT(a) SLOT(a)
+ #define TQT_SIGNAL(a) SIGNAL(a)
+-#endif // __cplusplus
++#endif
+
+ #ifdef USE_QT3
+ #define qint64 long
+@@ -1319,11 +1319,4 @@
+ #define TQXmlDefaultHandler QXmlDefaultHandler
+ #endif
+
+-// Undo any damage caused by the tqt-replace utility
+-//#define QCStringList TQCStringList
+-//#define QtWIN TQtWIN
+-
+-//#include "kdemacros.h.in"
+-//#define TQT_EXPORT KDE_EXPORT
+-
+ #endif /* TQT_H */
diff --git a/mandriva/2010.2/dependencies/libtqtinterface/tqt-r1217318.diff b/mandriva/2010.2/dependencies/libtqtinterface/tqt-r1217318.diff
new file mode 100644
index 000000000..cd9ca03bd
--- /dev/null
+++ b/mandriva/2010.2/dependencies/libtqtinterface/tqt-r1217318.diff
@@ -0,0 +1,12 @@
+Index: dependencies/tqtinterface/qtinterface/tqt.h
+===================================================================
+--- dependencies/tqtinterface/qtinterface/tqt.h (revision 1217317)
++++ dependencies/tqtinterface/qtinterface/tqt.h (revision 1217318)
+@@ -85,6 +85,7 @@
+ #define TQ_ControlButton ControlButton
+ #define TQ_AltButton AltButton
+ #define TQ_MetaButton MetaButton
++#define TQ_WFlags TQt::WFlags
+ #define TQIODevice_OpenModeFlag int
+
+ #define TQAlignCenter AlignCenter