]>
Commit | Line | Data |
---|---|---|
e72d7530 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without qch # documentation in QCH format | |
5f4e244e WF |
4 | |
5 | %define orgname qtquick1 | |
e72d7530 JB |
6 | %define qtbase_ver %{version} |
7 | %define qtdeclarative_ver %{version} | |
8 | %define qtscript_ver %{version} | |
9 | %define qttools_ver %{version} | |
b38c66d9 | 10 | %define qtwebkit_ver %{version} |
e72d7530 JB |
11 | %define qtxmlpatterns_ver %{version} |
12 | Summary: The Qt5 Quick1 (Qt5Declarative) library | |
13 | Summary(pl.UTF-8): Biblioteka Qt5 Quick1 (Qt5Declarative) | |
5f4e244e | 14 | Name: qt5-%{orgname} |
208a491e JB |
15 | Version: 5.3.0 |
16 | Release: 1 | |
9170304d | 17 | License: LGPL v2 with Digia Qt LGPL Exception v1.1 or GPL v3 |
5f4e244e | 18 | Group: X11/Libraries |
208a491e JB |
19 | Source0: http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz |
20 | # Source0-md5: cd6ffd4a29f7050f71670e7afec09e5d | |
5f4e244e | 21 | URL: http://qt-project.org/ |
208a491e JB |
22 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
23 | BuildRequires: Qt5Designer-devel >= %{qttools_ver} | |
24 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
25 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
26 | BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver} | |
27 | BuildRequires: Qt5Script-devel >= %{qtscript_ver} | |
28 | BuildRequires: Qt5Sql-devel >= %{qtbase_ver} | |
b38c66d9 | 29 | BuildRequires: Qt5WebKit-devel >= %{qtwebkit_ver} |
208a491e JB |
30 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} |
31 | BuildRequires: Qt5XmlPatterns-devel >= %{qtxmlpatterns_ver} | |
e72d7530 JB |
32 | %if %{with qch} |
33 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
34 | %endif | |
208a491e JB |
35 | BuildRequires: qt5-build >= %{qtbase_ver} |
36 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
5f4e244e | 37 | BuildRequires: rpmbuild(macros) >= 1.654 |
208a491e | 38 | BuildRequires: sed >= 4.0 |
83b037e3 ER |
39 | BuildRequires: tar >= 1:1.22 |
40 | BuildRequires: xz | |
5f4e244e WF |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
5f4e244e | 43 | %define specflags -fno-strict-aliasing |
e72d7530 | 44 | %define qt5dir %{_libdir}/qt5 |
5f4e244e WF |
45 | |
46 | %description | |
e72d7530 JB |
47 | Qt is a cross-platform application and UI framework. Using Qt, you can |
48 | write web-enabled applications once and deploy them across desktop, | |
49 | mobile and embedded systems without rewriting the source code. | |
50 | ||
51 | This package contains Qt5 Quick1 (Qt5Declarative) library. | |
5f4e244e | 52 | |
e72d7530 JB |
53 | %description -l pl.UTF-8 |
54 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
55 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
56 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
57 | źródłowego. | |
58 | ||
59 | Ten pakiet zawiera bibliotekę Qt5 Quick1 (Qt5Declarative). | |
60 | ||
61 | %package -n Qt5Declarative | |
62 | Summary: The Qt5 Quick1 (Qt5Declarative) library | |
63 | Summary(pl.UTF-8): Biblioteka Qt5 Quick1 (Qt5Declarative) | |
64 | Group: X11/Libraries | |
65 | Requires: Qt5Core >= %{qtbase_ver} | |
208a491e JB |
66 | Requires: Qt5Gui >= %{qtbase_ver} |
67 | Requires: Qt5Network >= %{qtbase_ver} | |
68 | Requires: Qt5Script >= %{qtscript_ver} | |
69 | Requires: Qt5Sql >= %{qtbase_ver} | |
70 | Requires: Qt5Widgets >= %{qtbase_ver} | |
71 | Requires: Qt5XmlPatterns >= %{qtxmlpatterns_ver} | |
e72d7530 JB |
72 | Obsoletes: qt5-qtquick1 |
73 | ||
74 | %description -n Qt5Declarative | |
208a491e JB |
75 | Qt5 Quick1 (Qt5Declarative) library - an older version of Quick |
76 | library. | |
e72d7530 JB |
77 | |
78 | %description -n Qt5Declarative -l pl.UTF-8 | |
208a491e JB |
79 | Biblioteka Qt5 Quick1 (Qt5Declarative) - starsza wersja biblioteki |
80 | Quick. | |
e72d7530 JB |
81 | |
82 | %package -n Qt5Declarative-devel | |
83 | Summary: Qt5 Quick1 (Qt5Declarative) library - development files | |
84 | Summary(pl.UTF-8): Biblioteka Qt5 Quick1 (Qt5Declarative) - pliki programistyczne | |
5f4e244e | 85 | Group: X11/Development/Libraries |
208a491e JB |
86 | Requires: OpenGL-devel |
87 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
a790c4ce | 88 | Requires: Qt5Declarative = %{version}-%{release} |
208a491e JB |
89 | Requires: Qt5Gui-devel >= %{qtbase_ver} |
90 | Requires: Qt5Network-devel >= %{qtbase_ver} | |
91 | Requires: Qt5Script-devel >= %{qtscript_ver} | |
92 | Requires: Qt5Sql-devel >= %{qtbase_ver} | |
93 | Requires: Qt5Widgets-devel >= %{qtbase_ver} | |
94 | Requires: Qt5XmlPatterns-devel >= %{qtxmlpatterns_ver} | |
e72d7530 | 95 | Obsoletes: qt5-qtquick1-devel |
5f4e244e | 96 | |
e72d7530 JB |
97 | %description -n Qt5Declarative-devel |
98 | Qt5 Quick1 (Qt5Declarative) library - development files. | |
99 | ||
100 | %description -n Qt5Declarative-devel -l pl.UTF-8 | |
101 | Biblioteka Qt5 Quick1 (Qt5Declarative) - pliki programistyczne. | |
5f4e244e | 102 | |
b38c66d9 JB |
103 | %package -n Qt5Declarative-webkit |
104 | Summary: WebKit plugin for Qt5 Quick1 library | |
105 | Summary(pl.UTF-8): Wtyczka WebKit dla biblioteki Qt5 Quick1 | |
106 | Group: X11/Libraries | |
107 | Requires: Qt5Declarative = %{version}-%{release} | |
108 | Requires: Qt5WebKit >= %{qtwebkit_ver} | |
109 | ||
110 | %description -n Qt5Declarative-webkit | |
111 | WebKit plugin for Qt5 Quick1 library. | |
112 | ||
113 | %description -n Qt5Declarative-webkit -l pl.UTF-8 | |
114 | Wtyczka WebKit dla biblioteki Qt5 Quick1. | |
115 | ||
208a491e JB |
116 | %package -n Qt5Designer-qdeclarativeview |
117 | Summary: QDeclarativeView (Quick1) plugin for Qt5 Designer | |
118 | Summary(pl.UTF-8): Wtyczka QDeclarativeView (Quick1) dla Qt5 Designera | |
119 | Group: X11/Libraries | |
120 | Requires: Qt5Declarative = %{version}-%{release} | |
121 | Requires: Qt5Designer >= %{qttools_ver} | |
122 | Requires: Qt5Widgets >= %{qtbase_ver} | |
123 | ||
124 | %description -n Qt5Designer-qdeclarativeview | |
125 | QDeclarativeView (Quick1) plugin for Qt5 Designer. | |
126 | ||
127 | %description -n Qt5Designer-qdeclarativeview -l pl.UTF-8 | |
128 | Wtyczka QDeclarativeView (Quick1) dla Qt5 Designera. | |
129 | ||
5f4e244e | 130 | %package doc |
e72d7530 JB |
131 | Summary: Qt5 Quick1 (Qt5Declarative) documentation in HTML format |
132 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick1 (Qt5Declarative) w formacie HTML | |
5f4e244e | 133 | Group: Documentation |
a790c4ce | 134 | Requires: qt5-doc-common >= %{qtbase_ver} |
83b037e3 ER |
135 | %if "%{_rpmversion}" >= "5" |
136 | BuildArch: noarch | |
137 | %endif | |
5f4e244e WF |
138 | |
139 | %description doc | |
e72d7530 JB |
140 | Qt5 Quick1 (Qt5Declarative) documentation in HTML format. |
141 | ||
142 | %description doc -l pl.UTF-8 | |
143 | Dokumentacja do biblioteki Qt5 Quick1 (Qt5Declarative) w formacie | |
144 | HTML. | |
145 | ||
146 | %package doc-qch | |
147 | Summary: Qt5 Quick1 (Qt5Declarative) documentation in QCH format | |
148 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick1 (Qt5Declarative) w formacie QCH | |
149 | Group: Documentation | |
150 | Requires: qt5-doc-common >= %{qtbase_ver} | |
151 | %if "%{_rpmversion}" >= "5" | |
152 | BuildArch: noarch | |
153 | %endif | |
154 | ||
155 | %description doc-qch | |
156 | Qt5 Quick1 (Qt5Declarative) documentation in QCH format. | |
157 | ||
158 | %description doc-qch -l pl.UTF-8 | |
159 | Dokumentacja do biblioteki Qt5 Quick1 (Qt5Declarative) w formacie QCH. | |
5f4e244e WF |
160 | |
161 | %package examples | |
e72d7530 JB |
162 | Summary: Qt5 Quick1 (Qt5Declarative) examples |
163 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Quick1 (Qt5Declarative) | |
5f4e244e | 164 | Group: X11/Development/Libraries |
83b037e3 ER |
165 | %if "%{_rpmversion}" >= "5" |
166 | BuildArch: noarch | |
167 | %endif | |
5f4e244e WF |
168 | |
169 | %description examples | |
e72d7530 JB |
170 | Qt5 Quick1 (Qt5Declarative) examples. |
171 | ||
172 | %description examples -l pl.UTF-8 | |
173 | Przykłady do biblioteki Qt5 Quick1 (Qt5Declarative). | |
5f4e244e WF |
174 | |
175 | %prep | |
176 | %setup -q -n %{orgname}-opensource-src-%{version} | |
177 | ||
208a491e JB |
178 | # enable docs |
179 | %{__sed} -i -e '/^# SUBDIRS += doc/s/^# //' src/src.pro | |
180 | ||
5f4e244e WF |
181 | %build |
182 | qmake-qt5 | |
183 | %{__make} | |
e72d7530 | 184 | %{__make} %{!?with_qch:html_}docs |
5f4e244e WF |
185 | |
186 | %install | |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | %{__make} install \ | |
189 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
190 | ||
e72d7530 | 191 | %{__make} install_%{!?with_qch:html_}docs \ |
5f4e244e WF |
192 | INSTALL_ROOT=$RPM_BUILD_ROOT |
193 | ||
e72d7530 JB |
194 | # useless symlinks |
195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.? | |
196 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
198 | ||
208a491e JB |
199 | # symlinks in system bin dir |
200 | install -d $RPM_BUILD_ROOT%{_bindir} | |
201 | for f in qml1plugindump qmlviewer ; do | |
202 | ln -sf ../%{_lib}/qt5/bin/$f $RPM_BUILD_ROOT%{_bindir}/${f}-qt5 | |
203 | done | |
204 | ||
5f4e244e WF |
205 | # Prepare some files list |
206 | ifecho() { | |
208a491e | 207 | r="$RPM_BUILD_ROOT$2" |
5f4e244e WF |
208 | if [ -d "$r" ]; then |
209 | echo "%%dir $2" >> $1.files | |
210 | elif [ -x "$r" ] ; then | |
211 | echo "%%attr(755,root,root) $2" >> $1.files | |
212 | elif [ -f "$r" ]; then | |
213 | echo "$2" >> $1.files | |
214 | else | |
215 | echo "Error generation $1 files list!" | |
216 | echo "$r: no such file or directory!" | |
217 | return 1 | |
218 | fi | |
219 | } | |
208a491e JB |
220 | ifecho_tree() { |
221 | ifecho $1 $2 | |
222 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
223 | ifecho $1 $2/$f | |
224 | done | |
225 | } | |
5f4e244e WF |
226 | |
227 | echo "%defattr(644,root,root,755)" > examples.files | |
208a491e | 228 | ifecho_tree examples %{_examplesdir}/qt5/declarative |
5f4e244e WF |
229 | |
230 | %clean | |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
e72d7530 JB |
233 | %post -n Qt5Declarative -p /sbin/ldconfig |
234 | %postun -n Qt5Declarative -p /sbin/ldconfig | |
5f4e244e | 235 | |
e72d7530 | 236 | %files -n Qt5Declarative |
5f4e244e | 237 | %defattr(644,root,root,755) |
208a491e | 238 | %doc LGPL_EXCEPTION.txt dist/changes-* |
e72d7530 JB |
239 | %attr(755,root,root) %{_libdir}/libQt5Declarative.so.*.*.* |
240 | %attr(755,root,root) %ghost %{_libdir}/libQt5Declarative.so.5 | |
208a491e JB |
241 | %attr(755,root,root) %{_bindir}/qml1plugindump-qt5 |
242 | %attr(755,root,root) %{_bindir}/qmlviewer-qt5 | |
243 | %attr(755,root,root) %{qt5dir}/bin/qml1plugindump | |
244 | %attr(755,root,root) %{qt5dir}/bin/qmlviewer | |
245 | %dir %{qt5dir}/imports | |
246 | %{qt5dir}/imports/builtins.qmltypes | |
247 | %dir %{qt5dir}/imports/Qt | |
248 | %dir %{qt5dir}/imports/Qt/labs | |
249 | %dir %{qt5dir}/imports/Qt/labs/folderlistmodel | |
250 | %attr(755,root,root) %{qt5dir}/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so | |
251 | %{qt5dir}/imports/Qt/labs/folderlistmodel/plugins.qmltypes | |
252 | %{qt5dir}/imports/Qt/labs/folderlistmodel/qmldir | |
253 | %dir %{qt5dir}/imports/Qt/labs/gestures | |
254 | %attr(755,root,root) %{qt5dir}/imports/Qt/labs/gestures/libqmlgesturesplugin.so | |
255 | %{qt5dir}/imports/Qt/labs/gestures/plugins.qmltypes | |
256 | %{qt5dir}/imports/Qt/labs/gestures/qmldir | |
257 | %dir %{qt5dir}/imports/Qt/labs/particles | |
258 | %attr(755,root,root) %{qt5dir}/imports/Qt/labs/particles/libqmlparticlesplugin.so | |
259 | %{qt5dir}/imports/Qt/labs/particles/plugins.qmltypes | |
260 | %{qt5dir}/imports/Qt/labs/particles/qmldir | |
261 | %dir %{qt5dir}/imports/Qt/labs/shaders | |
262 | %attr(755,root,root) %{qt5dir}/imports/Qt/labs/shaders/libqmlshadersplugin.so | |
263 | %{qt5dir}/imports/Qt/labs/shaders/plugins.qmltypes | |
264 | %{qt5dir}/imports/Qt/labs/shaders/qmldir | |
265 | %dir %{qt5dir}/plugins/qml1tooling | |
266 | %attr(755,root,root) %{qt5dir}/plugins/qml1tooling/libqmldbg_inspector.so | |
267 | %attr(755,root,root) %{qt5dir}/plugins/qml1tooling/libqmldbg_tcp_qtdeclarative.so | |
5f4e244e | 268 | |
e72d7530 | 269 | %files -n Qt5Declarative-devel |
5f4e244e WF |
270 | %defattr(644,root,root,755) |
271 | %attr(755,root,root) %{_libdir}/libQt5Declarative.so | |
5f4e244e | 272 | %{_libdir}/libQt5Declarative.prl |
5f4e244e | 273 | %{_includedir}/qt5/QtDeclarative |
e72d7530 | 274 | %{_pkgconfigdir}/Qt5Declarative.pc |
b38c66d9 JB |
275 | %dir %{_libdir}/cmake/Qt5Declarative |
276 | %{_libdir}/cmake/Qt5Declarative/Qt5DeclarativeConfig*.cmake | |
277 | %{_libdir}/cmake/Qt5Declarative/Qt5Declarative_QTcpServerConnection.cmake | |
278 | %{_libdir}/cmake/Qt5Declarative/Qt5Declarative_QtQuick1Plugin.cmake | |
208a491e JB |
279 | %{qt5dir}/mkspecs/modules/qt_lib_declarative.pri |
280 | %{qt5dir}/mkspecs/modules/qt_lib_declarative_private.pri | |
281 | ||
b38c66d9 JB |
282 | %files -n Qt5Declarative-webkit |
283 | %defattr(644,root,root,755) | |
284 | %dir %{qt5dir}/imports/QtWebKit | |
285 | %attr(755,root,root) %{qt5dir}/imports/QtWebKit/libqmlwebkitplugin.so | |
286 | %{qt5dir}/imports/QtWebKit/plugins.qmltypes | |
287 | %{qt5dir}/imports/QtWebKit/qmldir | |
288 | ||
208a491e JB |
289 | %files -n Qt5Designer-qdeclarativeview |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{qt5dir}/plugins/designer/libqdeclarativeview.so | |
292 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QDeclarativeViewPlugin.cmake | |
293 | ||
294 | %files doc | |
295 | %defattr(644,root,root,755) | |
296 | %{_docdir}/qt5-doc/qtdeclarative | |
297 | ||
298 | %if %{with qch} | |
299 | %files doc-qch | |
300 | %defattr(644,root,root,755) | |
301 | %{_docdir}/qt5-doc/qtdeclarative.qch | |
302 | %endif | |
5f4e244e WF |
303 | |
304 | %files examples -f examples.files | |
208a491e JB |
305 | # XXX: dir shared with qt5-qtbase-examples |
306 | %dir %{_examplesdir}/qt5 |