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