2 # - brcm_egl, libhybris_egl_server
3 # - enable docs & examples when ready upstream
4 # - QtCompositor API (CONFIG+=wayland-compositor)?
7 %bcond_with qch # documentation in QCH format [TODO: enable when docs exist]
9 %define orgname qtwayland
10 %define qtbase_ver %{version}
11 %define qtdeclarative_ver %{version}
12 %define qttools_ver %{version}
13 Summary: The Qt5 Wayland libraries
14 Summary(pl.UTF-8): Biblioteki Qt5 Wayland
18 License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0
20 Source0: http://download.qt.io/official_releases/qt/5.4/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
21 # Source0-md5: a132295b896062d21ded0937a56d22a3
22 URL: http://qt-project.org/
23 BuildRequires: EGL-devel
24 BuildRequires: Mesa-libwayland-egl-devel
25 BuildRequires: OpenGL-GLX-devel
26 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
27 BuildRequires: Qt5PlatformSupport-devel >= %{qtbase_ver}
28 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
29 BuildRequires: pkgconfig
31 BuildRequires: qt5-assistant >= %{qttools_ver}
33 BuildRequires: qt5-build >= %{qtbase_ver}
34 BuildRequires: qt5-qmake >= %{qtbase_ver}
35 BuildRequires: rpmbuild(macros) >= 1.654
36 BuildRequires: tar >= 1:1.22
37 BuildRequires: wayland-devel >= 1.2.0
38 BuildRequires: xorg-lib-libXcomposite-devel
39 BuildRequires: xorg-lib-libxkbcommon-devel >= 0.2.0
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define specflags -fno-strict-aliasing
44 %define qt5dir %{_libdir}/qt5
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.
51 This package contains Qt5 Wayland libraries.
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
59 Ten pakiet zawiera biblioteki Qt5 Wayland.
61 %package -n Qt5WaylandClient
62 Summary: The Qt5 WaylandClient library
63 Summary(pl.UTF-8): Biblioteka Qt5 WaylandClient
65 Requires: Qt5Core >= %{qtbase_ver}
66 Requires: Qt5Gui >= %{qtbase_ver}
68 %description -n Qt5WaylandClient
69 Qt5 WaylandClient library enables Qt applications to be run as Wayland
72 %description -n Qt5WaylandClient -l pl.UTF-8
73 Biblioteka Qt5 WaylandClient pozwala na uruchamianie aplikacji Qt jako
76 %package -n Qt5WaylandClient-devel
77 Summary: Qt5 WaylandClient library - development files
78 Summary(pl.UTF-8): Biblioteka Qt5 WaylandClient - pliki programistyczne
79 Group: Development/Libraries
80 Requires: Qt5Core-devel >= %{qtbase_ver}
81 Requires: Qt5DBus-devel >= %{qtbase_ver}
82 Requires: Qt5Gui-devel >= %{qtbase_ver}
83 Requires: Qt5PlatformSupport-devel >= %{qtbase_ver}
84 Requires: Qt5WaylandClient = %{version}-%{release}
85 Requires: wayland-devel
86 Requires: xorg-lib-libxkbcommon-devel
88 %description -n Qt5WaylandClient-devel
89 Qt5 WaylandClient library - development files.
91 %description -n Qt5WaylandClient-devel -l pl.UTF-8
92 Biblioteka Qt5 WaylandClient - pliki programistyczne.
95 Summary: Qt5 Wayland documentation in HTML format
96 Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 Wayland w formacie HTML
98 Requires: qt5-doc-common >= %{qtbase_ver}
99 %if "%{_rpmversion}" >= "5"
104 Qt5 Wayland documentation in HTML format.
106 %description doc -l pl.UTF-8
107 Dokumentacja do bibliotek Qt5 Wayland w formacie HTML.
110 Summary: Qt5 Wayland documentation in QCH format
111 Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 Wayland w formacie QCH
113 Requires: qt5-doc-common >= %{qtbase_ver}
114 %if "%{_rpmversion}" >= "5"
119 Qt5 Wayland documentation in QCH format.
121 %description doc-qch -l pl.UTF-8
122 Dokumentacja do bibliotek Qt5 Wayland w formacie QCH.
125 Summary: Qt5 Wayland examples
126 Summary(pl.UTF-8): Przykłady do bibliotek Qt5 Wayland
127 Group: X11/Development/Libraries
128 %if "%{_rpmversion}" >= "5"
132 %description examples
133 Qt5 Wayland examples.
135 %description examples -l pl.UTF-8
136 Przykłady do bibliotek Qt5 Wayland.
139 %setup -q -n %{orgname}-opensource-src-%{version}
144 %{__make} %{!?with_qch:html_}docs
147 rm -rf $RPM_BUILD_ROOT
149 INSTALL_ROOT=$RPM_BUILD_ROOT
151 %{__make} install_%{!?with_qch:html_}docs \
152 INSTALL_ROOT=$RPM_BUILD_ROOT
155 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5WaylandClient.so.5.?
156 # actually drop *.la, follow policy of not packaging them when *.pc exist
157 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5WaylandClient.la
159 # no proper cmake support as of 5.4.1
160 %{__rm} $RPM_BUILD_ROOT%{_libdir}/cmake/{Qt5Gui/Qt5Gui_,Qt5WaylandClient/Qt5WaylandClient_}.cmake
162 # Prepare some files list
164 r="$RPM_BUILD_ROOT$2"
166 echo "%%dir $2" >> $1.files
167 elif [ -x "$r" ] ; then
168 echo "%%attr(755,root,root) $2" >> $1.files
169 elif [ -f "$r" ]; then
170 echo "$2" >> $1.files
172 echo "Error generation $1 files list!"
173 echo "$r: no such file or directory!"
179 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
184 # examples not enabled in sources as of 5.4.1
185 #echo "%defattr(644,root,root,755)" > examples.files
186 #ifecho_tree examples %{_examplesdir}/qt5/enginio
189 rm -rf $RPM_BUILD_ROOT
191 %post -n Qt5WaylandClient -p /sbin/ldconfig
192 %postun -n Qt5WaylandClient -p /sbin/ldconfig
194 %files -n Qt5WaylandClient
195 %defattr(644,root,root,755)
196 %doc LGPL_EXCEPTION.txt README
198 %attr(755,root,root) %{_libdir}/libQt5WaylandClient.so.*.*.*
199 %attr(755,root,root) %ghost %{_libdir}/libQt5WaylandClient.so.5
200 %attr(755,root,root) %{qt5dir}/bin/qtwaylandscanner
201 %attr(755,root,root) %{qt5dir}/plugins/platforms/libqwayland-egl.so
202 %attr(755,root,root) %{qt5dir}/plugins/platforms/libqwayland-generic.so
203 %dir %{qt5dir}/plugins/wayland-decoration-client
204 %attr(755,root,root) %{qt5dir}/plugins/wayland-decoration-client/libbradient.so
205 %dir %{qt5dir}/plugins/wayland-graphics-integration-client
206 %attr(755,root,root) %{qt5dir}/plugins/wayland-graphics-integration-client/libdrm-egl-server.so
207 %attr(755,root,root) %{qt5dir}/plugins/wayland-graphics-integration-client/libwayland-egl.so
208 %attr(755,root,root) %{qt5dir}/plugins/wayland-graphics-integration-client/libxcomposite-egl.so
209 %attr(755,root,root) %{qt5dir}/plugins/wayland-graphics-integration-client/libxcomposite-glx.so
211 %files -n Qt5WaylandClient-devel
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/libQt5WaylandClient.so
214 %{_libdir}/libQt5WaylandClient.prl
215 %{_includedir}/qt5/QtWaylandClient
216 %{_pkgconfigdir}/Qt5WaylandClient.pc
218 #%{_libdir}/cmake/Qt5Gui/Qt5Gui_???.cmake
219 #%{_libdir}/cmake/Qt5WaylandClient
220 %{qt5dir}/mkspecs/modules/qt_lib_waylandclient.pri
221 %{qt5dir}/mkspecs/modules/qt_lib_waylandclient_private.pri
226 %defattr(644,root,root,755)
227 %{_docdir}/qt5-doc/qtenginio
228 %{_docdir}/qt5-doc/qtenginiooverview
229 %{_docdir}/qt5-doc/qtenginioqml
233 %defattr(644,root,root,755)
234 %{_docdir}/qt5-doc/qtenginio.qch
235 %{_docdir}/qt5-doc/qtenginiooverview.qch
236 %{_docdir}/qt5-doc/qtenginioqml.qch
242 %files examples -f examples.files
243 %defattr(644,root,root,755)
244 # XXX: dir shared with qt5-qtbase-examples
245 %dir %{_examplesdir}/qt5