]>
Commit | Line | Data |
---|---|---|
170cf102 JB |
1 | # |
2 | # Conditional build: | |
c7f4daf1 ER |
3 | %bcond_with bootstrap # disable features to able to build without installed qt5 |
4 | # -- build targets | |
8fb6692c | 5 | %bcond_without doc # Ddocumentation |
c0873864 | 6 | %bcond_without qm # QM translations |
24273f63 JB |
7 | %bcond_without qtdeclarative # QuickWidgets plugin for Qt5Designer |
8 | %bcond_without qtwebkit # WebKit plugin for Qt5Designer, WebKit based browser in assistant | |
170cf102 | 9 | |
c7f4daf1 | 10 | %if %{with bootstrap} |
8fb6692c | 11 | %undefine with_doc |
c7f4daf1 | 12 | %undefine with_qm |
2370f173 | 13 | %undefine with_qtwebkit |
c7f4daf1 ER |
14 | %endif |
15 | ||
cf6f2f73 | 16 | %define orgname qttools |
c0873864 | 17 | %define qtbase_ver %{version} |
24273f63 JB |
18 | %define qttools_assistant_ver 5.9 |
19 | %define qttools_libguist_ver 5.5 | |
63fff6ac | 20 | %define qtdeclarative_ver 5.12.0 |
8fb6692c | 21 | %define qtwebkit_ver 5.8 |
ab2931b5 JB |
22 | Summary: Development tools for Qt 5 |
23 | Summary(pl.UTF-8): Narzędzia programistyczne dla Qt 5 | |
cf6f2f73 | 24 | Name: qt5-%{orgname} |
c29efe69 | 25 | Version: 5.15.2 |
f3212fbd | 26 | Release: 5 |
664ab46f | 27 | License: LGPL v3 or GPL v2 or GPL v3 or commercial |
cf6f2f73 | 28 | Group: X11/Libraries |
21be61dc | 29 | Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
c29efe69 | 30 | # Source0-md5: 739403634e1326a3d52902a835015a4b |
21be61dc | 31 | Source1: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/qttranslations-everywhere-src-%{version}.tar.xz |
c29efe69 | 32 | # Source1-md5: 9b66cdb64402e8fd9e843f8a7120abb1 |
24273f63 | 33 | URL: https://www.qt.io/ |
aef3a5d0 | 34 | BuildRequires: OpenGL-devel |
64b210ea | 35 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
c130d8b4 | 36 | BuildRequires: Qt5DBus-devel >= %{qtbase_ver} |
64b210ea JB |
37 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} |
38 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
39 | BuildRequires: Qt5PrintSupport-devel >= %{qtbase_ver} | |
c0873864 | 40 | %{?with_qtdeclarative:BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver}} |
64b210ea | 41 | BuildRequires: Qt5Sql-devel >= %{qtbase_ver} |
c0873864 | 42 | %{?with_qtwebkit:BuildRequires: Qt5WebKit-devel >= %{qtwebkit_ver}} |
64b210ea JB |
43 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} |
44 | BuildRequires: Qt5Xml-devel >= %{qtbase_ver} | |
e9eed42a JP |
45 | BuildRequires: clang-devel |
46 | BuildRequires: llvm-devel | |
24273f63 | 47 | %{?with_doc:BuildRequires: qt5-assistant >= %{qttools_assistant_ver}} |
64b210ea JB |
48 | BuildRequires: qt5-build >= %{qtbase_ver} |
49 | BuildRequires: qt5-doc-common >= %{qtbase_ver} | |
24273f63 | 50 | %{?with_qm:BuildRequires: qt5-linguist >= %{qttools_linguist_ver}} |
64b210ea | 51 | BuildRequires: qt5-qmake >= %{qtbase_ver} |
24273f63 | 52 | BuildRequires: rpmbuild(macros) >= 1.752 |
343ad397 ER |
53 | BuildRequires: tar >= 1:1.22 |
54 | BuildRequires: xz | |
64b210ea | 55 | # pixeltool: Core, Gui, Widgets |
c5354806 | 56 | # qtdiag: Core Gui Network Widgets |
64b210ea | 57 | # qtpaths: Core |
c5354806 | 58 | # qtplugininfo: Core |
64b210ea JB |
59 | Requires: Qt5Core >= %{qtbase_ver} |
60 | Requires: Qt5Gui >= %{qtbase_ver} | |
61 | Requires: Qt5Widgets >= %{qtbase_ver} | |
cf6f2f73 WF |
62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
63 | ||
cf6f2f73 | 64 | %define specflags -fno-strict-aliasing |
aef3a5d0 | 65 | %define qt5dir %{_libdir}/qt5 |
cf6f2f73 WF |
66 | |
67 | %description | |
ab2931b5 JB |
68 | Qt is a cross-platform application and UI framework. Using Qt, you can |
69 | write web-enabled applications once and deploy them across desktop, | |
70 | mobile and embedded systems without rewriting the source code. | |
71 | ||
72 | This package contains additional tools for building Qt applications. | |
73 | ||
74 | %description -l pl.UTF-8 | |
75 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
76 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
77 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
78 | źródłowego. | |
79 | ||
80 | Ten pakiet zawiera dodatkowe narzędzia do budowania aplikacji Qt. | |
cf6f2f73 | 81 | |
64b210ea JB |
82 | %package -n qt5-assistant |
83 | Summary: Qt documentation browser | |
84 | Summary(pl.UTF-8): Przeglądarka dokumentacji Qt | |
85 | Group: X11/Development/Tools | |
c5354806 JB |
86 | # assistant: Core, Gui, Help, Network, PrintSupport, Sql, Widgets %{?with_qtwebkit:WebKitWidgets} |
87 | # qcollectiongenerator: (none) | |
88 | # qdistancefieldgenerator: Core Gui Quick Widgets | |
89 | # qdoc: Core, clang-libs | |
90 | # qhelpgenerator: Core, Gui, Help Sql; sqldriver-sqlite3 to work | |
91 | # qtattributionsscanner: Core | |
64b210ea JB |
92 | Requires: Qt5Core >= %{qtbase_ver} |
93 | Requires: Qt5Help = %{version}-%{release} | |
94 | Requires: Qt5Gui >= %{qtbase_ver} | |
95 | Requires: Qt5Network >= %{qtbase_ver} | |
96 | Requires: Qt5PrintSupport >= %{qtbase_ver} | |
97 | Requires: Qt5Sql >= %{qtbase_ver} | |
9f75a440 | 98 | Requires: Qt5Sql-sqldriver-sqlite3 >= %{qtbase_ver} |
64b210ea | 99 | Requires: Qt5Widgets >= %{qtbase_ver} |
24273f63 JB |
100 | %if %{with qtwebkit} |
101 | Requires: Qt5WebKit >= %{qtwebkit_ver} | |
102 | %endif | |
64b210ea JB |
103 | |
104 | %description -n qt5-assistant | |
105 | Qt Assistant is a tool for browsing on-line documentation with | |
106 | indexing, bookmarks and full-text search. | |
107 | ||
108 | %description -n qt5-assistant -l pl.UTF-8 | |
109 | Qt Assistant to narzędzie do przeglądania dokumentacji z możliwością | |
110 | indeksowania, dodawania zakładek i pełnotekstowego wyszukiwania. | |
111 | ||
112 | %package -n qt5-designer | |
113 | Summary: IDE used for GUI designing with Qt 5 library | |
114 | Summary(pl.UTF-8): IDE służące do projektowania GUI przy użyciu biblioteki Qt 5 | |
115 | Group: X11/Applications | |
116 | Requires: Qt5Core >= %{qtbase_ver} | |
117 | Requires: Qt5Designer = %{version}-%{release} | |
118 | Requires: Qt5Gui >= %{qtbase_ver} | |
119 | Requires: Qt5Network >= %{qtbase_ver} | |
120 | Requires: Qt5PrintSupport >= %{qtbase_ver} | |
121 | Requires: Qt5Widgets >= %{qtbase_ver} | |
122 | Requires: Qt5Xml >= %{qtbase_ver} | |
123 | ||
124 | %description -n qt5-designer | |
125 | An advanced tool used for GUI designing with Qt 5 library. | |
126 | ||
127 | %description -n qt5-designer -l pl.UTF-8 | |
128 | Zaawansowane narzędzie służące do projektowania interfejsu graficznego | |
129 | przy użyciu biblioteki Qt 5. | |
130 | ||
131 | %package -n qt5-linguist | |
132 | Summary: Translation helper for Qt 5 | |
133 | Summary(pl.UTF-8): Aplikacja ułatwiająca tłumaczenie aplikacji opartych na Qt 5 | |
134 | Group: X11/Development/Tools | |
c5354806 JB |
135 | # lconvert,lprodump,lrelease*,lupdate*: Core |
136 | # linguist: Core, Gui, PrintSupport, Widgets | |
64b210ea JB |
137 | Requires: Qt5Core >= %{qtbase_ver} |
138 | Requires: Qt5Gui >= %{qtbase_ver} | |
139 | Requires: Qt5PrintSupport >= %{qtbase_ver} | |
140 | Requires: Qt5Widgets >= %{qtbase_ver} | |
141 | Requires: Qt5Xml >= %{qtbase_ver} | |
142 | ||
143 | %description -n qt5-linguist | |
144 | Translation helper for Qt 5. | |
145 | ||
146 | %description -n qt5-linguist -l pl.UTF-8 | |
147 | Aplikacja ułatwiająca tłumaczenie aplikacji opartych na Qt 5. | |
148 | ||
149 | %package -n qt5-qdbus | |
150 | Summary: Qt5 DBus tools | |
151 | Summary(pl.UTF-8): Narzędzia Qt5 do magistrali DBus | |
152 | Group: X11/Applications | |
153 | # qdbus: Core, DBus, Xml | |
154 | # qdbusviewer: Core, DBus, Gui, Widgets, Xml | |
155 | Requires: Qt5Core >= %{qtbase_ver} | |
156 | Requires: Qt5DBus >= %{qtbase_ver} | |
157 | Requires: Qt5Gui >= %{qtbase_ver} | |
158 | Requires: Qt5Widgets >= %{qtbase_ver} | |
159 | Requires: Qt5Xml >= %{qtbase_ver} | |
160 | ||
161 | %description -n qt5-qdbus | |
162 | This package contains the qdbus and qdbusviewer tools. | |
163 | ||
164 | %description -n qt5-qdbus -l pl.UTF-8 | |
165 | Ten pakiet zawiera narzędzia qdbus i qdbusviewer. | |
166 | ||
64b210ea JB |
167 | %package -n Qt5Designer |
168 | Summary: Qt5 Designer libraries | |
169 | Summary(pl.UTF-8): Biblioteki Qt5 Designer | |
170 | Group: X11/Libraries | |
171 | Requires: Qt5Core >= %{qtbase_ver} | |
172 | Requires: Qt5Gui >= %{qtbase_ver} | |
173 | Requires: Qt5Widgets >= %{qtbase_ver} | |
174 | Requires: Qt5Xml >= %{qtbase_ver} | |
175 | ||
176 | %description -n Qt5Designer | |
177 | The Qt5 Designer libraries provide classes to create your own custom | |
178 | widget plugins for Qt Designer and classes to access Qt Designer | |
179 | components. | |
180 | ||
181 | %description -n Qt5Designer -l pl.UTF-8 | |
182 | Biblioteki Qt5 Designer dostarczają klasy do tworzenia wtyczek Qt | |
183 | Designera do obsługi własnych widgetów oraz klasy pozwalające na | |
184 | dostęp do komponentów Qt Designera. | |
185 | ||
186 | %package -n Qt5Designer-devel | |
187 | Summary: Qt5 Designer libraries - development files | |
188 | Summary(pl.UTF-8): Biblioteki Qt5 Designer - pliki programistyczne | |
189 | Group: X11/Development/Libraries | |
190 | Requires: OpenGL-devel | |
191 | Requires: Qt5Core >= %{qtbase_ver} | |
192 | Requires: Qt5Designer = %{version}-%{release} | |
193 | Requires: Qt5Gui >= %{qtbase_ver} | |
194 | Requires: Qt5Widgets >= %{qtbase_ver} | |
195 | Requires: Qt5Xml >= %{qtbase_ver} | |
87cf8903 | 196 | Obsoletes: qt5-qttools-devel < 5.2.0-1 |
64b210ea JB |
197 | |
198 | %description -n Qt5Designer-devel | |
199 | Header files for Qt5 Designer libraries. | |
200 | ||
201 | %description -n Qt5Designer-devel -l pl.UTF-8 | |
202 | Pliki nagłówkowe bibliotek Qt5 Designer. | |
203 | ||
c0873864 JB |
204 | %package -n Qt5Designer-plugin-qquickwidget |
205 | Summary: QQuickWidget (Quick2) plugin for Qt5 Designer | |
206 | Summary(pl.UTF-8): Wtyczka QQuickWidget (Quick2) dla Qt5 Designera | |
207 | Group: X11/Libraries | |
208 | Requires: Qt5Designer = %{version}-%{release} | |
209 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
210 | ||
211 | %description -n Qt5Designer-plugin-qquickwidget | |
212 | QQuickWidget (Quick2) plugin for Qt5 Designer. | |
213 | ||
214 | %description -n Qt5Designer-plugin-qquickwidget -l pl.UTF-8 | |
215 | Wtyczka QQuickWidget (Quick2) dla Qt5 Designera. | |
216 | ||
217 | %package -n Qt5Designer-plugin-qwebview | |
218 | Summary: QWebView plugin for Qt5 Designer | |
219 | Summary(pl.UTF-8): Wtyczka QWebView dla Qt5 Designera | |
220 | Group: X11/Libraries | |
221 | Requires: Qt5Designer = %{version}-%{release} | |
222 | Requires: Qt5WebKit >= %{qtwebkit_ver} | |
223 | ||
224 | %description -n Qt5Designer-plugin-qwebview | |
225 | QWebView plugin for Qt5 Designer. | |
226 | ||
227 | %description -n Qt5Designer-plugin-qwebview -l pl.UTF-8 | |
228 | Wtyczka QWebView dla Qt5 Designera. | |
229 | ||
64b210ea JB |
230 | %package -n Qt5Help |
231 | Summary: Qt5 Help library | |
232 | Summary(pl.UTF-8): Biblioteka Qt5 Help | |
233 | Group: X11/Libraries | |
64b210ea JB |
234 | Requires: Qt5Core >= %{qtbase_ver} |
235 | Requires: Qt5Gui >= %{qtbase_ver} | |
64b210ea JB |
236 | Requires: Qt5Sql >= %{qtbase_ver} |
237 | Requires: Qt5Widgets >= %{qtbase_ver} | |
238 | ||
239 | %description -n Qt5Help | |
240 | Qt5 Help library provides classes for integrating online documentation | |
241 | in applications. | |
242 | ||
243 | %description -n Qt5Help -l pl.UTF-8 | |
244 | Biblioteka Qt5 Help dostarcza klasy służące do integracji dokumentacji | |
245 | online w aplikacjach. | |
246 | ||
247 | %package -n Qt5Help-devel | |
248 | Summary: Qt5 Help library - development files | |
249 | Summary(pl.UTF-8): Biblioteka Qt5 Help - pliki programistyczne | |
cf6f2f73 | 250 | Group: X11/Development/Libraries |
64b210ea JB |
251 | Requires: Qt5Core-devel >= %{qtbase_ver} |
252 | Requires: Qt5Gui-devel >= %{qtbase_ver} | |
253 | Requires: Qt5Help = %{version}-%{release} | |
64b210ea JB |
254 | Requires: Qt5Sql-devel >= %{qtbase_ver} |
255 | Requires: Qt5Widgets-devel >= %{qtbase_ver} | |
87cf8903 | 256 | Obsoletes: qt5-qttools-devel < 5.2.0-1 |
64b210ea JB |
257 | |
258 | %description -n Qt5Help-devel | |
259 | Header files for Qt5 Help library. | |
260 | ||
261 | %description -n Qt5Help-devel -l pl.UTF-8 | |
262 | Pliki nagłówkowe biblioteki Qt5 Help. | |
263 | ||
264 | %package -n Qt5UiTools-devel | |
265 | Summary: Qt5 Ui Tools library - development files | |
266 | Summary(pl.UTF-8): Biblioteka Qt5 Ui Tools - pliki programistyczne | |
267 | Group: X11/Development/Libraries | |
268 | Requires: OpenGL-devel | |
269 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
270 | Requires: Qt5Gui-devel >= %{qtbase_ver} | |
271 | Requires: Qt5Widgets-devel >= %{qtbase_ver} | |
87cf8903 | 272 | Obsoletes: qt5-qttools-devel < 5.2.0-1 |
64b210ea JB |
273 | |
274 | %description -n Qt5UiTools-devel | |
275 | Header files and static Qt5 Ui Tools library. | |
cf6f2f73 | 276 | |
64b210ea JB |
277 | Qt5 Ui Tools library provides classes to handle forms created with Qt |
278 | Designer. | |
cf6f2f73 | 279 | |
64b210ea JB |
280 | %description -n Qt5UiTools-devel -l pl.UTF-8 |
281 | Pliki nagłówkowe i statyczna biblioteka Qt5 Ui Tools. | |
282 | ||
283 | Biblioteka Qt5 Ui Tools dostarcza klasy do obsługi formularzy | |
284 | utworzonych przy użyciu Qt Designera. | |
ab2931b5 | 285 | |
cf6f2f73 | 286 | %package doc |
170cf102 JB |
287 | Summary: Qt5 Tools documentation in HTML format |
288 | Summary(pl.UTF-8): Dokumentacja do narzędzi Qt5 w formacie HTML | |
cf6f2f73 | 289 | Group: X11/Development/Libraries |
64b210ea | 290 | Requires: qt5-doc-common >= %{qtbase_ver} |
24273f63 | 291 | %{?noarchpackage} |
cf6f2f73 WF |
292 | |
293 | %description doc | |
170cf102 | 294 | Qt5 Tools documentation in HTML format. |
ab2931b5 JB |
295 | |
296 | %description doc -l pl.UTF-8 | |
170cf102 JB |
297 | Dokumentacja do narzędzi Qt5 w formacie HTML. |
298 | ||
299 | %package doc-qch | |
300 | Summary: Qt5 Tools documentation in QCH format | |
301 | Summary(pl.UTF-8): Dokumentacja do narzędzi Qt5 w formacie QCH | |
302 | Group: X11/Development/Libraries | |
303 | Requires: qt5-doc-common >= %{qtbase_ver} | |
24273f63 | 304 | %{?noarchpackage} |
170cf102 JB |
305 | |
306 | %description doc-qch | |
307 | Qt5 Tools documentation in QCH format. | |
308 | ||
309 | %description doc-qch -l pl.UTF-8 | |
310 | Dokumentacja do narzędzi Qt5 w formacie QCH. | |
cf6f2f73 WF |
311 | |
312 | %package examples | |
313 | Summary: Qt5 Tools examples | |
ab2931b5 | 314 | Summary(pl.UTF-8): Przykłady do narzędzi Qt5 |
cf6f2f73 | 315 | Group: X11/Development/Libraries |
24273f63 | 316 | %{?noarchpackage} |
cf6f2f73 WF |
317 | |
318 | %description examples | |
319 | Qt5 Tools - examples. | |
320 | ||
ab2931b5 JB |
321 | %description examples -l pl.UTF-8 |
322 | Przykłady do narzędzi Qt5. | |
323 | ||
cf6f2f73 | 324 | %prep |
78f06120 | 325 | %setup -q -n %{orgname}-everywhere-src-%{version} %{?with_qm:-a1} |
cf6f2f73 | 326 | |
24273f63 JB |
327 | %if %{without qtwebkit} |
328 | %{__sed} -i -e '/^qtHaveModule(webkitwidgets)/ s/webkitwidgets/disabled&/' \ | |
329 | src/assistant/assistant/assistant.pro \ | |
330 | src/designer/src/plugins/plugins.pro | |
331 | %endif | |
332 | ||
cf6f2f73 WF |
333 | %build |
334 | qmake-qt5 | |
335 | %{__make} | |
428effba | 336 | %{?with_doc:%{__make} docs} |
cf6f2f73 | 337 | |
c0873864 | 338 | %if %{with qm} |
78f06120 | 339 | cd qttranslations-everywhere-src-%{version} |
c0873864 JB |
340 | qmake-qt5 |
341 | %{__make} | |
342 | cd .. | |
343 | %endif | |
344 | ||
cf6f2f73 WF |
345 | %install |
346 | rm -rf $RPM_BUILD_ROOT | |
aef3a5d0 JB |
347 | install -d $RPM_BUILD_ROOT%{_bindir} |
348 | ||
1cb483dd | 349 | %{__make} install \ |
cf6f2f73 WF |
350 | INSTALL_ROOT=$RPM_BUILD_ROOT |
351 | ||
8fb6692c | 352 | %if %{with doc} |
428effba | 353 | %{__make} install_docs \ |
aef3a5d0 | 354 | INSTALL_ROOT=$RPM_BUILD_ROOT |
8fb6692c | 355 | %endif |
aef3a5d0 | 356 | |
c0873864 | 357 | %if %{with qm} |
78f06120 | 358 | %{__make} -C qttranslations-everywhere-src-%{version} install \ |
c0873864 JB |
359 | INSTALL_ROOT=$RPM_BUILD_ROOT |
360 | # keep only assistant, designer, linguist, qt_help, qtconfig here | |
63fff6ac | 361 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/{qtbase,qtconnectivity,qtdeclarative,qtlocation,qtmultimedia,qtquickcontrols,qtquickcontrols2,qtserialport,qtscript,qtwebengine,qtwebsockets,qtxmlpatterns}_*.qm |
c0873864 | 362 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/qt_{??,??_??}.qm |
c0873864 JB |
363 | %endif |
364 | ||
aef3a5d0 JB |
365 | # kill unnecessary -L%{_libdir} from *.la, *.prl, *.pc |
366 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ | |
367 | $RPM_BUILD_ROOT%{_libdir}/*.{la,prl} \ | |
368 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
369 | ||
370 | # useless symlinks | |
78f06120 | 371 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
aef3a5d0 | 372 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
47e17e3e | 373 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*Qt5*.la |
aef3a5d0 JB |
374 | |
375 | # symlinks in system bin dir | |
376 | cd $RPM_BUILD_ROOT%{_bindir} | |
377 | ln -sf ../%{_lib}/qt5/bin/assistant assistant-qt5 | |
378 | ln -sf ../%{_lib}/qt5/bin/designer designer-qt5 | |
379 | ln -sf ../%{_lib}/qt5/bin/lconvert lconvert-qt5 | |
380 | ln -sf ../%{_lib}/qt5/bin/linguist linguist-qt5 | |
381 | ln -sf ../%{_lib}/qt5/bin/lrelease lrelease-qt5 | |
382 | ln -sf ../%{_lib}/qt5/bin/lupdate lupdate-qt5 | |
acba123d JR |
383 | ln -sf ../%{_lib}/qt5/bin/lprodump lprodump-qt5 |
384 | ln -sf ../%{_lib}/qt5/bin/lrelease-pro lrelease-pro-qt5 | |
385 | ln -sf ../%{_lib}/qt5/bin/lupdate-pro lupdate-pro-qt5 | |
aef3a5d0 JB |
386 | ln -sf ../%{_lib}/qt5/bin/pixeltool pixeltool-qt5 |
387 | ln -sf ../%{_lib}/qt5/bin/qcollectiongenerator qcollectiongenerator-qt5 | |
388 | ln -sf ../%{_lib}/qt5/bin/qdbus qdbus-qt5 | |
389 | ln -sf ../%{_lib}/qt5/bin/qdbusviewer qdbusviewer-qt5 | |
63fff6ac | 390 | ln -sf ../%{_lib}/qt5/bin/qdistancefieldgenerator qdistancefieldgenerator-qt5 |
aef3a5d0 | 391 | ln -sf ../%{_lib}/qt5/bin/qhelpgenerator qhelpgenerator-qt5 |
2aa3c0a8 | 392 | ln -sf ../%{_lib}/qt5/bin/qtdiag qtdiag-qt5 |
aef3a5d0 | 393 | ln -sf ../%{_lib}/qt5/bin/qtpaths qtpaths-qt5 |
dcef4998 | 394 | ln -sf ../%{_lib}/qt5/bin/qtplugininfo qtplugininfo-qt5 |
aef3a5d0 | 395 | cd - |
1cb483dd | 396 | |
cf6f2f73 WF |
397 | # Prepare some files list |
398 | ifecho() { | |
aef3a5d0 | 399 | r="$RPM_BUILD_ROOT$2" |
cf6f2f73 WF |
400 | if [ -d "$r" ]; then |
401 | echo "%%dir $2" >> $1.files | |
402 | elif [ -x "$r" ] ; then | |
403 | echo "%%attr(755,root,root) $2" >> $1.files | |
404 | elif [ -f "$r" ]; then | |
405 | echo "$2" >> $1.files | |
406 | else | |
407 | echo "Error generation $1 files list!" | |
408 | echo "$r: no such file or directory!" | |
409 | return 1 | |
410 | fi | |
411 | } | |
aef3a5d0 JB |
412 | ifecho_tree() { |
413 | ifecho $1 $2 | |
414 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
415 | ifecho $1 $2/$f | |
416 | done | |
417 | } | |
cf6f2f73 WF |
418 | |
419 | echo "%defattr(644,root,root,755)" > examples.files | |
aef3a5d0 JB |
420 | ifecho_tree examples %{_examplesdir}/qt5/assistant |
421 | ifecho_tree examples %{_examplesdir}/qt5/designer | |
422 | ifecho_tree examples %{_examplesdir}/qt5/help | |
423 | ifecho_tree examples %{_examplesdir}/qt5/linguist | |
424 | ifecho_tree examples %{_examplesdir}/qt5/uitools | |
cf6f2f73 | 425 | |
c0873864 JB |
426 | # find_lang --with-qm supports only PLD qt3/qt4 specific %{_datadir}/locale/*/LC_MESSAGES layout |
427 | find_qt5_qm() | |
428 | { | |
429 | name="$1" | |
430 | find $RPM_BUILD_ROOT%{_datadir}/qt5/translations -name "${name}_*.qm" | \ | |
431 | sed -e "s:^$RPM_BUILD_ROOT::" \ | |
432 | -e 's:\(.*/'$name'_\)\([a-z][a-z][a-z]\?\)\(_[A-Z][A-Z]\)\?\(\.qm\)$:%lang(\2\3) \1\2\3\4:' | |
433 | } | |
434 | ||
435 | echo '%defattr(644,root,root,755)' > assistant.lang | |
436 | echo '%defattr(644,root,root,755)' > designer.lang | |
437 | echo '%defattr(644,root,root,755)' > linguist.lang | |
438 | echo '%defattr(644,root,root,755)' > qt_help.lang | |
439 | %if %{with qm} | |
440 | find_qt5_qm assistant >> assistant.lang | |
441 | find_qt5_qm designer >> designer.lang | |
442 | find_qt5_qm linguist >> linguist.lang | |
443 | find_qt5_qm qt_help >> qt_help.lang | |
444 | %endif | |
445 | ||
cf6f2f73 WF |
446 | %clean |
447 | rm -rf $RPM_BUILD_ROOT | |
448 | ||
64b210ea JB |
449 | %post -n Qt5Designer -p /sbin/ldconfig |
450 | %postun -n Qt5Designer -p /sbin/ldconfig | |
451 | ||
452 | %post -n Qt5Help -p /sbin/ldconfig | |
453 | %postun -n Qt5Help -p /sbin/ldconfig | |
cf6f2f73 WF |
454 | |
455 | %files | |
456 | %defattr(644,root,root,755) | |
78f06120 | 457 | %doc LICENSE.GPL3-EXCEPT dist/changes-* |
64b210ea | 458 | %attr(755,root,root) %{_bindir}/pixeltool-qt5 |
2aa3c0a8 | 459 | %attr(755,root,root) %{_bindir}/qtdiag-qt5 |
64b210ea | 460 | %attr(755,root,root) %{_bindir}/qtpaths-qt5 |
dcef4998 | 461 | %attr(755,root,root) %{_bindir}/qtplugininfo-qt5 |
64b210ea | 462 | %attr(755,root,root) %{qt5dir}/bin/pixeltool |
2aa3c0a8 | 463 | %attr(755,root,root) %{qt5dir}/bin/qtdiag |
64b210ea | 464 | %attr(755,root,root) %{qt5dir}/bin/qtpaths |
dcef4998 | 465 | %attr(755,root,root) %{qt5dir}/bin/qtplugininfo |
aef3a5d0 | 466 | |
c0873864 | 467 | %files -n qt5-assistant -f assistant.lang |
64b210ea | 468 | %defattr(644,root,root,755) |
aef3a5d0 | 469 | %attr(755,root,root) %{_bindir}/assistant-qt5 |
aef3a5d0 | 470 | %attr(755,root,root) %{_bindir}/qcollectiongenerator-qt5 |
63fff6ac | 471 | %attr(755,root,root) %{_bindir}/qdistancefieldgenerator-qt5 |
aef3a5d0 | 472 | %attr(755,root,root) %{_bindir}/qhelpgenerator-qt5 |
aef3a5d0 | 473 | %attr(755,root,root) %{qt5dir}/bin/assistant |
64b210ea | 474 | %attr(755,root,root) %{qt5dir}/bin/qcollectiongenerator |
63fff6ac | 475 | %attr(755,root,root) %{qt5dir}/bin/qdistancefieldgenerator |
8fb6692c | 476 | %attr(755,root,root) %{qt5dir}/bin/qdoc |
64b210ea | 477 | %attr(755,root,root) %{qt5dir}/bin/qhelpgenerator |
8fb6692c | 478 | %attr(755,root,root) %{qt5dir}/bin/qtattributionsscanner |
6212ebec JP |
479 | %{_libdir}/cmake/Qt5AttributionsScannerTools |
480 | %{_libdir}/cmake/Qt5DocTools | |
64b210ea | 481 | |
c0873864 | 482 | %files -n qt5-designer -f designer.lang |
64b210ea JB |
483 | %defattr(644,root,root,755) |
484 | %attr(755,root,root) %{_bindir}/designer-qt5 | |
aef3a5d0 | 485 | %attr(755,root,root) %{qt5dir}/bin/designer |
64b210ea | 486 | |
c0873864 | 487 | %files -n qt5-linguist -f linguist.lang |
64b210ea JB |
488 | %defattr(644,root,root,755) |
489 | %attr(755,root,root) %{_bindir}/lconvert-qt5 | |
490 | %attr(755,root,root) %{_bindir}/linguist-qt5 | |
acba123d JR |
491 | %attr(755,root,root) %{_bindir}/lprodump-qt5 |
492 | %attr(755,root,root) %{_bindir}/lrelease-pro-qt5 | |
64b210ea | 493 | %attr(755,root,root) %{_bindir}/lrelease-qt5 |
acba123d | 494 | %attr(755,root,root) %{_bindir}/lupdate-pro-qt5 |
64b210ea | 495 | %attr(755,root,root) %{_bindir}/lupdate-qt5 |
aef3a5d0 JB |
496 | %attr(755,root,root) %{qt5dir}/bin/lconvert |
497 | %attr(755,root,root) %{qt5dir}/bin/linguist | |
acba123d | 498 | %attr(755,root,root) %{qt5dir}/bin/lprodump |
aef3a5d0 | 499 | %attr(755,root,root) %{qt5dir}/bin/lrelease |
acba123d | 500 | %attr(755,root,root) %{qt5dir}/bin/lrelease-pro |
aef3a5d0 | 501 | %attr(755,root,root) %{qt5dir}/bin/lupdate |
acba123d | 502 | %attr(755,root,root) %{qt5dir}/bin/lupdate-pro |
64b210ea JB |
503 | %{_datadir}/qt5/phrasebooks |
504 | %{_libdir}/cmake/Qt5LinguistTools | |
505 | ||
506 | %files -n qt5-qdbus | |
507 | %defattr(644,root,root,755) | |
508 | %attr(755,root,root) %{_bindir}/qdbus-qt5 | |
509 | %attr(755,root,root) %{_bindir}/qdbusviewer-qt5 | |
aef3a5d0 JB |
510 | %attr(755,root,root) %{qt5dir}/bin/qdbus |
511 | %attr(755,root,root) %{qt5dir}/bin/qdbusviewer | |
64b210ea | 512 | |
64b210ea JB |
513 | %files -n Qt5Designer |
514 | %defattr(644,root,root,755) | |
515 | %attr(755,root,root) %{_libdir}/libQt5Designer.so.*.*.* | |
516 | %attr(755,root,root) %ghost %{_libdir}/libQt5Designer.so.5 | |
517 | %attr(755,root,root) %{_libdir}/libQt5DesignerComponents.so.*.*.* | |
518 | %attr(755,root,root) %ghost %{_libdir}/libQt5DesignerComponents.so.5 | |
aef3a5d0 | 519 | |
aef3a5d0 JB |
520 | %dir %{qt5dir}/plugins/designer |
521 | %attr(755,root,root) %{qt5dir}/plugins/designer/libcontainerextension.so | |
522 | %attr(755,root,root) %{qt5dir}/plugins/designer/libcustomwidgetplugin.so | |
523 | %attr(755,root,root) %{qt5dir}/plugins/designer/libtaskmenuextension.so | |
524 | %attr(755,root,root) %{qt5dir}/plugins/designer/libworldtimeclockplugin.so | |
525 | ||
c8acbcc4 JB |
526 | # common for base -devel and plugin-specific files (from other source packages) |
527 | %dir %{_libdir}/cmake/Qt5Designer | |
528 | ||
64b210ea | 529 | %files -n Qt5Designer-devel |
cf6f2f73 | 530 | %defattr(644,root,root,755) |
cf6f2f73 WF |
531 | %attr(755,root,root) %{_libdir}/libQt5Designer.so |
532 | %attr(755,root,root) %{_libdir}/libQt5DesignerComponents.so | |
cf6f2f73 WF |
533 | %{_libdir}/libQt5Designer.prl |
534 | %{_libdir}/libQt5DesignerComponents.prl | |
cf6f2f73 WF |
535 | %{_includedir}/qt5/QtDesigner |
536 | %{_includedir}/qt5/QtDesignerComponents | |
aef3a5d0 | 537 | %{_pkgconfigdir}/Qt5Designer.pc |
c8acbcc4 JB |
538 | %{_libdir}/cmake/Qt5Designer/Qt5DesignerConfig*.cmake |
539 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_AnalogClockPlugin.cmake | |
540 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_MultiPageWidgetPlugin.cmake | |
541 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_TicTacToePlugin.cmake | |
542 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_WorldTimeClockPlugin.cmake | |
47e17e3e JP |
543 | %dir %{_libdir}/cmake/Qt5DesignerComponents |
544 | %{_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfig.cmake | |
545 | %{_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfigVersion.cmake | |
aef3a5d0 JB |
546 | %{qt5dir}/mkspecs/modules/qt_lib_designer.pri |
547 | %{qt5dir}/mkspecs/modules/qt_lib_designer_private.pri | |
548 | %{qt5dir}/mkspecs/modules/qt_lib_designercomponents_private.pri | |
64b210ea | 549 | |
c0873864 JB |
550 | %if %{with qtdeclarative} |
551 | %files -n Qt5Designer-plugin-qquickwidget | |
552 | %defattr(644,root,root,755) | |
553 | %attr(755,root,root) %{qt5dir}/plugins/designer/libqquickwidget.so | |
554 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QQuickWidgetPlugin.cmake | |
555 | %endif | |
556 | ||
557 | %if %{with qtwebkit} | |
558 | %files -n Qt5Designer-plugin-qwebview | |
559 | %defattr(644,root,root,755) | |
560 | %attr(755,root,root) %{qt5dir}/plugins/designer/libqwebview.so | |
561 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebViewPlugin.cmake | |
562 | %endif | |
563 | ||
564 | %files -n Qt5Help -f qt_help.lang | |
64b210ea JB |
565 | %defattr(644,root,root,755) |
566 | %attr(755,root,root) %{_libdir}/libQt5Help.so.*.*.* | |
567 | %attr(755,root,root) %ghost %{_libdir}/libQt5Help.so.5 | |
568 | ||
569 | %files -n Qt5Help-devel | |
570 | %defattr(644,root,root,755) | |
571 | %attr(755,root,root) %{_libdir}/libQt5Help.so | |
572 | %{_libdir}/libQt5Help.prl | |
573 | %{_includedir}/qt5/QtHelp | |
574 | %{_pkgconfigdir}/Qt5Help.pc | |
575 | %{_libdir}/cmake/Qt5Help | |
aef3a5d0 JB |
576 | %{qt5dir}/mkspecs/modules/qt_lib_help.pri |
577 | %{qt5dir}/mkspecs/modules/qt_lib_help_private.pri | |
64b210ea JB |
578 | |
579 | %files -n Qt5UiTools-devel | |
580 | %defattr(644,root,root,755) | |
581 | # static-only | |
582 | %{_libdir}/libQt5UiTools.a | |
583 | %{_libdir}/libQt5UiTools.prl | |
47e17e3e | 584 | %{_libdir}/libQt5UiPlugin.prl |
dcef4998 | 585 | %{_includedir}/qt5/QtUiPlugin |
64b210ea | 586 | %{_includedir}/qt5/QtUiTools |
47e17e3e | 587 | %{_pkgconfigdir}/Qt5UiPlugin.pc |
64b210ea | 588 | %{_pkgconfigdir}/Qt5UiTools.pc |
dcef4998 | 589 | %{_libdir}/cmake/Qt5UiPlugin |
64b210ea | 590 | %{_libdir}/cmake/Qt5UiTools |
dcef4998 | 591 | %{qt5dir}/mkspecs/modules/qt_lib_uiplugin.pri |
aef3a5d0 JB |
592 | %{qt5dir}/mkspecs/modules/qt_lib_uitools.pri |
593 | %{qt5dir}/mkspecs/modules/qt_lib_uitools_private.pri | |
cf6f2f73 WF |
594 | |
595 | %files examples -f examples.files | |
343ad397 | 596 | %defattr(644,root,root,755) |
aef3a5d0 JB |
597 | # XXX: dir shared with qt5-qtbase-examples |
598 | %dir %{_examplesdir}/qt5 | |
cf6f2f73 | 599 | |
8fb6692c | 600 | %if %{with doc} |
cf6f2f73 WF |
601 | %files doc |
602 | %defattr(644,root,root,755) | |
6212ebec | 603 | %{_docdir}/qt5-doc/qdoc |
aef3a5d0 JB |
604 | %{_docdir}/qt5-doc/qtassistant |
605 | %{_docdir}/qt5-doc/qtdesigner | |
6212ebec | 606 | %{_docdir}/qt5-doc/qtdistancefieldgenerator |
aef3a5d0 JB |
607 | %{_docdir}/qt5-doc/qthelp |
608 | %{_docdir}/qt5-doc/qtlinguist | |
609 | %{_docdir}/qt5-doc/qtuitools | |
170cf102 | 610 | |
170cf102 JB |
611 | %files doc-qch |
612 | %defattr(644,root,root,755) | |
6212ebec | 613 | %{_docdir}/qt5-doc/qdoc.qch |
170cf102 JB |
614 | %{_docdir}/qt5-doc/qtassistant.qch |
615 | %{_docdir}/qt5-doc/qtdesigner.qch | |
6212ebec | 616 | %{_docdir}/qt5-doc/qtdistancefieldgenerator.qch |
170cf102 JB |
617 | %{_docdir}/qt5-doc/qthelp.qch |
618 | %{_docdir}/qt5-doc/qtlinguist.qch | |
619 | %{_docdir}/qt5-doc/qtuitools.qch | |
620 | %endif |