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