3 %bcond_without qch # documentation in QCH format
4 %bcond_without qm # QM translations
6 %define orgname qtconnectivity
7 %define qtbase_ver %{version}
8 %define qtdeclarative_ver %{version}
9 %define qttools_ver %{version}
10 Summary: The Qt5 Connectivity libraries
11 Summary(pl.UTF-8): Biblioteki Qt5 Connectivity
15 License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0
17 Source0: http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
18 # Source0-md5: 2693394de6dd97d3a054791cef77b928
19 Source1: http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/qttranslations-opensource-src-%{version}.tar.xz
20 # Source1-md5: d43878fc7a5b9fdee03039770dbac1fa
21 URL: http://qt-project.org/
22 BuildRequires: Qt5Concurrent-devel >= %{qtbase_ver}
23 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
24 BuildRequires: Qt5DBus-devel >= %{qtbase_ver}
25 BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver}
26 BuildRequires: bluez-libs-devel
28 BuildRequires: qt5-assistant >= %{qttools_ver}
30 BuildRequires: qt5-build >= %{qtbase_ver}
31 %{?with_qm:BuildRequires: qt5-linguist >= %{qttools_ver}}
32 BuildRequires: qt5-qmake >= %{qtbase_ver}
33 BuildRequires: rpmbuild(macros) >= 1.654
34 BuildRequires: tar >= 1:1.22
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define specflags -fno-strict-aliasing
39 %define qt5dir %{_libdir}/qt5
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.
46 This package contains Qt5 Connectivity libraries: Qt5Bluetooth and
49 %description -l pl.UTF-8
50 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
51 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
52 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
55 Ten pakiet zawiera biblioteki Qt5 Connectivity: Qt5Bluetooth i Qt5Nfc.
58 Summary: Common files used by all Qt5 Connectivity components
59 Summary(pl.UTF-8): Wspólne pliki wykorzystywane przez wszystkie komponenty Qt5 Connectivity
63 Common files used by all Qt5 Connectivity components.
65 %description common -l pl.UTF-8
66 Wspólne pliki wykorzystywane przez wszystkie komponenty Qt5
69 %package -n Qt5Bluetooth
70 Summary: Qt5 Bluetooth library
71 Summary(pl.UTF-8): Biblioteka Qt5 Bluetooth
73 Requires: %{name}-common = %{version}-%{release}
74 Requires: Qt5Core >= %{qtbase_ver}
75 Requires: Qt5DBus >= %{qtbase_ver}
76 Requires: Qt5Qml >= %{qtdeclarative_ver}
77 Obsoletes: qt5-qtconnectivity
79 %description -n Qt5Bluetooth
80 Qt5 Bluetooth library provides classes that enable basic Bluetooth
81 operations like scanning for devices and connecting them.
83 %description -n Qt5Bluetooth -l pl.UTF-8
84 Biblioteka Qt5 Bluetooth dostarcza klasy umożliwiające podstawowe
85 operacje Bluetooth, takie jak wyszukiwanie urządzeń i łączenie z nimi.
87 %package -n Qt5Bluetooth-devel
88 Summary: The Qt5 Bluetooth - development files
89 Summary(pl.UTF-8): Biblioteka Qt5 Bluetooth - pliki programistyczne
90 Group: Development/Libraries
91 Requires: Qt5Bluetooth = %{version}-%{release}
92 Requires: Qt5Core-devel >= %{qtbase_ver}
93 Requires: Qt5DBus-devel >= %{qtbase_ver}
94 Requires: Qt5Qml-devel >= %{qtdeclarative_ver}
95 Obsoletes: qt5-qtconnectivity-devel
97 %description -n Qt5Bluetooth-devel
98 The Qt5 Bluetooth - development files.
100 %description -n Qt5Bluetooth-devel -l pl.UTF-8
101 Biblioteka Qt5 Bluetooth - pliki programistyczne.
104 Summary: Qt5 Nfc library
105 Summary(pl.UTF-8): Biblioteka Qt5 Nfc
107 Requires: %{name}-common = %{version}-%{release}
108 Requires: Qt5Core >= %{qtbase_ver}
109 Requires: Qt5DBus >= %{qtbase_ver}
110 Requires: Qt5Qml >= %{qtdeclarative_ver}
111 Obsoletes: qt5-qtconnectivity
113 %description -n Qt5Nfc
114 Qt5 Nfc library provides classes to access NFC Forum Tags.
116 %description -n Qt5Nfc -l pl.UTF-8
117 Biblioteka Qt5 Nfc dostarcza klasy służace do dostępu do urządzeń NFC
120 %package -n Qt5Nfc-devel
121 Summary: The Qt5 Nfc - development files
122 Summary(pl.UTF-8): Biblioteka Qt5 Nfc - pliki programistyczne
123 Group: Development/Libraries
124 Requires: Qt5Nfc = %{version}-%{release}
125 Requires: Qt5Core-devel >= %{qtbase_ver}
126 Requires: Qt5DBus-devel >= %{qtbase_ver}
127 Requires: Qt5Qml-devel >= %{qtdeclarative_ver}
128 Obsoletes: qt5-qtconnectivity-devel
130 %description -n Qt5Nfc-devel
131 The Qt5 Nfc - development files.
133 %description -n Qt5Nfc-devel -l pl.UTF-8
134 Biblioteka Qt5 Nfc - pliki programistyczne.
137 Summary: Qt5 Connectivity documentation in HTML format
138 Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 Connectivity w formacie HTML
140 Requires: qt5-doc-common >= %{qtbase_ver}
141 %if "%{_rpmversion}" >= "5"
146 Qt5 Connectivity documentation in HTML format.
148 %description doc -l pl.UTF-8
149 Dokumentacja do bibliotek Qt5 Connectivity w formacie HTML.
152 Summary: Qt5 Connectivity documentation in QCH format
153 Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 Connectivity w formacie QCH
155 Requires: qt5-doc-common >= %{qtbase_ver}
156 %if "%{_rpmversion}" >= "5"
161 Qt5 Connectivity documentation in QCH format.
163 %description doc-qch -l pl.UTF-8
164 Dokumentacja do bibliotek Qt5 Connectivity w formacie QCH.
167 Summary: Qt5 Connectivity examples
168 Summary(pl.UTF-8): Przykłady do bibliotek Qt5 Connectivity
169 Group: X11/Development/Libraries
170 %if "%{_rpmversion}" >= "5"
174 %description examples
175 Qt5 Connectivity examples.
177 %description examples -l pl.UTF-8
178 Przykłady do bibliotek Qt5 Connectivity.
181 %setup -q -n %{orgname}-opensource-src-%{version} %{?with_qm:-a1}
186 %{__make} %{!?with_qch:html_}docs
189 cd qttranslations-opensource-src-%{version}
196 rm -rf $RPM_BUILD_ROOT
198 INSTALL_ROOT=$RPM_BUILD_ROOT
200 %{__make} install_%{!?with_qch:html_}docs \
201 INSTALL_ROOT=$RPM_BUILD_ROOT
204 %{__make} -C qttranslations-opensource-src-%{version} install \
205 INSTALL_ROOT=$RPM_BUILD_ROOT
206 # keep only qtconnectivity
207 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/{assistant,designer,linguist,qmlviewer,qt,qtbase,qtconfig,qtdeclarative,qtlocation,qtmultimedia,qtquick1,qtscript,qtxmlpatterns}_*.qm
211 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?
212 # actually drop *.la, follow policy of not packaging them when *.pc exist
213 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
215 # Prepare some files list
217 r="$RPM_BUILD_ROOT$2"
219 echo "%%dir $2" >> $1.files
220 elif [ -x "$r" ] ; then
221 echo "%%attr(755,root,root) $2" >> $1.files
222 elif [ -f "$r" ]; then
223 echo "$2" >> $1.files
225 echo "Error generation $1 files list!"
226 echo "$r: no such file or directory!"
232 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
237 echo "%defattr(644,root,root,755)" > examples.files
238 ifecho_tree examples %{_examplesdir}/qt5/bluetooth
239 ifecho_tree examples %{_examplesdir}/qt5/nfc
241 # find_lang --with-qm supports only PLD qt3/qt4 specific %{_datadir}/locale/*/LC_MESSAGES layout
245 find $RPM_BUILD_ROOT%{_datadir}/qt5/translations -name "${name}_*.qm" | \
246 sed -e "s:^$RPM_BUILD_ROOT::" \
247 -e 's:\(.*/'$name'_\)\([a-z][a-z][a-z]\?\)\(_[A-Z][A-Z]\)\?\(\.qm\)$:%lang(\2\3) \1\2\3\4:'
250 echo '%defattr(644,root,root,755)' > qtconnectivity.lang
252 find_qt5_qm qtconnectivity >> qtconnectivity.lang
256 rm -rf $RPM_BUILD_ROOT
258 %post -n Qt5Bluetooth -p /sbin/ldconfig
259 %postun -n Qt5Bluetooth -p /sbin/ldconfig
261 %post -n Qt5Nfc -p /sbin/ldconfig
262 %postun -n Qt5Nfc -p /sbin/ldconfig
264 %files common -f qtconnectivity.lang
265 %defattr(644,root,root,755)
266 %doc LGPL_EXCEPTION.txt dist/changes-*
268 %files -n Qt5Bluetooth
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/libQt5Bluetooth.so.*.*.*
271 %attr(755,root,root) %ghost %{_libdir}/libQt5Bluetooth.so.5
272 %dir %{qt5dir}/qml/QtBluetooth
273 %attr(755,root,root) %{qt5dir}/qml/QtBluetooth/libdeclarative_bluetooth.so
274 %{qt5dir}/qml/QtBluetooth/plugins.qmltypes
275 %{qt5dir}/qml/QtBluetooth/qmldir
277 %files -n Qt5Bluetooth-devel
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libQt5Bluetooth.so
280 %{_libdir}/libQt5Bluetooth.prl
281 %{_includedir}/qt5/QtBluetooth
282 %{_pkgconfigdir}/Qt5Bluetooth.pc
283 %{_libdir}/cmake/Qt5Bluetooth
284 %{qt5dir}/mkspecs/modules/qt_lib_bluetooth.pri
285 %{qt5dir}/mkspecs/modules/qt_lib_bluetooth_private.pri
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libQt5Nfc.so.*.*.*
290 %attr(755,root,root) %ghost %{_libdir}/libQt5Nfc.so.5
291 %dir %{qt5dir}/qml/QtNfc
292 %attr(755,root,root) %{qt5dir}/qml/QtNfc/libdeclarative_nfc.so
293 %{qt5dir}/qml/QtNfc/plugins.qmltypes
294 %{qt5dir}/qml/QtNfc/qmldir
296 %files -n Qt5Nfc-devel
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libQt5Nfc.so
299 %{_libdir}/libQt5Nfc.prl
300 %{_includedir}/qt5/QtNfc
301 %{_pkgconfigdir}/Qt5Nfc.pc
302 %{_libdir}/cmake/Qt5Nfc
303 %{qt5dir}/mkspecs/modules/qt_lib_nfc.pri
304 %{qt5dir}/mkspecs/modules/qt_lib_nfc_private.pri
307 %defattr(644,root,root,755)
308 %{_docdir}/qt5-doc/qtbluetooth
309 %{_docdir}/qt5-doc/qtnfc
313 %defattr(644,root,root,755)
314 %{_docdir}/qt5-doc/qtbluetooth.qch
315 %{_docdir}/qt5-doc/qtnfc.qch
318 %files examples -f examples.files
319 %defattr(644,root,root,755)
320 # XXX: dir shared with qt5-qtbase-examples
321 %dir %{_examplesdir}/qt5