]> git.pld-linux.org Git - packages/qt5-qtconnectivity.git/blame - qt5-qtconnectivity.spec
up to 5.14.0
[packages/qt5-qtconnectivity.git] / qt5-qtconnectivity.spec
CommitLineData
fc999486
JB
1#
2# Conditional build:
a53e4ea4 3%bcond_without doc # Documentation
52175abf 4%bcond_without qm # QM translations
20dfc6e6
WF
5
6%define orgname qtconnectivity
fc999486
JB
7%define qtbase_ver %{version}
8%define qtdeclarative_ver %{version}
9%define qttools_ver %{version}
10Summary: The Qt5 Connectivity libraries
11Summary(pl.UTF-8): Biblioteki Qt5 Connectivity
20dfc6e6 12Name: qt5-%{orgname}
ff0b7975 13Version: 5.14.0
669240ed 14Release: 1
c6624e8f
JB
15License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0
16Group: Libraries
ff0b7975
JP
17Source0: http://download.qt.io/official_releases/qt/5.14/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
18# Source0-md5: 1be53fb77b52e2b8f22ef8b7e151b384
19Source1: http://download.qt.io/official_releases/qt/5.14/%{version}/submodules/qttranslations-everywhere-src-%{version}.tar.xz
20# Source1-md5: 74ff09655d412069a7b4210fea5440fb
5f8b827e 21URL: http://www.qt.io/
669240ed
JB
22BuildRequires: Qt5Concurrent-devel >= %{qtbase_ver}
23BuildRequires: Qt5Core-devel >= %{qtbase_ver}
24BuildRequires: Qt5DBus-devel >= %{qtbase_ver}
25BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver}
20dfc6e6 26BuildRequires: bluez-libs-devel
a53e4ea4 27%if %{with doc}
fc999486
JB
28BuildRequires: qt5-assistant >= %{qttools_ver}
29%endif
30BuildRequires: qt5-build >= %{qtbase_ver}
52175abf 31%{?with_qm:BuildRequires: qt5-linguist >= %{qttools_ver}}
fc999486 32BuildRequires: qt5-qmake >= %{qtbase_ver}
20dfc6e6 33BuildRequires: rpmbuild(macros) >= 1.654
9b02a8fb
ER
34BuildRequires: tar >= 1:1.22
35BuildRequires: xz
20dfc6e6
WF
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
20dfc6e6 38%define specflags -fno-strict-aliasing
fc999486 39%define qt5dir %{_libdir}/qt5
20dfc6e6
WF
40
41%description
fc999486
JB
42Qt is a cross-platform application and UI framework. Using Qt, you can
43write web-enabled applications once and deploy them across desktop,
44mobile and embedded systems without rewriting the source code.
45
c6624e8f
JB
46This package contains Qt5 Connectivity libraries: Qt5Bluetooth and
47QtNfc.
fc999486
JB
48
49%description -l pl.UTF-8
50Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
51Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
52systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
53źródłowego.
54
c6624e8f 55Ten pakiet zawiera biblioteki Qt5 Connectivity: Qt5Bluetooth i Qt5Nfc.
20dfc6e6 56
52175abf
JB
57%package common
58Summary: Common files used by all Qt5 Connectivity components
59Summary(pl.UTF-8): Wspólne pliki wykorzystywane przez wszystkie komponenty Qt5 Connectivity
60Group: Libraries
61
62%description common
63Common files used by all Qt5 Connectivity components.
64
65%description common -l pl.UTF-8
66Wspólne pliki wykorzystywane przez wszystkie komponenty Qt5
67Connectivity.
68
c6624e8f
JB
69%package -n Qt5Bluetooth
70Summary: Qt5 Bluetooth library
71Summary(pl.UTF-8): Biblioteka Qt5 Bluetooth
72Group: Libraries
52175abf 73Requires: %{name}-common = %{version}-%{release}
c6624e8f
JB
74Requires: Qt5Core >= %{qtbase_ver}
75Requires: Qt5DBus >= %{qtbase_ver}
76Requires: Qt5Qml >= %{qtdeclarative_ver}
77Obsoletes: qt5-qtconnectivity
78
79%description -n Qt5Bluetooth
80Qt5 Bluetooth library provides classes that enable basic Bluetooth
81operations like scanning for devices and connecting them.
82
83%description -n Qt5Bluetooth -l pl.UTF-8
84Biblioteka Qt5 Bluetooth dostarcza klasy umożliwiające podstawowe
85operacje Bluetooth, takie jak wyszukiwanie urządzeń i łączenie z nimi.
86
87%package -n Qt5Bluetooth-devel
88Summary: The Qt5 Bluetooth - development files
89Summary(pl.UTF-8): Biblioteka Qt5 Bluetooth - pliki programistyczne
90Group: Development/Libraries
91Requires: Qt5Bluetooth = %{version}-%{release}
92Requires: Qt5Core-devel >= %{qtbase_ver}
93Requires: Qt5DBus-devel >= %{qtbase_ver}
94Requires: Qt5Qml-devel >= %{qtdeclarative_ver}
95Obsoletes: qt5-qtconnectivity-devel
96
97%description -n Qt5Bluetooth-devel
98The Qt5 Bluetooth - development files.
99
100%description -n Qt5Bluetooth-devel -l pl.UTF-8
101Biblioteka Qt5 Bluetooth - pliki programistyczne.
102
103%package -n Qt5Nfc
104Summary: Qt5 Nfc library
105Summary(pl.UTF-8): Biblioteka Qt5 Nfc
106Group: Libraries
52175abf 107Requires: %{name}-common = %{version}-%{release}
c6624e8f
JB
108Requires: Qt5Core >= %{qtbase_ver}
109Requires: Qt5DBus >= %{qtbase_ver}
110Requires: Qt5Qml >= %{qtdeclarative_ver}
111Obsoletes: qt5-qtconnectivity
112
113%description -n Qt5Nfc
114Qt5 Nfc library provides classes to access NFC Forum Tags.
115
116%description -n Qt5Nfc -l pl.UTF-8
117Biblioteka Qt5 Nfc dostarcza klasy służace do dostępu do urządzeń NFC
118Forum.
119
120%package -n Qt5Nfc-devel
121Summary: The Qt5 Nfc - development files
122Summary(pl.UTF-8): Biblioteka Qt5 Nfc - pliki programistyczne
123Group: Development/Libraries
124Requires: Qt5Nfc = %{version}-%{release}
669240ed
JB
125Requires: Qt5Core-devel >= %{qtbase_ver}
126Requires: Qt5DBus-devel >= %{qtbase_ver}
127Requires: Qt5Qml-devel >= %{qtdeclarative_ver}
c6624e8f 128Obsoletes: qt5-qtconnectivity-devel
20dfc6e6 129
c6624e8f
JB
130%description -n Qt5Nfc-devel
131The Qt5 Nfc - development files.
20dfc6e6 132
c6624e8f
JB
133%description -n Qt5Nfc-devel -l pl.UTF-8
134Biblioteka Qt5 Nfc - pliki programistyczne.
fc999486 135
20dfc6e6 136%package doc
fc999486
JB
137Summary: Qt5 Connectivity documentation in HTML format
138Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 Connectivity w formacie HTML
20dfc6e6 139Group: Documentation
fc999486 140Requires: qt5-doc-common >= %{qtbase_ver}
9b02a8fb
ER
141%if "%{_rpmversion}" >= "5"
142BuildArch: noarch
143%endif
20dfc6e6
WF
144
145%description doc
fc999486
JB
146Qt5 Connectivity documentation in HTML format.
147
148%description doc -l pl.UTF-8
149Dokumentacja do bibliotek Qt5 Connectivity w formacie HTML.
150
151%package doc-qch
152Summary: Qt5 Connectivity documentation in QCH format
153Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 Connectivity w formacie QCH
154Group: Documentation
155Requires: qt5-doc-common >= %{qtbase_ver}
156%if "%{_rpmversion}" >= "5"
157BuildArch: noarch
158%endif
159
160%description doc-qch
161Qt5 Connectivity documentation in QCH format.
162
163%description doc-qch -l pl.UTF-8
164Dokumentacja do bibliotek Qt5 Connectivity w formacie QCH.
20dfc6e6
WF
165
166%package examples
fc999486
JB
167Summary: Qt5 Connectivity examples
168Summary(pl.UTF-8): Przykłady do bibliotek Qt5 Connectivity
20dfc6e6 169Group: X11/Development/Libraries
9b02a8fb
ER
170%if "%{_rpmversion}" >= "5"
171BuildArch: noarch
172%endif
20dfc6e6
WF
173
174%description examples
fc999486
JB
175Qt5 Connectivity examples.
176
177%description examples -l pl.UTF-8
178Przykłady do bibliotek Qt5 Connectivity.
20dfc6e6
WF
179
180%prep
62bf581d 181%setup -q -n %{orgname}-everywhere-src-%{version} %{?with_qm:-a1}
20dfc6e6
WF
182
183%build
184qmake-qt5
185%{__make}
a53e4ea4 186%{?with_doc:%{__make} docs}
20dfc6e6 187
52175abf 188%if %{with qm}
62bf581d 189cd qttranslations-everywhere-src-%{version}
52175abf
JB
190qmake-qt5
191%{__make}
192cd ..
193%endif
194
20dfc6e6
WF
195%install
196rm -rf $RPM_BUILD_ROOT
197%{__make} install \
198 INSTALL_ROOT=$RPM_BUILD_ROOT
199
a53e4ea4
JR
200%if %{with doc}
201%{__make} install_docs \
20dfc6e6 202 INSTALL_ROOT=$RPM_BUILD_ROOT
a53e4ea4 203%endif
20dfc6e6 204
52175abf 205%if %{with qm}
62bf581d 206%{__make} -C qttranslations-everywhere-src-%{version} install \
52175abf
JB
207 INSTALL_ROOT=$RPM_BUILD_ROOT
208# keep only qtconnectivity
86493eb5 209%{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/{assistant,designer,linguist,qt,qtbase,qtdeclarative,qtlocation,qtmultimedia,qtquickcontrols,qtquickcontrols2,qtserialport,qtscript,qtwebengine,qtwebsockets,qtxmlpatterns}_*.qm
52175abf
JB
210%endif
211
fc999486 212# useless symlinks
62bf581d 213%{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
fc999486
JB
214# actually drop *.la, follow policy of not packaging them when *.pc exist
215%{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
216
669240ed
JB
217# Prepare some files list
218ifecho() {
219 r="$RPM_BUILD_ROOT$2"
220 if [ -d "$r" ]; then
221 echo "%%dir $2" >> $1.files
222 elif [ -x "$r" ] ; then
223 echo "%%attr(755,root,root) $2" >> $1.files
224 elif [ -f "$r" ]; then
225 echo "$2" >> $1.files
226 else
227 echo "Error generation $1 files list!"
228 echo "$r: no such file or directory!"
229 return 1
230 fi
231}
232ifecho_tree() {
233 ifecho $1 $2
234 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
235 ifecho $1 $2/$f
236 done
237}
238
239echo "%defattr(644,root,root,755)" > examples.files
240ifecho_tree examples %{_examplesdir}/qt5/bluetooth
241ifecho_tree examples %{_examplesdir}/qt5/nfc
242
52175abf
JB
243# find_lang --with-qm supports only PLD qt3/qt4 specific %{_datadir}/locale/*/LC_MESSAGES layout
244find_qt5_qm()
245{
246 name="$1"
247 find $RPM_BUILD_ROOT%{_datadir}/qt5/translations -name "${name}_*.qm" | \
248 sed -e "s:^$RPM_BUILD_ROOT::" \
249 -e 's:\(.*/'$name'_\)\([a-z][a-z][a-z]\?\)\(_[A-Z][A-Z]\)\?\(\.qm\)$:%lang(\2\3) \1\2\3\4:'
250}
251
252echo '%defattr(644,root,root,755)' > qtconnectivity.lang
253%if %{with qm}
254find_qt5_qm qtconnectivity >> qtconnectivity.lang
255%endif
256
20dfc6e6
WF
257%clean
258rm -rf $RPM_BUILD_ROOT
259
c6624e8f
JB
260%post -n Qt5Bluetooth -p /sbin/ldconfig
261%postun -n Qt5Bluetooth -p /sbin/ldconfig
20dfc6e6 262
c6624e8f
JB
263%post -n Qt5Nfc -p /sbin/ldconfig
264%postun -n Qt5Nfc -p /sbin/ldconfig
265
52175abf 266%files common -f qtconnectivity.lang
20dfc6e6 267%defattr(644,root,root,755)
62bf581d 268%doc LICENSE.GPL3-EXCEPT dist/changes-*
52175abf
JB
269
270%files -n Qt5Bluetooth
271%defattr(644,root,root,755)
fc999486
JB
272%attr(755,root,root) %{_libdir}/libQt5Bluetooth.so.*.*.*
273%attr(755,root,root) %ghost %{_libdir}/libQt5Bluetooth.so.5
93f6c63a 274%attr(755,root,root) %{qt5dir}/bin/sdpscanner
669240ed
JB
275%dir %{qt5dir}/qml/QtBluetooth
276%attr(755,root,root) %{qt5dir}/qml/QtBluetooth/libdeclarative_bluetooth.so
277%{qt5dir}/qml/QtBluetooth/plugins.qmltypes
278%{qt5dir}/qml/QtBluetooth/qmldir
c6624e8f
JB
279
280%files -n Qt5Bluetooth-devel
281%defattr(644,root,root,755)
282%attr(755,root,root) %{_libdir}/libQt5Bluetooth.so
283%{_libdir}/libQt5Bluetooth.prl
284%{_includedir}/qt5/QtBluetooth
285%{_pkgconfigdir}/Qt5Bluetooth.pc
286%{_libdir}/cmake/Qt5Bluetooth
287%{qt5dir}/mkspecs/modules/qt_lib_bluetooth.pri
288%{qt5dir}/mkspecs/modules/qt_lib_bluetooth_private.pri
289
290%files -n Qt5Nfc
291%defattr(644,root,root,755)
c6624e8f
JB
292%attr(755,root,root) %{_libdir}/libQt5Nfc.so.*.*.*
293%attr(755,root,root) %ghost %{_libdir}/libQt5Nfc.so.5
669240ed
JB
294%dir %{qt5dir}/qml/QtNfc
295%attr(755,root,root) %{qt5dir}/qml/QtNfc/libdeclarative_nfc.so
296%{qt5dir}/qml/QtNfc/plugins.qmltypes
297%{qt5dir}/qml/QtNfc/qmldir
20dfc6e6 298
c6624e8f 299%files -n Qt5Nfc-devel
20dfc6e6 300%defattr(644,root,root,755)
20dfc6e6 301%attr(755,root,root) %{_libdir}/libQt5Nfc.so
20dfc6e6 302%{_libdir}/libQt5Nfc.prl
20dfc6e6 303%{_includedir}/qt5/QtNfc
fc999486 304%{_pkgconfigdir}/Qt5Nfc.pc
fc999486 305%{_libdir}/cmake/Qt5Nfc
c6624e8f
JB
306%{qt5dir}/mkspecs/modules/qt_lib_nfc.pri
307%{qt5dir}/mkspecs/modules/qt_lib_nfc_private.pri
20dfc6e6 308
a53e4ea4 309%if %{with doc}
20dfc6e6
WF
310%files doc
311%defattr(644,root,root,755)
669240ed
JB
312%{_docdir}/qt5-doc/qtbluetooth
313%{_docdir}/qt5-doc/qtnfc
314
669240ed
JB
315%files doc-qch
316%defattr(644,root,root,755)
317%{_docdir}/qt5-doc/qtbluetooth.qch
318%{_docdir}/qt5-doc/qtnfc.qch
319%endif
320
321%files examples -f examples.files
322%defattr(644,root,root,755)
323# XXX: dir shared with qt5-qtbase-examples
324%dir %{_examplesdir}/qt5
This page took 0.220198 seconds and 4 git commands to generate.