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