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