/[packages]/cauldron/libqxt/current/SPECS/libqxt.spec
ViewVC logotype

Annotation of /cauldron/libqxt/current/SPECS/libqxt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 739126 - (hide annotations) (download)
Tue Oct 14 22:15:38 2014 UTC (9 years, 11 months ago) by umeabot
File size: 7092 byte(s)
Second Mageia 5 Mass Rebuild
1 wally 595573 %define hash dadc327c2a6a
2 matteo 492293
3 wally 595573 Name: libqxt
4 matteo 492293 Version: 0.6.2
5 umeabot 739126 Release: %mkrel 8
6 matteo 492293 Summary: Qt extension library
7 wally 595575 Group: System/Libraries
8 matteo 492293 License: CPL or LGPLv2
9     URL: http://www.libqxt.org/
10 wally 595573 Source0: http://bitbucket.org/libqxt/libqxt/get/v%{version}.tar.gz
11     # Originally from Fedora:
12     #
13 matteo 492293 # Fix DSO linking
14     Patch0: libqxt-linking.patch
15 wally 595573
16     # Fedora patches:
17     #
18 matteo 492293 # 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 wally 595573 #Debian patches
28     Patch3: libqxt-use-system-qdoc3.patch
29     Patch4: libqxt-fix-compiler-flags.patch
30    
31 matteo 492293 BuildRequires: avahi-compat-libdns_sd-devel
32     BuildRequires: db4-devel
33 wally 595573 BuildRequires: kde4-macros
34 matteo 492293 BuildRequires: openssl-devel
35     BuildRequires: qt4-devel
36 wally 595573 BuildRequires: qt4-qdoc3
37     Obsoletes: qxt < 0.6.2-5
38 matteo 492293
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 wally 595573 #---------------------
44    
45     %define berkeley_major 0
46 wally 595574 %define berkeley_lib %mklibname qxtberkeley %{berkeley_major}
47 wally 595573
48     %package -n %{berkeley_lib}
49     Summary: Berkeley databases module for Qt (LibQxt)
50 matteo 492310 Group: System/Libraries
51 wally 639291 Conflicts: %{_lib}qxt < 0.6.2-5
52 matteo 492310
53 wally 595573 %description -n %{berkeley_lib}
54 matteo 492310 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 wally 595573 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 wally 595574 %define core_lib %mklibname qxtcore %{core_major}
67 wally 595573
68     %package -n %{core_lib}
69     Summary: Extensions to Qt core classes (LibQxt)
70 wally 639291 Group: System/Libraries
71     Obsoletes: %{_lib}qxt < 0.6.2-5
72 wally 595573
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 wally 595574 %define gui_lib %mklibname qxtgui %{gui_major}
87 wally 595573
88     %package -n %{gui_lib}
89     Summary: Extensions to Qt GUI classes (LibQxt)
90     Group: System/Libraries
91 wally 639291 Conflicts: %{_lib}qxt < 0.6.2-5
92 wally 595573
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 wally 595574 %define network_lib %mklibname qxtnetwork %{network_major}
107 wally 595573
108     %package -n %{network_lib}
109     Summary: Extensions to Qt network classes (LibQxt)
110     Group: System/Libraries
111 wally 639291 Conflicts: %{_lib}qxt < 0.6.2-5
112 wally 595573
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 wally 595574 %define sql_lib %mklibname qxtsql %{sql_major}
127 wally 595573
128     %package -n %{sql_lib}
129     Summary: Extensions to Qt core classes (LibQxt)
130     Group: System/Libraries
131 wally 639291 Conflicts: %{_lib}qxt < 0.6.2-5
132 wally 595573
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 wally 595574 %define web_lib %mklibname qxtweb %{web_major}
147 wally 595573
148     %package -n %{web_lib}
149     Summary: Library to create web services using Qt (LibQxt)
150     Group: System/Libraries
151 wally 639291 Conflicts: %{_lib}qxt < 0.6.2-5
152 wally 595573
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 wally 595574 %define zeroconf_lib %mklibname qxtzeroconf %{zeroconf_major}
167 wally 595573
168     %package -n %{zeroconf_lib}
169     Summary: Library to use multicast DNS service discovery in Qt (LibQxt)
170     Group: System/Libraries
171 wally 639291 Conflicts: %{_lib}qxt < 0.6.2-5
172 wally 595573
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 matteo 492293 Summary: Development files for %{name}
190 wally 595573 Group: Development/KDE and Qt
191 matteo 492310 Provides: %{name}-devel = %{version}-%{release}
192 wally 595573 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 matteo 492293
201 wally 595573 %description -n %{devname}
202 matteo 492293 This package contains libraries and header files for developing applications
203     that use LibQxt.
204    
205 wally 595573 %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 matteo 492293
214 wally 595573 #---------------------
215    
216 matteo 492293 %prep
217 wally 595573 %setup -q -n %{name}-%{name}-%{hash}
218     %apply_patches
219 matteo 492293
220     # We don't want rpath
221     sed -i '/RPATH/d' src/qxtlibs.pri
222    
223     %build
224 wally 595573 %setup_compile_flags
225 matteo 492293 # Does not use GNU configure
226     ./configure -verbose \
227 wally 595573 -I %{_includedir}/avahi-compat-libdns_sd \
228     -qmake-bin %{_qt4_bindir}/qmake \
229 matteo 492293 -prefix %{_prefix} \
230     -libdir %{_libdir}
231 matteo 492310 %make
232     %make docs
233 matteo 492293
234     %install
235 wally 595573 %makeinstall_std INSTALL_ROOT=%{buildroot}
236 matteo 492293
237 wally 595573 #CMake module
238     install -Dpm644 features/FindQxt.cmake %{buildroot}%{_datadir}/cmake/Modules/FindQxt.cmake
239    
240 matteo 492293 # We are installing these to the proper location
241 matteo 492310 rm -fr %{buildroot}%{_prefix}/doc/

  ViewVC Help
Powered by ViewVC 1.1.30