]>
Commit | Line | Data |
---|---|---|
daa4415e JB |
1 | # |
2 | # Conditional build: | |
de8a9faa | 3 | %bcond_without doc # Documentation |
daa4415e JB |
4 | |
5 | %define orgname qtwebengine | |
6 | %define qtbase_ver %{version} | |
7 | %define qtdeclarative_ver %{version} | |
8 | %define qttools_ver %{version} | |
9 | %define qtwebchannel_ver %{version} | |
10 | Summary: The Qt5 WebEngine library | |
11 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
12 | Name: qt5-%{orgname} | |
7ed59526 | 13 | Version: 5.11.1 |
daa4415e JB |
14 | Release: 0.1 |
15 | License: LGPL v3 or GPL v2+ or commercial | |
16 | Group: X11/Libraries | |
7ed59526 AM |
17 | Source0: http://download.qt.io/official_releases/qt/5.11/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
18 | # Source0-md5: 75d2ff31addba4ec41981b0f459cc587 | |
abfabd27 | 19 | Patch0: remove-compiler-check.patch |
daa4415e JB |
20 | URL: http://www.qt.io/ |
21 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} | |
22 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
23 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
24 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
25 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
26 | BuildRequires: Qt5WebChannel-devel >= %{qtwebchannel_ver} | |
27 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
de8a9faa | 28 | %if %{with doc} |
daa4415e JB |
29 | BuildRequires: qt5-assistant >= %{qttools_ver} |
30 | %endif | |
31 | BuildRequires: qt5-build >= %{qtbase_ver} | |
32 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
33 | BuildRequires: rpmbuild(macros) >= 1.654 | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xz | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %define specflags -fno-strict-aliasing | |
39 | %define qt5dir %{_libdir}/qt5 | |
40 | ||
41 | %description | |
42 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
43 | write web-enabled applications once and deploy them across desktop, | |
44 | mobile and embedded systems without rewriting the source code. | |
45 | ||
46 | This package contains Qt5 WebEngine library. | |
47 | ||
48 | %description -l pl.UTF-8 | |
49 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
50 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
51 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
52 | źródłowego. | |
53 | ||
54 | Ten pakiet zawiera bibliotekę Qt5 WebEngine. | |
55 | ||
56 | %package -n Qt5WebEngine | |
57 | Summary: The Qt5 WebEngine library | |
58 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
59 | Group: Libraries | |
60 | Requires: Qt5Core >= %{qtbase_ver} | |
61 | Requires: Qt5Network >= %{qtbase_ver} | |
62 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
63 | ||
64 | %description -n Qt5WebEngine | |
65 | Qt5 WebEngine library provides seamless integration of C++ and QML | |
66 | applications with HTML/JavaScript clients. | |
67 | ||
68 | %description -n Qt5WebEngine -l pl.UTF-8 | |
69 | Biblioteka Qt5 WebEngine udostępnia integrację aplikacji C++ i QML z | |
70 | klientami w HTML-u/JavaScripcie. | |
71 | ||
72 | %package -n Qt5WebEngine-devel | |
73 | Summary: Qt5 WebEngine library - development files | |
74 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine - pliki programistyczne | |
75 | Group: Development/Libraries | |
76 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
77 | Requires: Qt5Network-devel >= %{qtbase_ver} | |
78 | Requires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
79 | Requires: Qt5WebEngine = %{version}-%{release} | |
80 | ||
81 | %description -n Qt5WebEngine-devel | |
82 | Qt5 WebEngine library - development files. | |
83 | ||
84 | %description -n Qt5WebEngine-devel -l pl.UTF-8 | |
85 | Biblioteka Qt5 WebEngine - pliki programistyczne. | |
86 | ||
87 | %package doc | |
88 | Summary: Qt5 WebEngine documentation in HTML format | |
89 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML | |
90 | Group: Documentation | |
91 | Requires: qt5-doc-common >= %{qtbase_ver} | |
92 | %if "%{_rpmversion}" >= "5" | |
93 | BuildArch: noarch | |
94 | %endif | |
95 | ||
96 | %description doc | |
97 | Qt5 WebEngine documentation in HTML format. | |
98 | ||
99 | %description doc -l pl.UTF-8 | |
100 | Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML. | |
101 | ||
102 | %package doc-qch | |
103 | Summary: Qt5 WebEngine documentation in QCH format | |
104 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH | |
105 | Group: Documentation | |
106 | Requires: qt5-doc-common >= %{qtbase_ver} | |
107 | %if "%{_rpmversion}" >= "5" | |
108 | BuildArch: noarch | |
109 | %endif | |
110 | ||
111 | %description doc-qch | |
112 | Qt5 WebEngine documentation in QCH format. | |
113 | ||
114 | %description doc-qch -l pl.UTF-8 | |
115 | Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH. | |
116 | ||
117 | %package examples | |
118 | Summary: Qt5 WebEngine examples | |
119 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 WebEngine | |
120 | Group: X11/Development/Libraries | |
121 | %if "%{_rpmversion}" >= "5" | |
122 | BuildArch: noarch | |
123 | %endif | |
124 | ||
125 | %description examples | |
126 | Qt5 WebEngine examples. | |
127 | ||
128 | %description examples -l pl.UTF-8 | |
129 | Przykłady do biblioteki Qt5 WebEngine. | |
130 | ||
131 | %prep | |
7ed59526 | 132 | %setup -q -n %{orgname}-everywhere-src-%{version} |
abfabd27 | 133 | %patch0 -p1 |
daa4415e JB |
134 | |
135 | %build | |
136 | qmake-qt5 | |
7ed59526 AM |
137 | %{__make} \ |
138 | QMAKE_CXX="g++" | |
de8a9faa | 139 | %{?with_doc:%{__make} docs} |
daa4415e JB |
140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | %{__make} install \ | |
144 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
145 | ||
de8a9faa JR |
146 | %if %{with doc} |
147 | %{__make} install_docs \ | |
daa4415e | 148 | INSTALL_ROOT=$RPM_BUILD_ROOT |
de8a9faa | 149 | %endif |
daa4415e JB |
150 | |
151 | # useless symlinks | |
7ed59526 | 152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
daa4415e JB |
153 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
155 | ||
156 | # Prepare some files list | |
157 | ifecho() { | |
158 | r="$RPM_BUILD_ROOT$2" | |
159 | if [ -d "$r" ]; then | |
160 | echo "%%dir $2" >> $1.files | |
161 | elif [ -x "$r" ] ; then | |
162 | echo "%%attr(755,root,root) $2" >> $1.files | |
163 | elif [ -f "$r" ]; then | |
164 | echo "$2" >> $1.files | |
165 | else | |
166 | echo "Error generation $1 files list!" | |
167 | echo "$r: no such file or directory!" | |
168 | return 1 | |
169 | fi | |
170 | } | |
171 | ifecho_tree() { | |
172 | ifecho $1 $2 | |
173 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
174 | ifecho $1 $2/$f | |
175 | done | |
176 | } | |
177 | ||
178 | echo "%defattr(644,root,root,755)" > examples.files | |
179 | ifecho_tree examples %{_examplesdir}/qt5/qwebengine | |
180 | ifecho_tree examples %{_examplesdir}/qt5/webengine | |
181 | ||
182 | %clean | |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
185 | %post -n Qt5WebEngine -p /sbin/ldconfig | |
186 | %postun -n Qt5WebEngine -p /sbin/ldconfig | |
187 | ||
188 | %files -n Qt5WebEngine | |
189 | %defattr(644,root,root,755) | |
190 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so.*.*.* | |
191 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngine.so.5 | |
192 | %dir %{qt5dir}/qml/QtWebEngine | |
193 | %attr(755,root,root) %{qt5dir}/qml/QtWebEngine/libdeclarative_webengine.so | |
194 | %{qt5dir}/qml/QtWebEngine/plugins.qmltypes | |
195 | %{qt5dir}/qml/QtWebEngine/qmldir | |
196 | ||
197 | %files -n Qt5WebEngine-devel | |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so | |
200 | %{_libdir}/libQt5WebEngine.prl | |
201 | %{_includedir}/qt5/QtWebEngine | |
202 | %{_pkgconfigdir}/Qt5WebEngine.pc | |
203 | %{_libdir}/cmake/Qt5WebEngine | |
204 | %{qt5dir}/mkspecs/modules/qt_lib_webengine.pri | |
205 | %{qt5dir}/mkspecs/modules/qt_lib_webengine_private.pri | |
206 | ||
de8a9faa | 207 | %if %{with doc} |
daa4415e JB |
208 | %files doc |
209 | %defattr(644,root,root,755) | |
210 | %{_docdir}/qt5-doc/qtwebengine | |
211 | ||
daa4415e JB |
212 | %files doc-qch |
213 | %defattr(644,root,root,755) | |
214 | %{_docdir}/qt5-doc/qtwebengine.qch | |
215 | %endif | |
216 | ||
217 | %files examples -f examples.files | |
218 | %defattr(644,root,root,755) | |
219 | # XXX: dir shared with qt5-qtbase-examples | |
220 | %dir %{_examplesdir}/qt5 |