]>
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 |
16a3062a | 26 | Release: 9 |
664ab46f | 27 | License: LGPL v3 or GPL v2 or GPL v3 or commercial |
cf6f2f73 | 28 | Group: X11/Libraries |
b409b1a0 | 29 | Source0: https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
c29efe69 | 30 | # Source0-md5: 739403634e1326a3d52902a835015a4b |
b409b1a0 | 31 | Source1: https://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} |
1a8990c0 | 291 | BuildArch: noarch |
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} | |
1a8990c0 | 304 | BuildArch: noarch |
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 |
1a8990c0 | 316 | BuildArch: noarch |
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 | 333 | %build |
d4812328 JP |
334 | qmake-qt5 \ |
335 | CONFIG-=compile_examples | |
cf6f2f73 | 336 | %{__make} |
428effba | 337 | %{?with_doc:%{__make} docs} |
cf6f2f73 | 338 | |
c0873864 | 339 | %if %{with qm} |
78f06120 | 340 | cd qttranslations-everywhere-src-%{version} |
c0873864 JB |
341 | qmake-qt5 |
342 | %{__make} | |
343 | cd .. | |
344 | %endif | |
345 | ||
cf6f2f73 WF |
346 | %install |
347 | rm -rf $RPM_BUILD_ROOT | |
aef3a5d0 JB |
348 | install -d $RPM_BUILD_ROOT%{_bindir} |
349 | ||
1cb483dd | 350 | %{__make} install \ |
cf6f2f73 WF |
351 | INSTALL_ROOT=$RPM_BUILD_ROOT |
352 | ||
8fb6692c | 353 | %if %{with doc} |
428effba | 354 | %{__make} install_docs \ |
aef3a5d0 | 355 | INSTALL_ROOT=$RPM_BUILD_ROOT |
8fb6692c | 356 | %endif |
aef3a5d0 | 357 | |
c0873864 | 358 | %if %{with qm} |
78f06120 | 359 | %{__make} -C qttranslations-everywhere-src-%{version} install \ |
c0873864 JB |
360 | INSTALL_ROOT=$RPM_BUILD_ROOT |
361 | # keep only assistant, designer, linguist, qt_help, qtconfig here | |
63fff6ac | 362 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/{qtbase,qtconnectivity,qtdeclarative,qtlocation,qtmultimedia,qtquickcontrols,qtquickcontrols2,qtserialport,qtscript,qtwebengine,qtwebsockets,qtxmlpatterns}_*.qm |
c0873864 | 363 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/qt_{??,??_??}.qm |
c0873864 JB |
364 | %endif |
365 | ||
aef3a5d0 JB |
366 | # kill unnecessary -L%{_libdir} from *.la, *.prl, *.pc |
367 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ | |
368 | $RPM_BUILD_ROOT%{_libdir}/*.{la,prl} \ | |
369 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
370 | ||
371 | # useless symlinks | |
78f06120 | 372 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
aef3a5d0 | 373 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
47e17e3e | 374 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*Qt5*.la |
aef3a5d0 JB |
375 | |
376 | # symlinks in system bin dir | |
377 | cd $RPM_BUILD_ROOT%{_bindir} | |
378 | ln -sf ../%{_lib}/qt5/bin/assistant assistant-qt5 | |
379 | ln -sf ../%{_lib}/qt5/bin/designer designer-qt5 | |
380 | ln -sf ../%{_lib}/qt5/bin/lconvert lconvert-qt5 | |
381 | ln -sf ../%{_lib}/qt5/bin/linguist linguist-qt5 | |
382 | ln -sf ../%{_lib}/qt5/bin/lrelease lrelease-qt5 | |
383 | ln -sf ../%{_lib}/qt5/bin/lupdate lupdate-qt5 | |
acba123d JR |
384 | ln -sf ../%{_lib}/qt5/bin/lprodump lprodump-qt5 |
385 | ln -sf ../%{_lib}/qt5/bin/lrelease-pro lrelease-pro-qt5 | |
386 | ln -sf ../%{_lib}/qt5/bin/lupdate-pro lupdate-pro-qt5 | |
aef3a5d0 JB |
387 | ln -sf ../%{_lib}/qt5/bin/pixeltool pixeltool-qt5 |
388 | ln -sf ../%{_lib}/qt5/bin/qcollectiongenerator qcollectiongenerator-qt5 | |
389 | ln -sf ../%{_lib}/qt5/bin/qdbus qdbus-qt5 | |
390 | ln -sf ../%{_lib}/qt5/bin/qdbusviewer qdbusviewer-qt5 | |
63fff6ac | 391 | ln -sf ../%{_lib}/qt5/bin/qdistancefieldgenerator qdistancefieldgenerator-qt5 |
aef3a5d0 | 392 | ln -sf ../%{_lib}/qt5/bin/qhelpgenerator qhelpgenerator-qt5 |
2aa3c0a8 | 393 | ln -sf ../%{_lib}/qt5/bin/qtdiag qtdiag-qt5 |
aef3a5d0 | 394 | ln -sf ../%{_lib}/qt5/bin/qtpaths qtpaths-qt5 |
dcef4998 | 395 | ln -sf ../%{_lib}/qt5/bin/qtplugininfo qtplugininfo-qt5 |
aef3a5d0 | 396 | cd - |
1cb483dd | 397 | |
cf6f2f73 WF |
398 | # Prepare some files list |
399 | ifecho() { | |
aef3a5d0 | 400 | r="$RPM_BUILD_ROOT$2" |
cf6f2f73 WF |
401 | if [ -d "$r" ]; then |
402 | echo "%%dir $2" >> $1.files | |
403 | elif [ -x "$r" ] ; then | |
404 | echo "%%attr(755,root,root) $2" >> $1.files | |
405 | elif [ -f "$r" ]; then | |
406 | echo "$2" >> $1.files | |
407 | else | |
408 | echo "Error generation $1 files list!" | |
409 | echo "$r: no such file or directory!" | |
410 | return 1 | |
411 | fi | |
412 | } | |
aef3a5d0 JB |
413 | ifecho_tree() { |
414 | ifecho $1 $2 | |
415 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
416 | ifecho $1 $2/$f | |
417 | done | |
418 | } | |
cf6f2f73 WF |
419 | |
420 | echo "%defattr(644,root,root,755)" > examples.files | |
aef3a5d0 JB |
421 | ifecho_tree examples %{_examplesdir}/qt5/assistant |
422 | ifecho_tree examples %{_examplesdir}/qt5/designer | |
423 | ifecho_tree examples %{_examplesdir}/qt5/help | |
424 | ifecho_tree examples %{_examplesdir}/qt5/linguist | |
425 | ifecho_tree examples %{_examplesdir}/qt5/uitools | |
cf6f2f73 | 426 | |
c0873864 JB |
427 | # find_lang --with-qm supports only PLD qt3/qt4 specific %{_datadir}/locale/*/LC_MESSAGES layout |
428 | find_qt5_qm() | |
429 | { | |
430 | name="$1" | |
431 | find $RPM_BUILD_ROOT%{_datadir}/qt5/translations -name "${name}_*.qm" | \ | |
432 | sed -e "s:^$RPM_BUILD_ROOT::" \ | |
433 | -e 's:\(.*/'$name'_\)\([a-z][a-z][a-z]\?\)\(_[A-Z][A-Z]\)\?\(\.qm\)$:%lang(\2\3) \1\2\3\4:' | |
434 | } | |
435 | ||
436 | echo '%defattr(644,root,root,755)' > assistant.lang | |
437 | echo '%defattr(644,root,root,755)' > designer.lang | |
438 | echo '%defattr(644,root,root,755)' > linguist.lang | |
439 | echo '%defattr(644,root,root,755)' > qt_help.lang | |
440 | %if %{with qm} | |
441 | find_qt5_qm assistant >> assistant.lang | |
442 | find_qt5_qm designer >> designer.lang | |
443 | find_qt5_qm linguist >> linguist.lang | |
444 | find_qt5_qm qt_help >> qt_help.lang | |
445 | %endif | |
446 | ||
cf6f2f73 WF |
447 | %clean |
448 | rm -rf $RPM_BUILD_ROOT | |
449 | ||
64b210ea JB |
450 | %post -n Qt5Designer -p /sbin/ldconfig |
451 | %postun -n Qt5Designer -p /sbin/ldconfig | |
452 | ||
453 | %post -n Qt5Help -p /sbin/ldconfig | |
454 | %postun -n Qt5Help -p /sbin/ldconfig | |
cf6f2f73 WF |
455 | |
456 | %files | |
457 | %defattr(644,root,root,755) | |
78f06120 | 458 | %doc LICENSE.GPL3-EXCEPT dist/changes-* |
64b210ea | 459 | %attr(755,root,root) %{_bindir}/pixeltool-qt5 |
2aa3c0a8 | 460 | %attr(755,root,root) %{_bindir}/qtdiag-qt5 |
64b210ea | 461 | %attr(755,root,root) %{_bindir}/qtpaths-qt5 |
dcef4998 | 462 | %attr(755,root,root) %{_bindir}/qtplugininfo-qt5 |
64b210ea | 463 | %attr(755,root,root) %{qt5dir}/bin/pixeltool |
2aa3c0a8 | 464 | %attr(755,root,root) %{qt5dir}/bin/qtdiag |
64b210ea | 465 | %attr(755,root,root) %{qt5dir}/bin/qtpaths |
dcef4998 | 466 | %attr(755,root,root) %{qt5dir}/bin/qtplugininfo |
aef3a5d0 | 467 | |
c0873864 | 468 | %files -n qt5-assistant -f assistant.lang |
64b210ea | 469 | %defattr(644,root,root,755) |
aef3a5d0 | 470 | %attr(755,root,root) %{_bindir}/assistant-qt5 |
aef3a5d0 | 471 | %attr(755,root,root) %{_bindir}/qcollectiongenerator-qt5 |
63fff6ac | 472 | %attr(755,root,root) %{_bindir}/qdistancefieldgenerator-qt5 |
aef3a5d0 | 473 | %attr(755,root,root) %{_bindir}/qhelpgenerator-qt5 |
aef3a5d0 | 474 | %attr(755,root,root) %{qt5dir}/bin/assistant |
64b210ea | 475 | %attr(755,root,root) %{qt5dir}/bin/qcollectiongenerator |
63fff6ac | 476 | %attr(755,root,root) %{qt5dir}/bin/qdistancefieldgenerator |
8fb6692c | 477 | %attr(755,root,root) %{qt5dir}/bin/qdoc |
64b210ea | 478 | %attr(755,root,root) %{qt5dir}/bin/qhelpgenerator |
8fb6692c | 479 | %attr(755,root,root) %{qt5dir}/bin/qtattributionsscanner |
6212ebec JP |
480 | %{_libdir}/cmake/Qt5AttributionsScannerTools |
481 | %{_libdir}/cmake/Qt5DocTools | |
64b210ea | 482 | |
c0873864 | 483 | %files -n qt5-designer -f designer.lang |
64b210ea JB |
484 | %defattr(644,root,root,755) |
485 | %attr(755,root,root) %{_bindir}/designer-qt5 | |
aef3a5d0 | 486 | %attr(755,root,root) %{qt5dir}/bin/designer |
64b210ea | 487 | |
c0873864 | 488 | %files -n qt5-linguist -f linguist.lang |
64b210ea JB |
489 | %defattr(644,root,root,755) |
490 | %attr(755,root,root) %{_bindir}/lconvert-qt5 | |
491 | %attr(755,root,root) %{_bindir}/linguist-qt5 | |
acba123d JR |
492 | %attr(755,root,root) %{_bindir}/lprodump-qt5 |
493 | %attr(755,root,root) %{_bindir}/lrelease-pro-qt5 | |
64b210ea | 494 | %attr(755,root,root) %{_bindir}/lrelease-qt5 |
acba123d | 495 | %attr(755,root,root) %{_bindir}/lupdate-pro-qt5 |
64b210ea | 496 | %attr(755,root,root) %{_bindir}/lupdate-qt5 |
aef3a5d0 JB |
497 | %attr(755,root,root) %{qt5dir}/bin/lconvert |
498 | %attr(755,root,root) %{qt5dir}/bin/linguist | |
acba123d | 499 | %attr(755,root,root) %{qt5dir}/bin/lprodump |
aef3a5d0 | 500 | %attr(755,root,root) %{qt5dir}/bin/lrelease |
acba123d | 501 | %attr(755,root,root) %{qt5dir}/bin/lrelease-pro |
aef3a5d0 | 502 | %attr(755,root,root) %{qt5dir}/bin/lupdate |
acba123d | 503 | %attr(755,root,root) %{qt5dir}/bin/lupdate-pro |
64b210ea JB |
504 | %{_datadir}/qt5/phrasebooks |
505 | %{_libdir}/cmake/Qt5LinguistTools | |
506 | ||
507 | %files -n qt5-qdbus | |
508 | %defattr(644,root,root,755) | |
509 | %attr(755,root,root) %{_bindir}/qdbus-qt5 | |
510 | %attr(755,root,root) %{_bindir}/qdbusviewer-qt5 | |
aef3a5d0 JB |
511 | %attr(755,root,root) %{qt5dir}/bin/qdbus |
512 | %attr(755,root,root) %{qt5dir}/bin/qdbusviewer | |
64b210ea | 513 | |
64b210ea JB |
514 | %files -n Qt5Designer |
515 | %defattr(644,root,root,755) | |
516 | %attr(755,root,root) %{_libdir}/libQt5Designer.so.*.*.* | |
517 | %attr(755,root,root) %ghost %{_libdir}/libQt5Designer.so.5 | |
518 | %attr(755,root,root) %{_libdir}/libQt5DesignerComponents.so.*.*.* | |
519 | %attr(755,root,root) %ghost %{_libdir}/libQt5DesignerComponents.so.5 | |
aef3a5d0 | 520 | |
aef3a5d0 | 521 | %dir %{qt5dir}/plugins/designer |
aef3a5d0 | 522 | |
c8acbcc4 JB |
523 | # common for base -devel and plugin-specific files (from other source packages) |
524 | %dir %{_libdir}/cmake/Qt5Designer | |
525 | ||
64b210ea | 526 | %files -n Qt5Designer-devel |
cf6f2f73 | 527 | %defattr(644,root,root,755) |
cf6f2f73 WF |
528 | %attr(755,root,root) %{_libdir}/libQt5Designer.so |
529 | %attr(755,root,root) %{_libdir}/libQt5DesignerComponents.so | |
cf6f2f73 WF |
530 | %{_libdir}/libQt5Designer.prl |
531 | %{_libdir}/libQt5DesignerComponents.prl | |
cf6f2f73 WF |
532 | %{_includedir}/qt5/QtDesigner |
533 | %{_includedir}/qt5/QtDesignerComponents | |
aef3a5d0 | 534 | %{_pkgconfigdir}/Qt5Designer.pc |
c8acbcc4 | 535 | %{_libdir}/cmake/Qt5Designer/Qt5DesignerConfig*.cmake |
47e17e3e JP |
536 | %dir %{_libdir}/cmake/Qt5DesignerComponents |
537 | %{_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfig.cmake | |
538 | %{_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfigVersion.cmake | |
aef3a5d0 JB |
539 | %{qt5dir}/mkspecs/modules/qt_lib_designer.pri |
540 | %{qt5dir}/mkspecs/modules/qt_lib_designer_private.pri | |
541 | %{qt5dir}/mkspecs/modules/qt_lib_designercomponents_private.pri | |
64b210ea | 542 | |
c0873864 JB |
543 | %if %{with qtdeclarative} |
544 | %files -n Qt5Designer-plugin-qquickwidget | |
545 | %defattr(644,root,root,755) | |
546 | %attr(755,root,root) %{qt5dir}/plugins/designer/libqquickwidget.so | |
547 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QQuickWidgetPlugin.cmake | |
548 | %endif | |
549 | ||
550 | %if %{with qtwebkit} | |
551 | %files -n Qt5Designer-plugin-qwebview | |
552 | %defattr(644,root,root,755) | |
553 | %attr(755,root,root) %{qt5dir}/plugins/designer/libqwebview.so | |
554 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebViewPlugin.cmake | |
555 | %endif | |
556 | ||
557 | %files -n Qt5Help -f qt_help.lang | |
64b210ea JB |
558 | %defattr(644,root,root,755) |
559 | %attr(755,root,root) %{_libdir}/libQt5Help.so.*.*.* | |
560 | %attr(755,root,root) %ghost %{_libdir}/libQt5Help.so.5 | |
561 | ||
562 | %files -n Qt5Help-devel | |
563 | %defattr(644,root,root,755) | |
564 | %attr(755,root,root) %{_libdir}/libQt5Help.so | |
565 | %{_libdir}/libQt5Help.prl | |
566 | %{_includedir}/qt5/QtHelp | |
567 | %{_pkgconfigdir}/Qt5Help.pc | |
568 | %{_libdir}/cmake/Qt5Help | |
aef3a5d0 JB |
569 | %{qt5dir}/mkspecs/modules/qt_lib_help.pri |
570 | %{qt5dir}/mkspecs/modules/qt_lib_help_private.pri | |
64b210ea JB |
571 | |
572 | %files -n Qt5UiTools-devel | |
573 | %defattr(644,root,root,755) | |
574 | # static-only | |
575 | %{_libdir}/libQt5UiTools.a | |
576 | %{_libdir}/libQt5UiTools.prl | |
47e17e3e | 577 | %{_libdir}/libQt5UiPlugin.prl |
dcef4998 | 578 | %{_includedir}/qt5/QtUiPlugin |
64b210ea | 579 | %{_includedir}/qt5/QtUiTools |
47e17e3e | 580 | %{_pkgconfigdir}/Qt5UiPlugin.pc |
64b210ea | 581 | %{_pkgconfigdir}/Qt5UiTools.pc |
dcef4998 | 582 | %{_libdir}/cmake/Qt5UiPlugin |
64b210ea | 583 | %{_libdir}/cmake/Qt5UiTools |
dcef4998 | 584 | %{qt5dir}/mkspecs/modules/qt_lib_uiplugin.pri |
aef3a5d0 JB |
585 | %{qt5dir}/mkspecs/modules/qt_lib_uitools.pri |
586 | %{qt5dir}/mkspecs/modules/qt_lib_uitools_private.pri | |
cf6f2f73 WF |
587 | |
588 | %files examples -f examples.files | |
343ad397 | 589 | %defattr(644,root,root,755) |
aef3a5d0 JB |
590 | # XXX: dir shared with qt5-qtbase-examples |
591 | %dir %{_examplesdir}/qt5 | |
cf6f2f73 | 592 | |
8fb6692c | 593 | %if %{with doc} |
cf6f2f73 WF |
594 | %files doc |
595 | %defattr(644,root,root,755) | |
6212ebec | 596 | %{_docdir}/qt5-doc/qdoc |
aef3a5d0 JB |
597 | %{_docdir}/qt5-doc/qtassistant |
598 | %{_docdir}/qt5-doc/qtdesigner | |
6212ebec | 599 | %{_docdir}/qt5-doc/qtdistancefieldgenerator |
aef3a5d0 JB |
600 | %{_docdir}/qt5-doc/qthelp |
601 | %{_docdir}/qt5-doc/qtlinguist | |
602 | %{_docdir}/qt5-doc/qtuitools | |
170cf102 | 603 | |
170cf102 JB |
604 | %files doc-qch |
605 | %defattr(644,root,root,755) | |
6212ebec | 606 | %{_docdir}/qt5-doc/qdoc.qch |
170cf102 JB |
607 | %{_docdir}/qt5-doc/qtassistant.qch |
608 | %{_docdir}/qt5-doc/qtdesigner.qch | |
6212ebec | 609 | %{_docdir}/qt5-doc/qtdistancefieldgenerator.qch |
170cf102 JB |
610 | %{_docdir}/qt5-doc/qthelp.qch |
611 | %{_docdir}/qt5-doc/qtlinguist.qch | |
612 | %{_docdir}/qt5-doc/qtuitools.qch | |
613 | %endif |