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