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