]>
Commit | Line | Data |
---|---|---|
51df396b | 1 | # TODO: |
9452387a JB |
2 | # - libraries split (per-library or at least base/gui parts) |
3 | # - separate some plugins (SQL, DirectFB...) | |
51df396b WF |
4 | |
5 | # Conditional build: | |
9452387a | 6 | %bcond_with static_libs # static libraries [incomplete support in .spec] |
51df396b WF |
7 | # -- features |
8 | %bcond_without cups # CUPS printing support | |
9452387a | 9 | %bcond_without directfb # DirectFB platform support |
51df396b WF |
10 | %bcond_without gtk # GTK+ theme integration |
11 | %bcond_without pch # pch (pre-compiled headers) in qmake | |
9452387a | 12 | %bcond_without tslib # tslib support |
51df396b | 13 | # -- databases |
9452387a | 14 | %bcond_without freetds # TDS (Sybase/MS SQL) plugin |
51df396b WF |
15 | %bcond_without mysql # MySQL plugin |
16 | %bcond_without odbc # unixODBC plugin | |
17 | %bcond_without pgsql # PostgreSQL plugin | |
9452387a | 18 | %bcond_without sqlite2 # SQLite2 plugin |
51df396b | 19 | %bcond_without sqlite3 # SQLite3 plugin |
51df396b | 20 | %bcond_without ibase # ibase (InterBase/Firebird) plugin |
9452387a JB |
21 | %bcond_with db2 # DB2 support |
22 | %bcond_with oracle # OCI (Oracle) support | |
51df396b WF |
23 | # -- SIMD CPU instructions |
24 | %bcond_with sse # use SSE instructions in gui/painting module | |
25 | %bcond_with sse2 # use SSE2 instructions | |
26 | %bcond_with sse3 # use SSE3 instructions (since: Intel middle Pentium4, AMD Athlon64) | |
27 | %bcond_with ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano) | |
28 | %bcond_with sse41 # use SSE4.1 instructions (Intel since middle Core2) | |
29 | %bcond_with sse42 # use SSE4.2 instructions (the same) | |
9452387a JB |
30 | %bcond_with avx # use AVX instructions (Intel since Sandy Bridge, AMD since Bulldozer) |
31 | %bcond_with avx2 # use AVX2 instructions (Intel since Haswell) | |
51df396b WF |
32 | |
33 | %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc | |
34 | %undefine with_ibase | |
35 | %endif | |
36 | %ifarch athlon | |
37 | %define with_3dnow 1 | |
38 | %endif | |
39 | %ifarch athlon pentium3 pentium4 %{x8664} | |
40 | %define with_mmx 1 | |
41 | %endif | |
42 | %ifarch pentium3 pentium4 %{x8664} | |
43 | %define with_sse 1 | |
44 | %endif | |
45 | %ifarch pentium4 %{x8664} | |
46 | %define with_sse2 1 | |
47 | %endif | |
51df396b WF |
48 | |
49 | %define icu_abi 52 | |
50 | %define next_icu_abi %(echo $((%{icu_abi} + 1))) | |
51 | ||
52 | %define orgname qtbase | |
9452387a JB |
53 | Summary: Qt5 - base components |
54 | Summary(pl.UTF-8): Biblioteka Qt5 - podstawowe komponenty | |
51df396b WF |
55 | Name: qt5-%{orgname} |
56 | Version: 5.2.0 | |
57 | Release: 0.1 | |
1600b17a ER |
58 | # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details |
59 | License: LGPLv2 with exceptions or GPLv3 with exceptions | |
51df396b WF |
60 | Group: X11/Libraries |
61 | Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz | |
62 | # Source0-md5: c94bbaf1bb7f0f4a32d2caa7501416e1 | |
63 | URL: http://qt-project.org/ | |
9452387a | 64 | %{?with_directfb:BuildRequires: DirectFB-devel} |
51df396b WF |
65 | %{?with_ibase:BuildRequires: Firebird-devel} |
66 | BuildRequires: Mesa-libOpenVG-devel | |
51df396b WF |
67 | BuildRequires: OpenGL-devel |
68 | BuildRequires: alsa-lib-devel | |
9452387a | 69 | %{?with_gtk:BuildRequires: atk-devel} |
51df396b | 70 | %{?with_cups:BuildRequires: cups-devel} |
9452387a | 71 | BuildRequires: dbus-devel >= 1.2 |
51df396b | 72 | BuildRequires: fontconfig-devel |
9452387a | 73 | %{?with_freetds:BuildRequires: freetds-devel} |
51df396b WF |
74 | BuildRequires: freetype-devel >= 1:2.0.0 |
75 | %{?with_pch:BuildRequires: gcc >= 5:4.0} | |
5b8dc449 | 76 | BuildRequires: gdb |
51df396b | 77 | BuildRequires: glib2-devel >= 2.0.0 |
9452387a | 78 | %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.18} |
51df396b | 79 | # see dependency on libicu version below |
51df396b | 80 | BuildRequires: libicu-devel < %{next_icu_abi} |
1600b17a | 81 | BuildRequires: libicu-devel >= %{icu_abi} |
51df396b | 82 | BuildRequires: libjpeg-devel |
51df396b WF |
83 | BuildRequires: libpng-devel >= 2:1.0.8 |
84 | BuildRequires: libstdc++-devel | |
9452387a | 85 | BuildRequires: libxcb-devel >= 1.5 |
51df396b | 86 | %{?with_mysql:BuildRequires: mysql-devel} |
9452387a | 87 | BuildRequires: pcre16-devel >= 8.30 |
51df396b WF |
88 | BuildRequires: pkgconfig |
89 | %{?with_pgsql:BuildRequires: postgresql-backend-devel} | |
90 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
91 | BuildRequires: pulseaudio-devel >= 0.9.10 | |
92 | BuildRequires: rpmbuild(macros) >= 1.654 | |
51df396b | 93 | BuildRequires: sed >= 4.0 |
9452387a | 94 | %{?with_sqlite2:BuildRequires: sqlite-devel} |
51df396b | 95 | %{?with_sqlite3:BuildRequires: sqlite3-devel} |
1600b17a | 96 | BuildRequires: tar >= 1:1.22 |
9452387a | 97 | %{?with_tslib:BuildRequires: tslib-devel} |
5b8dc449 | 98 | BuildRequires: udev-devel |
51df396b | 99 | %{?with_odbc:BuildRequires: unixODBC-devel >= 2.3.0} |
5b8dc449 ER |
100 | BuildRequires: xcb-util-image-devel |
101 | BuildRequires: xcb-util-keysyms-devel | |
102 | BuildRequires: xcb-util-renderutil-devel | |
103 | BuildRequires: xcb-util-wm-devel | |
51df396b | 104 | BuildRequires: xorg-lib-libSM-devel |
9452387a | 105 | BuildRequires: xorg-lib-libX11-devel |
51df396b WF |
106 | BuildRequires: xorg-lib-libXcursor-devel |
107 | BuildRequires: xorg-lib-libXext-devel | |
108 | BuildRequires: xorg-lib-libXfixes-devel | |
109 | BuildRequires: xorg-lib-libXi-devel | |
110 | BuildRequires: xorg-lib-libXinerama-devel | |
111 | BuildRequires: xorg-lib-libXrandr-devel | |
112 | BuildRequires: xorg-lib-libXrender-devel | |
9452387a | 113 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.2.0 |
1600b17a | 114 | BuildRequires: xz |
51df396b WF |
115 | BuildRequires: zlib-devel |
116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
117 | ||
51df396b WF |
118 | %define specflags -fno-strict-aliasing |
119 | ||
9452387a | 120 | %define qt5dir %{_libdir}/qt5 |
51df396b WF |
121 | |
122 | %description | |
1600b17a ER |
123 | Qt is a software toolkit for developing applications. |
124 | ||
9452387a JB |
125 | This package contains base components, like Core, Network or Xml. |
126 | ||
127 | %description -l pl.UTF-8 | |
128 | Qt to programowy toolkit do tworzenia aplikacji. | |
129 | ||
130 | Ten pakiet zawiera podstawowe komponenty, takie jak Core, Network czy | |
131 | Xml. | |
51df396b WF |
132 | |
133 | %package devel | |
134 | Summary: The Qt5 application framework - development files | |
9452387a | 135 | Summary(pl.UTF-8): Szkielet aplikacji Qt5 - pliki programistyczne |
51df396b WF |
136 | Group: X11/Development/Libraries |
137 | Requires: %{name} = %{version}-%{release} | |
138 | ||
139 | %description devel | |
9452387a JB |
140 | The Qt5 application framework - development files. |
141 | ||
142 | %description devel -l pl.UTF-8 | |
143 | Szkielet aplikacji Qt5 - pliki programistyczne. | |
51df396b | 144 | |
b18d64cc | 145 | %package doc |
9452387a JB |
146 | Summary: Documentation for Qt5 application framework base components |
147 | Summary(pl.UTF-8): Dokumentacja do podstawowych komponentów szkieletu aplikacji Qt5 | |
b18d64cc WF |
148 | Group: Documentation |
149 | Requires: %{name} = %{version}-%{release} | |
168d1e38 ER |
150 | %if "%{_rpmversion}" >= "5" |
151 | BuildArch: noarch | |
152 | %endif | |
b18d64cc WF |
153 | |
154 | %description doc | |
9452387a JB |
155 | Documentation for Qt5 application framework base components. |
156 | ||
157 | %description doc -l pl.UTF-8 | |
158 | Dokumentacja do podstawowych komponentów szkieletu aplikacji Qt5. | |
b18d64cc | 159 | |
51df396b | 160 | %package examples |
9452387a JB |
161 | Summary: Examples for Qt5 application framework base components |
162 | Summary(pl.UTF-8): Przykłady do podstawowych komponentów szkieletu aplikacji Qt5 | |
51df396b | 163 | Group: X11/Development/Libraries |
168d1e38 ER |
164 | %if "%{_rpmversion}" >= "5" |
165 | BuildArch: noarch | |
166 | %endif | |
51df396b WF |
167 | |
168 | %description examples | |
9452387a JB |
169 | Examples for Qt5 application framework base components. |
170 | ||
171 | %description examples -l pl.UTF-8 | |
172 | Przykłady do podstawowych komponentów szkieletu aplikacji Qt5. | |
173 | ||
174 | %package -n qt5-build | |
175 | Summary: Qt5 build tools | |
176 | Summary(pl.UTF-8): Narzędzia do budowania dla Qt4 | |
177 | Group: Development/Tools | |
178 | Requires: %{name} = %{version}-%{release} | |
179 | ||
180 | %description -n qt5-build | |
181 | This package includes the Qt resource compiler (rcc), meta objects | |
182 | compiler (moc), user interface compiler (uic) etc. | |
183 | ||
184 | %description -n qt5-build -l pl.UTF-8 | |
185 | Ten pakiet zawiera kompilator zasobów Qt (rcc), kompilator | |
186 | metaobiektów (moc), kompilator interfejsów użytkownika (uic) i podobne | |
187 | narzędzia. | |
188 | ||
189 | %package -n qt5-qmake | |
190 | Summary: Qt5 makefile generator | |
191 | Summary(pl.UTF-8): Generator plików makefile dla aplikacji Qt5 | |
192 | Group: Development/Tools | |
193 | ||
194 | %description -n qt5-qmake | |
195 | Qt5 makefile generator. | |
196 | ||
197 | %description -n qt5-qmake -l pl.UTF-8 | |
198 | Generator plików makefile dla aplikacji Qt5. | |
51df396b WF |
199 | |
200 | %prep | |
201 | %setup -q -n %{orgname}-opensource-src-%{version} | |
202 | ||
9452387a | 203 | %{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf |
51df396b WF |
204 | |
205 | # change QMAKE FLAGS to build | |
206 | %{__sed} -i -e ' | |
9452387a JB |
207 | s|^\(QMAKE_COMPILER *\)=.*gcc|\1= %{__cc}|; |
208 | s|^\(QMAKE_CC *\)=.*gcc|\1= %{__cc}|; | |
209 | s|^\(QMAKE_CXX *\)=.*g++|\1= %{__cxx}|; | |
210 | s|^QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO .*|QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -g %{rpmcppflags} %{rpmcflags}|; | |
211 | s|^QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO .*|QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -g %{rpmcppflags} %{rpmcxxflags}|; | |
51df396b | 212 | ' mkspecs/common/g++-base.conf |
51df396b | 213 | %{__sed} -i -e ' |
9452387a JB |
214 | s|^\(QMAKE_CFLAGS_RELEASE *\)+=.*|\1+= %{rpmcppflags} %{rpmcflags}|; |
215 | s|^\(QMAKE_CXXFLAGS_RELEASE *\)+=.*|\1+= %{rpmcppflags} %{rpmcxxflags}|; | |
216 | s|^\(QMAKE_CFLAGS_DEBUG *\)+=.*|\1+= %{debugcflags}|; | |
217 | s|^\(QMAKE_CXXFLAGS_DEBUG *\)+=.*|\1+= %{debugcflags}|; | |
218 | s|^\(QMAKE_LFLAGS *\)+=.*|\1+= %{rpmldflags}|; | |
219 | ' mkspecs/common/gcc-base.conf | |
51df396b | 220 | |
9452387a | 221 | # define QMAKE_STRIP to true, so we get useful -debuginfo pkgs |
51df396b | 222 | %{__sed} -i -e ' |
9452387a | 223 | s|^\(QMAKE_STRIP *\)=.*|\1= :|; |
51df396b WF |
224 | ' mkspecs/common/linux.conf |
225 | ||
226 | %build | |
227 | # pass OPTFLAGS to build qmake itself with optimization | |
228 | export OPTFLAGS="%{rpmcflags}" | |
229 | export PATH=$PWD/bin:$PATH | |
230 | ||
9452387a | 231 | # DEFAULT OPTIONS FOR ALL BUILDS |
51df396b WF |
232 | COMMONOPT=" \ |
233 | -confirm-license \ | |
234 | -opensource \ | |
235 | -verbose \ | |
9452387a JB |
236 | %{?debug:-debug} \ |
237 | %{!?debug:-release} \ | |
238 | -prefix %{qt5dir} \ | |
239 | -bindir %{qt5dir}/bin \ | |
51df396b WF |
240 | -docdir %{_docdir}/qt5-doc \ |
241 | -headerdir %{_includedir}/qt5 \ | |
242 | -libdir %{_libdir} \ | |
9452387a | 243 | -plugindir %{qt5dir}/plugins \ |
51df396b | 244 | -datadir %{_datadir}/qt5 \ |
9452387a | 245 | -translationdir %{_localedir} \ |
51df396b WF |
246 | -sysconfdir %{_sysconfdir}/qt5 \ |
247 | -examplesdir %{_examplesdir}/qt5 \ | |
9452387a JB |
248 | %if %{with mysql} |
249 | -I/usr/include/mysql \ | |
250 | %endif | |
251 | %if %{with pgsql} | |
252 | -I/usr/include/postgresql/server \ | |
253 | %endif | |
254 | -%{!?with_cups:no-}cups \ | |
255 | -%{!?with_directfb:no-}directfb \ | |
256 | -dbus-linked \ | |
257 | -fontconfig \ | |
51df396b | 258 | -glib \ |
9452387a JB |
259 | -%{!?with_gtk:no-}gtkstyle \ |
260 | -iconv \ | |
261 | -icu \ | |
262 | -largefile \ | |
263 | -nis \ | |
51df396b | 264 | -no-rpath \ |
9452387a | 265 | -no-separate-debug-info \ |
51df396b WF |
266 | %{!?with_sse:-no-sse} \ |
267 | %{!?with_sse2:-no-sse2} \ | |
268 | %{!?with_sse3:-no-sse3} \ | |
269 | %{!?with_ssse3:-no-ssse3} \ | |
270 | %{!?with_sse41:-no-sse4.1} \ | |
271 | %{!?with_sse42:-no-sse4.2} \ | |
272 | %{!?with_avx:-no-avx} \ | |
9452387a JB |
273 | %{!?with_avx2:-no-avx2} \ |
274 | -openssl-linked \ | |
275 | -optimized-qmake \ | |
276 | -%{!?with_pch:no-}pch \ | |
51df396b | 277 | -reduce-relocations \ |
9452387a | 278 | -sm \ |
51df396b WF |
279 | -system-freetype \ |
280 | -system-libjpeg \ | |
281 | -system-libpng \ | |
282 | -system-pcre \ | |
9452387a | 283 | -system-sqlite \ |
51df396b WF |
284 | -system-xcb \ |
285 | -system-xkbcommon \ | |
286 | -system-zlib \ | |
9452387a | 287 | %{?with_tslib:-tslib} \ |
51df396b | 288 | -xcursor \ |
9452387a | 289 | -xfixes \ |
51df396b | 290 | -xinerama \ |
9452387a | 291 | -xinput2 \ |
51df396b | 292 | -xkb \ |
9452387a | 293 | -xrandr \ |
51df396b | 294 | -xrender \ |
9452387a | 295 | -xshape" |
51df396b | 296 | |
9452387a | 297 | # STATIC |
51df396b WF |
298 | %if %{with static_libs} |
299 | OPT=" \ | |
9452387a JB |
300 | --sql-db2=%{?with_db2:qt}%{!?with_db2:no} \ |
301 | --sql-ibase=%{?with_ibase:qt}%{!?with_ibase:no} \ | |
302 | --sql-mysql=%{?with_mysql:qt}%{!?with_mysql:no} \ | |
303 | --sql-oci=%{?with_oracle:qt}%{!?with_oracle:no} \ | |
304 | --sql-odbc=%{?with_odbc:qt}%{!?with_odbc:no} \ | |
305 | --sql-psql=%{?with_pgsql:qt}%{!?with_pgsql:no} \ | |
306 | --sql-sqlite2=%{?with_sqlite2:qt}%{!?with_sqlite2:no} \ | |
307 | --sql-sqlite=%{?with_sqlite3:qt}%{!?with_sqlite3:no} \ | |
308 | --sql-tds=%{?with_freetds:qt}%{!?with_freetds:no} \ | |
51df396b WF |
309 | -static" |
310 | ||
311 | ./configure $COMMONOPT $OPT | |
312 | ||
313 | %{__make} -C src | |
51df396b WF |
314 | if [ ! -d staticlib ]; then |
315 | mkdir staticlib | |
316 | cp -a lib/*.a staticlib | |
317 | fi | |
318 | %{__make} distclean | |
319 | %endif | |
51df396b | 320 | |
9452387a | 321 | # SHARED |
51df396b | 322 | OPT=" \ |
9452387a JB |
323 | --sql-db2=%{?with_db2:plugin}%{!?with_db2:no} \ |
324 | --sql-ibase=%{?with_ibase:plugin}%{!?with_ibase:no} \ | |
325 | --sql-mysql=%{?with_mysql:plugin}%{!?with_mysql:no} \ | |
326 | --sql-oci=%{?with_oracle:plugin}%{!?with_oracle:no} \ | |
327 | --sql-odbc=%{?with_odbc:plugin}%{!?with_odbc:no} \ | |
328 | --sql-psql=%{?with_pgsql:plugin}%{!?with_pgsql:no} \ | |
329 | --sql-sqlite2=%{?with_sqlite2:plugin}%{!?with_sqlite2:no} \ | |
330 | --sql-sqlite=%{?with_sqlite3:plugin}%{!?with_sqlite3:no} \ | |
331 | --sql-tds=%{?with_freetds:plugin}%{!?with_freetds:no} \ | |
51df396b WF |
332 | -shared" |
333 | ||
334 | ./configure $COMMONOPT $OPT | |
335 | ||
336 | %{__make} | |
9452387a JB |
337 | |
338 | # use just built qdoc instead of requiring already installed qt5-build | |
339 | wd="$(pwd)" | |
340 | %{__sed} -i -e 's|%{qt5dir}/bin/qdoc|LD_LIBRARY_PATH='${wd}'/lib$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} '${wd}'/bin/qdoc|' src/*/Makefile | |
341 | # build only HTML docs (qch docs require qhelpgenerator) | |
342 | %{__make} html_docs | |
51df396b WF |
343 | |
344 | %install | |
345 | rm -rf $RPM_BUILD_ROOT | |
9452387a | 346 | install -d $RPM_BUILD_ROOT{/etc/qt5,%{_bindir},%{_pkgconfigdir}} |
51df396b WF |
347 | |
348 | %{__make} install \ | |
349 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
350 | ||
9452387a JB |
351 | %{__make} install_html_docs \ |
352 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
51df396b | 353 | |
9452387a JB |
354 | # kill unnecessary -L%{_libdir} from *.la, *.prl, *.pc |
355 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ | |
356 | $RPM_BUILD_ROOT%{_libdir}/*.{la,prl} \ | |
357 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
51df396b | 358 | |
9452387a JB |
359 | # useless symlinks |
360 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.? | |
361 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
362 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
51df396b WF |
363 | |
364 | # install tools | |
9452387a JB |
365 | install bin/findtr $RPM_BUILD_ROOT%{qt5dir}/bin |
366 | # symlinks in system bin dir | |
51df396b | 367 | cd $RPM_BUILD_ROOT%{_bindir} |
51df396b | 368 | ln -sf ../%{_lib}/qt5/bin/findtr findtr-qt5 |
51df396b WF |
369 | ln -sf ../%{_lib}/qt5/bin/moc moc-qt5 |
370 | ln -sf ../%{_lib}/qt5/bin/qmake qmake-qt5 | |
51df396b WF |
371 | ln -sf ../%{_lib}/qt5/bin/uic uic-qt5 |
372 | ln -sf ../%{_lib}/qt5/bin/rcc rcc-qt5 | |
51df396b WF |
373 | ln -sf ../%{_lib}/qt5/bin/qdbuscpp2xml qdbuscpp2xml-qt5 |
374 | ln -sf ../%{_lib}/qt5/bin/qdbusxml2cpp qdbusxml2cpp-qt5 | |
375 | ln -sf ../%{_lib}/qt5/bin/qdoc qdoc-qt5 | |
51df396b WF |
376 | cd - |
377 | ||
378 | # Prepare some files list | |
379 | ifecho() { | |
380 | RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null` | |
381 | [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set | |
382 | r=`echo $RESULT | awk '{ print $1 }'` | |
383 | ||
384 | if [ -d "$r" ]; then | |
385 | echo "%%dir $2" >> $1.files | |
386 | elif [ -x "$r" ] ; then | |
387 | echo "%%attr(755,root,root) $2" >> $1.files | |
388 | elif [ -f "$r" ]; then | |
389 | echo "$2" >> $1.files | |
390 | else | |
391 | echo "Error generation $1 files list!" | |
392 | echo "$r: no such file or directory!" | |
393 | return 1 | |
394 | fi | |
395 | } | |
396 | ||
397 | echo "%defattr(644,root,root,755)" > examples.files | |
398 | ifecho examples %{_examplesdir}/qt5 | |
399 | for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt5 -printf "%%P "`; do | |
400 | ifecho examples %{_examplesdir}/qt5/$f | |
401 | done | |
402 | ||
403 | %clean | |
404 | rm -rf $RPM_BUILD_ROOT | |
405 | ||
9452387a JB |
406 | %post -p /sbin/ldconfig |
407 | %postun -p /sbin/ldconfig | |
51df396b WF |
408 | |
409 | %files | |
410 | %defattr(644,root,root,755) | |
9452387a JB |
411 | %attr(755,root,root) %{_libdir}/libQt5Concurrent.so.*.*.* |
412 | %attr(755,root,root) %ghost %{_libdir}/libQt5Concurrent.so.5 | |
413 | %attr(755,root,root) %{_libdir}/libQt5Core.so.*.*.* | |
414 | %attr(755,root,root) %ghost %{_libdir}/libQt5Core.so.5 | |
415 | %attr(755,root,root) %{_libdir}/libQt5DBus.so.*.*.* | |
416 | %attr(755,root,root) %ghost %{_libdir}/libQt5DBus.so.5 | |
417 | %attr(755,root,root) %{_libdir}/libQt5Gui.so.*.*.* | |
418 | %attr(755,root,root) %ghost %{_libdir}/libQt5Gui.so.5 | |
419 | %attr(755,root,root) %{_libdir}/libQt5Network.so.*.*.* | |
420 | %attr(755,root,root) %ghost %{_libdir}/libQt5Network.so.5 | |
421 | %attr(755,root,root) %{_libdir}/libQt5OpenGL.so.*.*.* | |
422 | %attr(755,root,root) %ghost %{_libdir}/libQt5OpenGL.so.5 | |
423 | %attr(755,root,root) %{_libdir}/libQt5PrintSupport.so.*.*.* | |
424 | %attr(755,root,root) %ghost %{_libdir}/libQt5PrintSupport.so.5 | |
425 | %attr(755,root,root) %{_libdir}/libQt5Sql.so.*.*.* | |
426 | %attr(755,root,root) %ghost %{_libdir}/libQt5Sql.so.5 | |
427 | %attr(755,root,root) %{_libdir}/libQt5Test.so.*.*.* | |
428 | %attr(755,root,root) %ghost %{_libdir}/libQt5Test.so.5 | |
429 | %attr(755,root,root) %{_libdir}/libQt5Widgets.so.*.*.* | |
430 | %attr(755,root,root) %ghost %{_libdir}/libQt5Widgets.so.5 | |
431 | %attr(755,root,root) %{_libdir}/libQt5Xml.so.*.*.* | |
432 | %attr(755,root,root) %ghost %{_libdir}/libQt5Xml.so.5 | |
51df396b WF |
433 | |
434 | %dir /etc/qt5 | |
9452387a JB |
435 | %dir %{qt5dir} |
436 | %dir %{qt5dir}/bin | |
437 | %dir %{qt5dir}/plugins | |
438 | %dir %{qt5dir}/plugins/accessible | |
439 | %attr(755,root,root) %{qt5dir}/plugins/accessible/libqtaccessiblewidgets.so | |
440 | %dir %{qt5dir}/plugins/bearer | |
441 | %attr(755,root,root) %{qt5dir}/plugins/bearer/libqconnmanbearer.so | |
442 | %attr(755,root,root) %{qt5dir}/plugins/bearer/libqgenericbearer.so | |
443 | %attr(755,root,root) %{qt5dir}/plugins/bearer/libqnmbearer.so | |
444 | %dir %{qt5dir}/plugins/generic | |
445 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevkeyboardplugin.so | |
446 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevmouseplugin.so | |
447 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevtabletplugin.so | |
448 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevtouchplugin.so | |
449 | %if %{with tslib} | |
450 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqtslibplugin.so | |
451 | %endif | |
452 | %dir %{qt5dir}/plugins/imageformats | |
453 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqgif.so | |
454 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqico.so | |
455 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqjpeg.so | |
456 | %dir %{qt5dir}/plugins/platforminputcontexts | |
457 | %attr(755,root,root) %{qt5dir}/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so | |
458 | %attr(755,root,root) %{qt5dir}/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so | |
459 | %dir %{qt5dir}/plugins/platforms | |
460 | %if %{with directfb} | |
461 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqdirectfb.so | |
462 | %endif | |
463 | # -kms, requires GLESv2 instead of GL | |
464 | #%attr(755,root,root) %{qt5dir}/plugins/platforms/libqkms.so | |
465 | # -eglfs, requires GLESv2 instead of GL | |
466 | #%attr(755,root,root) %{qt5dir}/plugins/platforms/libqeglfs.so | |
467 | #%attr(755,root,root) %{qt5dir}/plugins/platforms/libqminimalegl.so | |
468 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqlinuxfb.so | |
469 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqminimal.so | |
470 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqoffscreen.so | |
471 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqxcb.so | |
472 | %dir %{qt5dir}/plugins/platformthemes | |
473 | %if %{with gtk} | |
474 | %attr(755,root,root) %{qt5dir}/plugins/platformthemes/libqgtk2.so | |
475 | %endif | |
476 | %dir %{qt5dir}/plugins/printsupport | |
477 | %if %{with cups} | |
478 | %attr(755,root,root) %{qt5dir}/plugins/printsupport/libcupsprintersupport.so | |
479 | %endif | |
480 | %dir %{qt5dir}/plugins/sqldrivers | |
481 | %if %{with db2} | |
482 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqldb2.so | |
483 | %endif | |
484 | %if %{with ibase} | |
485 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlibase.so | |
486 | %endif | |
487 | %if %{with sqlite3} | |
488 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlite.so | |
489 | %endif | |
490 | %if %{with sqlite2} | |
491 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlite2.so | |
492 | %endif | |
493 | %if %{with mysql} | |
494 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlmysql.so | |
495 | %endif | |
496 | %if %{with oracle} | |
497 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqloci.so | |
498 | %endif | |
499 | %if %{with odbc} | |
500 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlodbc.so | |
501 | %endif | |
502 | %if %{with pgsql} | |
503 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlpsql.so | |
504 | %endif | |
505 | %if %{with freetds} | |
506 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqltds.so | |
507 | %endif | |
51df396b WF |
508 | |
509 | %files devel | |
510 | %defattr(644,root,root,755) | |
511 | %attr(755,root,root) %{_libdir}/libQt5Concurrent.so | |
512 | %attr(755,root,root) %{_libdir}/libQt5Core.so | |
513 | %attr(755,root,root) %{_libdir}/libQt5DBus.so | |
514 | %attr(755,root,root) %{_libdir}/libQt5Gui.so | |
515 | %attr(755,root,root) %{_libdir}/libQt5Network.so | |
516 | %attr(755,root,root) %{_libdir}/libQt5OpenGL.so | |
517 | %attr(755,root,root) %{_libdir}/libQt5PrintSupport.so | |
518 | %attr(755,root,root) %{_libdir}/libQt5Sql.so | |
519 | %attr(755,root,root) %{_libdir}/libQt5Test.so | |
520 | %attr(755,root,root) %{_libdir}/libQt5Widgets.so | |
521 | %attr(755,root,root) %{_libdir}/libQt5Xml.so | |
9452387a JB |
522 | # static-inly |
523 | %{_libdir}/libQt5Bootstrap.a | |
524 | %{_libdir}/libQt5OpenGLExtensions.a | |
525 | %{_libdir}/libQt5PlatformSupport.a | |
51df396b | 526 | |
9452387a | 527 | %{_libdir}/libQt5Bootstrap.prl |
51df396b WF |
528 | %{_libdir}/libQt5Concurrent.prl |
529 | %{_libdir}/libQt5Core.prl | |
530 | %{_libdir}/libQt5DBus.prl | |
531 | %{_libdir}/libQt5Gui.prl | |
532 | %{_libdir}/libQt5Network.prl | |
533 | %{_libdir}/libQt5OpenGL.prl | |
9452387a JB |
534 | %{_libdir}/libQt5OpenGLExtensions.prl |
535 | %{_libdir}/libQt5PlatformSupport.prl | |
51df396b WF |
536 | %{_libdir}/libQt5PrintSupport.prl |
537 | %{_libdir}/libQt5Sql.prl | |
538 | %{_libdir}/libQt5Test.prl | |
539 | %{_libdir}/libQt5Widgets.prl | |
540 | %{_libdir}/libQt5Xml.prl | |
541 | ||
9452387a JB |
542 | %dir %{_includedir}/qt5 |
543 | %{_includedir}/qt5/QtConcurrent | |
544 | %{_includedir}/qt5/QtCore | |
545 | %{_includedir}/qt5/QtDBus | |
546 | %{_includedir}/qt5/QtGui | |
547 | %{_includedir}/qt5/QtNetwork | |
548 | %{_includedir}/qt5/QtOpenGL | |
549 | %{_includedir}/qt5/QtOpenGLExtensions | |
550 | %{_includedir}/qt5/QtPlatformSupport | |
551 | %{_includedir}/qt5/QtPrintSupport | |
552 | %{_includedir}/qt5/QtSql | |
553 | %{_includedir}/qt5/QtTest | |
554 | %{_includedir}/qt5/QtWidgets | |
555 | %{_includedir}/qt5/QtXml | |
556 | ||
557 | %{_pkgconfigdir}/Qt5Bootstrap.pc | |
558 | %{_pkgconfigdir}/Qt5Concurrent.pc | |
559 | %{_pkgconfigdir}/Qt5Core.pc | |
560 | %{_pkgconfigdir}/Qt5DBus.pc | |
561 | %{_pkgconfigdir}/Qt5Gui.pc | |
562 | %{_pkgconfigdir}/Qt5Network.pc | |
563 | %{_pkgconfigdir}/Qt5OpenGL.pc | |
564 | %{_pkgconfigdir}/Qt5OpenGLExtensions.pc | |
565 | %{_pkgconfigdir}/Qt5PlatformSupport.pc | |
566 | %{_pkgconfigdir}/Qt5PrintSupport.pc | |
567 | %{_pkgconfigdir}/Qt5Sql.pc | |
568 | %{_pkgconfigdir}/Qt5Test.pc | |
569 | %{_pkgconfigdir}/Qt5Widgets.pc | |
570 | %{_pkgconfigdir}/Qt5Xml.pc | |
51df396b | 571 | |
51df396b WF |
572 | %{_libdir}/cmake/Qt5 |
573 | %{_libdir}/cmake/Qt5Concurrent | |
574 | %{_libdir}/cmake/Qt5Core | |
575 | %{_libdir}/cmake/Qt5DBus | |
576 | %{_libdir}/cmake/Qt5Gui | |
577 | %{_libdir}/cmake/Qt5Network | |
578 | %{_libdir}/cmake/Qt5OpenGL | |
579 | %{_libdir}/cmake/Qt5OpenGLExtensions | |
580 | %{_libdir}/cmake/Qt5PrintSupport | |
581 | %{_libdir}/cmake/Qt5Sql | |
582 | %{_libdir}/cmake/Qt5Test | |
583 | %{_libdir}/cmake/Qt5Widgets | |
584 | %{_libdir}/cmake/Qt5Xml | |
51df396b | 585 | |
b18d64cc WF |
586 | %files doc |
587 | %defattr(644,root,root,755) | |
588 | %{_docdir}/qt5-doc | |
589 | ||
51df396b | 590 | %files examples -f examples.files |
9452387a JB |
591 | |
592 | %files -n qt5-build | |
593 | %defattr(644,root,root,755) | |
594 | %attr(755,root,root) %{_bindir}/findtr-qt5 | |
595 | %attr(755,root,root) %{_bindir}/moc-qt5 | |
596 | %attr(755,root,root) %{_bindir}/qdbuscpp2xml-qt5 | |
597 | %attr(755,root,root) %{_bindir}/qdbusxml2cpp-qt5 | |
598 | %attr(755,root,root) %{_bindir}/qdoc-qt5 | |
599 | %attr(755,root,root) %{_bindir}/rcc-qt5 | |
600 | %attr(755,root,root) %{_bindir}/uic-qt5 | |
601 | %attr(755,root,root) %{qt5dir}/bin/findtr | |
602 | %attr(755,root,root) %{qt5dir}/bin/moc | |
603 | %attr(755,root,root) %{qt5dir}/bin/qdbuscpp2xml | |
604 | %attr(755,root,root) %{qt5dir}/bin/qdbusxml2cpp | |
605 | %attr(755,root,root) %{qt5dir}/bin/qdoc | |
606 | %attr(755,root,root) %{qt5dir}/bin/rcc | |
607 | %attr(755,root,root) %{qt5dir}/bin/syncqt.pl | |
608 | %attr(755,root,root) %{qt5dir}/bin/uic | |
609 | ||
610 | %files -n qt5-qmake | |
611 | %defattr(644,root,root,755) | |
612 | %attr(755,root,root) %{_bindir}/qmake-qt5 | |
613 | %attr(755,root,root) %{qt5dir}/bin/qmake | |
614 | %{qt5dir}/mkspecs |