1 |
%define hash dadc327c2a6a |
2 |
|
3 |
Name: libqxt |
4 |
Version: 0.6.2 |
5 |
Release: %mkrel 8 |
6 |
Summary: Qt extension library |
7 |
Group: System/Libraries |
8 |
License: CPL or LGPLv2 |
9 |
URL: http://www.libqxt.org/ |
10 |
Source0: http://bitbucket.org/libqxt/libqxt/get/v%{version}.tar.gz |
11 |
# Originally from Fedora: |
12 |
# |
13 |
# Fix DSO linking |
14 |
Patch0: libqxt-linking.patch |
15 |
|
16 |
# Fedora patches: |
17 |
# |
18 |
# To support multimedia keys when using clementine |
19 |
# Patch sent to upstream. They want to reimplement it more cleanly. |
20 |
# We will use this patch until upstream reimplements it. |
21 |
# http://dev.libqxt.org/libqxt/issue/75 |
22 |
Patch1: libqxt-media-keys.patch |
23 |
# Fix wrong header includes RHBZ#733222 |
24 |
# http://dev.libqxt.org/libqxt/issue/112/wrong-include-in-qxtnetworkh |
25 |
Patch2: libqxt-header-fix.patch |
26 |
|
27 |
#Debian patches |
28 |
Patch3: libqxt-use-system-qdoc3.patch |
29 |
Patch4: libqxt-fix-compiler-flags.patch |
30 |
|
31 |
BuildRequires: avahi-compat-libdns_sd-devel |
32 |
BuildRequires: db4-devel |
33 |
BuildRequires: kde4-macros |
34 |
BuildRequires: openssl-devel |
35 |
BuildRequires: qt4-devel |
36 |
BuildRequires: qt4-qdoc3 |
37 |
Obsoletes: qxt < 0.6.2-5 |
38 |
|
39 |
%description |
40 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
41 |
utility classes to add functionality not readily available in the Qt toolkit. |
42 |
|
43 |
#--------------------- |
44 |
|
45 |
%define berkeley_major 0 |
46 |
%define berkeley_lib %mklibname qxtberkeley %{berkeley_major} |
47 |
|
48 |
%package -n %{berkeley_lib} |
49 |
Summary: Berkeley databases module for Qt (LibQxt) |
50 |
Group: System/Libraries |
51 |
Conflicts: %{_lib}qxt < 0.6.2-5 |
52 |
|
53 |
%description -n %{berkeley_lib} |
54 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
55 |
utility classes to add functionality not readily available in the Qt toolkit. |
56 |
|
57 |
The QxtBerkeley module provides a Qt interface to Berkeley databases. |
58 |
|
59 |
%files -n %{berkeley_lib} |
60 |
%{_qt4_libdir}/libQxtBerkeley.so.%{berkeley_major} |
61 |
%{_qt4_libdir}/libQxtBerkeley.so.%{berkeley_major}.* |
62 |
|
63 |
#--------------------- |
64 |
|
65 |
%define core_major 0 |
66 |
%define core_lib %mklibname qxtcore %{core_major} |
67 |
|
68 |
%package -n %{core_lib} |
69 |
Summary: Extensions to Qt core classes (LibQxt) |
70 |
Group: System/Libraries |
71 |
Obsoletes: %{_lib}qxt < 0.6.2-5 |
72 |
|
73 |
%description -n %{core_lib} |
74 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
75 |
utility classes to add functionality not readily available in the Qt toolkit. |
76 |
|
77 |
The QxtCore module extends QtCore and contains core non-GUI functionality. |
78 |
|
79 |
%files -n %{core_lib} |
80 |
%{_qt4_libdir}/libQxtCore.so.%{core_major} |
81 |
%{_qt4_libdir}/libQxtCore.so.%{core_major}.* |
82 |
|
83 |
#--------------------- |
84 |
|
85 |
%define gui_major 0 |
86 |
%define gui_lib %mklibname qxtgui %{gui_major} |
87 |
|
88 |
%package -n %{gui_lib} |
89 |
Summary: Extensions to Qt GUI classes (LibQxt) |
90 |
Group: System/Libraries |
91 |
Conflicts: %{_lib}qxt < 0.6.2-5 |
92 |
|
93 |
%description -n %{gui_lib} |
94 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
95 |
utility classes to add functionality not readily available in the Qt toolkit. |
96 |
|
97 |
The QxtGui module extends QxtCore and QtGui modules. |
98 |
|
99 |
%files -n %{gui_lib} |
100 |
%{_qt4_libdir}/libQxtGui.so.%{gui_major} |
101 |
%{_qt4_libdir}/libQxtGui.so.%{gui_major}.* |
102 |
|
103 |
#--------------------- |
104 |
|
105 |
%define network_major 0 |
106 |
%define network_lib %mklibname qxtnetwork %{network_major} |
107 |
|
108 |
%package -n %{network_lib} |
109 |
Summary: Extensions to Qt network classes (LibQxt) |
110 |
Group: System/Libraries |
111 |
Conflicts: %{_lib}qxt < 0.6.2-5 |
112 |
|
113 |
%description -n %{network_lib} |
114 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
115 |
utility classes to add functionality not readily available in the Qt toolkit. |
116 |
|
117 |
The QxtNetwork module extends QtNetwork module. |
118 |
|
119 |
%files -n %{network_lib} |
120 |
%{_qt4_libdir}/libQxtNetwork.so.%{network_major} |
121 |
%{_qt4_libdir}/libQxtNetwork.so.%{network_major}.* |
122 |
|
123 |
#--------------------- |
124 |
|
125 |
%define sql_major 0 |
126 |
%define sql_lib %mklibname qxtsql %{sql_major} |
127 |
|
128 |
%package -n %{sql_lib} |
129 |
Summary: Extensions to Qt core classes (LibQxt) |
130 |
Group: System/Libraries |
131 |
Conflicts: %{_lib}qxt < 0.6.2-5 |
132 |
|
133 |
%description -n %{sql_lib} |
134 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
135 |
utility classes to add functionality not readily available in the Qt toolkit. |
136 |
|
137 |
The QxtSql module extends QtSql module. |
138 |
|
139 |
%files -n %{sql_lib} |
140 |
%{_qt4_libdir}/libQxtSql.so.%{sql_major} |
141 |
%{_qt4_libdir}/libQxtSql.so.%{sql_major}.* |
142 |
|
143 |
#--------------------- |
144 |
|
145 |
%define web_major 0 |
146 |
%define web_lib %mklibname qxtweb %{web_major} |
147 |
|
148 |
%package -n %{web_lib} |
149 |
Summary: Library to create web services using Qt (LibQxt) |
150 |
Group: System/Libraries |
151 |
Conflicts: %{_lib}qxt < 0.6.2-5 |
152 |
|
153 |
%description -n %{web_lib} |
154 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
155 |
utility classes to add functionality not readily available in the Qt toolkit. |
156 |
|
157 |
The QxtWeb module provides tools for creating web services using Qt. |
158 |
|
159 |
%files -n %{web_lib} |
160 |
%{_qt4_libdir}/libQxtWeb.so.%{web_major} |
161 |
%{_qt4_libdir}/libQxtWeb.so.%{web_major}.* |
162 |
|
163 |
#--------------------- |
164 |
|
165 |
%define zeroconf_major 0 |
166 |
%define zeroconf_lib %mklibname qxtzeroconf %{zeroconf_major} |
167 |
|
168 |
%package -n %{zeroconf_lib} |
169 |
Summary: Library to use multicast DNS service discovery in Qt (LibQxt) |
170 |
Group: System/Libraries |
171 |
Conflicts: %{_lib}qxt < 0.6.2-5 |
172 |
|
173 |
%description -n %{zeroconf_lib} |
174 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
175 |
utility classes to add functionality not readily available in the Qt toolkit. |
176 |
|
177 |
The QxtZeroconf module enables Qt application to easily benefit from Multicast |
178 |
DNS Service Discovery (Zeroconf) protocols. |
179 |
|
180 |
%files -n %{zeroconf_lib} |
181 |
%{_qt4_libdir}/libQxtZeroconf.so.%{zeroconf_major} |
182 |
%{_qt4_libdir}/libQxtZeroconf.so.%{zeroconf_major}.* |
183 |
|
184 |
#--------------------- |
185 |
|
186 |
%define devname %mklibname qxt -d |
187 |
|
188 |
%package -n %{devname} |
189 |
Summary: Development files for %{name} |
190 |
Group: Development/KDE and Qt |
191 |
Provides: %{name}-devel = %{version}-%{release} |
192 |
Provides: qxt-devel = %{version}-%{release} |
193 |
Requires: %{berkeley_lib} = %{version}-%{release} |
194 |
Requires: %{core_lib} = %{version}-%{release} |
195 |
Requires: %{gui_lib} = %{version}-%{release} |
196 |
Requires: %{network_lib} = %{version}-%{release} |
197 |
Requires: %{sql_lib} = %{version}-%{release} |
198 |
Requires: %{web_lib} = %{version}-%{release} |
199 |
Requires: %{zeroconf_lib} = %{version}-%{release} |
200 |
|
201 |
%description -n %{devname} |
202 |
This package contains libraries and header files for developing applications |
203 |
that use LibQxt. |
204 |
|
205 |
%files -n %{devname} |
206 |
%doc examples/ |
207 |
#doc doc/html/ |
208 |
%{_qt4_includedir}/Qxt*/ |
209 |
%{_qt4_libdir}/libQxt*.so |
210 |
%{_qt4_plugindir}/designer/libQxtDesignerPlugins.so |
211 |
%{_qt4_datadir}/mkspecs/features/qxt*.prf |
212 |
%{_datadir}/cmake/Modules/FindQxt.cmake |
213 |
|
214 |
#--------------------- |
215 |
|
216 |
%prep |
217 |
%setup -q -n %{name}-%{name}-%{hash} |
218 |
%apply_patches |
219 |
|
220 |
# We don't want rpath |
221 |
sed -i '/RPATH/d' src/qxtlibs.pri |
222 |
|
223 |
%build |
224 |
%setup_compile_flags |
225 |
# Does not use GNU configure |
226 |
./configure -verbose \ |
227 |
-I %{_includedir}/avahi-compat-libdns_sd \ |
228 |
-qmake-bin %{_qt4_bindir}/qmake \ |
229 |
-prefix %{_prefix} \ |
230 |
-libdir %{_libdir} |
231 |
%make |
232 |
%make docs |
233 |
|
234 |
%install |
235 |
%makeinstall_std INSTALL_ROOT=%{buildroot} |
236 |
|
237 |
#CMake module |
238 |
install -Dpm644 features/FindQxt.cmake %{buildroot}%{_datadir}/cmake/Modules/FindQxt.cmake |
239 |
|
240 |
# We are installing these to the proper location |
241 |
rm -fr %{buildroot}%{_prefix}/doc/ |