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