1 |
%define _qt4_qmake %_qt4_bindir/qmake |
%define hash dadc327c2a6a |
|
%define oname libqxt |
|
2 |
|
|
3 |
%define libname %mklibname qxt |
Name: libqxt |
|
%define develname %mklibname -d qxt |
|
|
|
|
|
Name: qxt |
|
4 |
Version: 0.6.2 |
Version: 0.6.2 |
5 |
Release: %mkrel 4 |
Release: %mkrel 5 |
6 |
Summary: Qt extension library |
Summary: Qt extension library |
7 |
Group: System/Libraries |
Group: System Environment/Libraries |
8 |
License: CPL or LGPLv2 |
License: CPL or LGPLv2 |
9 |
URL: http://www.libqxt.org/ |
URL: http://www.libqxt.org/ |
10 |
Source0: http://bitbucket.org/%{oname}/%{oname}/get/v%{version}.tar.bz2 |
Source0: http://bitbucket.org/libqxt/libqxt/get/v%{version}.tar.gz |
11 |
|
# Originally from Fedora: |
12 |
|
# |
13 |
# Fix DSO linking |
# Fix DSO linking |
14 |
Patch0: libqxt-linking.patch |
Patch0: libqxt-linking.patch |
15 |
|
|
16 |
|
# Fedora patches: |
17 |
|
# |
18 |
# To support multimedia keys when using clementine |
# To support multimedia keys when using clementine |
19 |
# Patch sent to upstream. They want to reimplement it more cleanly. |
# Patch sent to upstream. They want to reimplement it more cleanly. |
20 |
# We will use this patch until upstream reimplements it. |
# We will use this patch until upstream reimplements it. |
24 |
# http://dev.libqxt.org/libqxt/issue/112/wrong-include-in-qxtnetworkh |
# http://dev.libqxt.org/libqxt/issue/112/wrong-include-in-qxtnetworkh |
25 |
Patch2: libqxt-header-fix.patch |
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 |
BuildRequires: avahi-compat-libdns_sd-devel |
|
BuildRequires: avahi-core-devel |
|
|
BuildRequires: avahi-common-devel |
|
32 |
BuildRequires: db4-devel |
BuildRequires: db4-devel |
33 |
BuildRequires: libxrandr-devel |
BuildRequires: kde4-macros |
34 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
35 |
BuildRequires: qt4-devel |
BuildRequires: qt4-devel |
36 |
|
BuildRequires: qt4-qdoc3 |
37 |
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}} |
Obsoletes: qxt < 0.6.2-5 |
38 |
|
|
39 |
%description |
%description |
40 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
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. |
utility classes to add functionality not readily available in the Qt toolkit. |
42 |
|
|
43 |
%package -n %{libname} |
#--------------------- |
44 |
Summary: Main library for qxt - qt extension library |
|
45 |
|
%define berkeley_major 0 |
46 |
|
%define berkeley_lib %mklibname qxt-berkeley %{berkeley_major} |
47 |
|
|
48 |
|
%package -n %{berkeley_lib} |
49 |
|
Summary: Berkeley databases module for Qt (LibQxt) |
50 |
Group: System/Libraries |
Group: System/Libraries |
51 |
|
Conflicts: %{name} < 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 qxt-core %{core_major} |
67 |
|
|
68 |
|
%package -n %{core_lib} |
69 |
|
Summary: Extensions to Qt core classes (LibQxt) |
70 |
|
Group: System/Libraries |
71 |
|
Obsoletes: %{name} < 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 qxt-gui %{gui_major} |
87 |
|
|
88 |
%description -n %{libname} |
%package -n %{gui_lib} |
89 |
|
Summary: Extensions to Qt GUI classes (LibQxt) |
90 |
|
Group: System/Libraries |
91 |
|
Conflicts: %{name} < 0.6.2-5 |
92 |
|
|
93 |
|
%description -n %{gui_lib} |
94 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
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. |
utility classes to add functionality not readily available in the Qt toolkit. |
96 |
|
|
97 |
%package -n %{develname} |
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 qxt-network %{network_major} |
107 |
|
|
108 |
|
%package -n %{network_lib} |
109 |
|
Summary: Extensions to Qt network classes (LibQxt) |
110 |
|
Group: System/Libraries |
111 |
|
Conflicts: %{name} < 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 qxt-sql %{sql_major} |
127 |
|
|
128 |
|
%package -n %{sql_lib} |
129 |
|
Summary: Extensions to Qt core classes (LibQxt) |
130 |
|
Group: System/Libraries |
131 |
|
Conflicts: %{name} < 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 qxt-web %{web_major} |
147 |
|
|
148 |
|
%package -n %{web_lib} |
149 |
|
Summary: Library to create web services using Qt (LibQxt) |
150 |
|
Group: System/Libraries |
151 |
|
Conflicts: %{name} < 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 qxt-zeroconf %{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: %{name} < 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} |
Summary: Development files for %{name} |
190 |
Group: Development/C++ |
Group: Development/KDE and Qt |
|
Requires: avahi-compat-libdns_sd-devel |
|
|
Requires: avahi-core-devel |
|
|
Requires: db4-devel |
|
|
Requires: qt4-devel |
|
|
Requires: %{libname} = %{version} |
|
191 |
Provides: %{name}-devel = %{version}-%{release} |
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 %{develname} |
%description -n %{devname} |
202 |
This package contains libraries and header files for developing applications |
This package contains libraries and header files for developing applications |
203 |
that use LibQxt. |
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 |
%prep |
217 |
%setup -q -n %{oname}-%{oname}-v%{version} |
%setup -q -n %{name}-%{name}-%{hash} |
218 |
%patch0 -p1 -b .linking |
%apply_patches |
|
%patch1 -p1 -b .mediakeys |
|
|
%patch2 -p1 -b .includes |
|
219 |
|
|
220 |
# We don't want rpath |
# We don't want rpath |
221 |
sed -i '/RPATH/d' src/qxtlibs.pri |
sed -i '/RPATH/d' src/qxtlibs.pri |
222 |
|
|
|
|
|
223 |
%build |
%build |
224 |
|
%setup_compile_flags |
225 |
# Does not use GNU configure |
# Does not use GNU configure |
226 |
./configure -verbose \ |
./configure -verbose \ |
227 |
-qmake-bin %{_qt4_qmake} \ |
-I %{_includedir}/avahi-compat-libdns_sd \ |
228 |
|
-qmake-bin %{_qt4_bindir}/qmake \ |
229 |
-prefix %{_prefix} \ |
-prefix %{_prefix} \ |
230 |
-libdir %{_libdir} |
-libdir %{_libdir} |
231 |
%make |
%make |
232 |
%make docs |
%make docs |
233 |
|
|
|
|
|
234 |
%install |
%install |
235 |
rm -rf %{buildroot} |
%makeinstall_std INSTALL_ROOT=%{buildroot} |
236 |
make install INSTALL_ROOT=%{buildroot} |
|
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 |
# We are installing these to the proper location |
241 |
rm -fr %{buildroot}%{_prefix}/doc/ |
rm -fr %{buildroot}%{_prefix}/doc/ |
|
|
|
|
%files -n %{libname} |
|
|
%doc AUTHORS CHANGES *.txt LICENSE README |
|
|
%{_qt4_libdir}/*.so.* |
|
|
|
|
|
%files -n %{develname} |
|
|
%doc examples/ doc/html/ |
|
|
%{_qt4_includedir}/* |
|
|
%{_qt4_libdir}/*.so |
|
|
%{_qt4_plugindir}/designer/*.so |
|
|
%{_qt4_datadir}/mkspecs/features/qxt*.prf |
|
|
|
|