1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
#
# spec file for package tqtinterface
#
# Copyright (c) 2011 the Trinity Project (opensuse).
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.trinitydesktop.org/
#
# norootforbuild
Name: libtqt4
License: GPLv2+
Group: Graphical Desktop/TDE
Summary: Interface and abstraction library for Qt and Trinity
Version: 3.5.12.99
Release: 1%{dist}
Source0: %{name}-%{version}.tar.bz2
URL: http://www.trinitydesktop.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define with_qt3 1
%define with_qt4 0
%if %{with_qt3}
BuildRequires: qt3-devel >= 3.3.8c
Requires: qt3 >= 3.3.8c
%endif
%if %{with_qt4}
BuildRequires: libqt4-devel >= 4.7.0
Requires: libqt4-x11 >= 4.7.0
%endif
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: libtool
BuildRequires: gcc-c++
%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.
Authors:
--------
Timothy Pearson <kb9vqf@pearsoncomputing.net>
Robert Xu <rxu@lincomlinux.org>
Tim Williams <tim@my-place.org.uk>
Serghei Amelian <serghei@thel.ro>
%package devel
Summary: TQtinterface header files
Group: Graphical Desktop/TDE
Requires: libtqt4
%if %{with_qt3}
Requires: qt3-devel >= 3.3.8c
%endif
%if %{with_qt4}
Requires: libqt4-devel >= 4.7.0
%endif
%description devel
This package contains Trinity KDE specific window options and commands.
You need this package to compile Trinity modules. (TQT headers)
Authors:
--------
Timothy Pearson <kb9vqf@pearsoncomputing.net>
Robert Xu <rxu@lincomlinux.org>
Tim Williams <tim@my-place.org.uk>
Serghei Amelian <serghei@thel.ro>
%package tools
Summary: TQtinterface library files
Group: Graphical Desktop/TDE
Requires: libtqt4
%description tools
This package contains Trinity KDE specific window options and commands.
It includes tools to help you modify and use TQtinterface.
Authors:
--------
Timothy Pearson <kb9vqf@pearsoncomputing.net>
Robert Xu <rxu@lincomlinux.org>
Tim Williams <tim@my-place.org.uk>
Serghei Amelian <serghei@thel.ro>
%prep
%if %{with_qt3}
%setup -qn tqtinterface-qt3-%{version}
%else
%setup -qn tqtinterface-qt4-%{version}
%endif
%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ;
mkdir build
cd build
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
%if "%{?_lib}" == "lib64"
-DLIB_SUFFIX=64 \
%endif
-DBUILD_SHARED_LIBS:BOOL=ON \
%if %{with_qt3}
-DWITH_QT3=ON \
%endif
%if %{with_qt4}
-DWITH_QT4=ON \
%endif
-DQT_LIBRARY_DIRS=/usr/lib/qt3/%{_lib} \
-DQT_INCLUDE_DIRS=/usr/lib/qt3/include \
-DPKGCONFIG_INSTALL_DIR=%{_libdir}/pkgconfig \
../
make %{?_smp_mflags} VERBOSE=1
%install
make DESTDIR=%{buildroot} install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,755)
%{_libdir}/libtqt.so
%{_libdir}/libtqt.so.4
%{_libdir}/libtqt.so.4.2.0
%files devel
%defattr(-,root,root,755)
%dir %{_includedir}/Qt
%{_includedir}/Qt/q*.h
%{_includedir}/tq*.h
%{_libdir}/pkgconfig/TQt.pc
%files tools
%defattr(-,root,root,755)
%{_bindir}/convert_qt_tqt1
%{_bindir}/convert_qt_tqt2
%{_bindir}/convert_qt_tqt3
%{_bindir}/dcopidl-tqt
%{_bindir}/dcopidl2cpp-tqt
%{_bindir}/dcopidlng-tqt
%{_bindir}/mcopidl-tqt
%{_bindir}/moc-tqt
%{_bindir}/tmoc
%{_bindir}/tqt-replace
%{_bindir}/tqt-replace-stream
%changelog
|