]>
Commit | Line | Data |
---|---|---|
61c21a40 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # Documentation | |
4 | %bcond_without qm # QM translations | |
5 | ||
6 | %define orgname qtquickcontrols2 | |
7 | %define qtbase_ver %{version} | |
8 | %define qtdeclarative_ver %{version} | |
9 | %define qttools_ver %{version} | |
10 | Summary: The Qt5 Quick Controls2 modules | |
11 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls2 | |
12 | Name: qt5-%{orgname} | |
f09af65d | 13 | Version: 5.11.1 |
61c21a40 WF |
14 | Release: 1 |
15 | License: LGPL v3 or GPL v2 or commercial | |
16 | Group: X11/Libraries | |
f09af65d AM |
17 | Source0: http://download.qt.io/official_releases/qt/5.11/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
18 | # Source0-md5: d74e20323399a05ad0b3e9f0dc419519 | |
19 | Source1: http://download.qt.io/official_releases/qt/5.11/%{version}/submodules/qttranslations-everywhere-src-%{version}.tar.xz | |
20 | # Source1-md5: 67c0dbd61c2b92552b5339d82a94b1a8 | |
61c21a40 WF |
21 | URL: http://www.qt.io/ |
22 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} | |
23 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
24 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
25 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
26 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
27 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
28 | %if %{with doc} | |
29 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
30 | %endif | |
31 | BuildRequires: qt5-build >= %{qtbase_ver} | |
32 | %{?with_qm:BuildRequires: qt5-linguist >= %{qttools_ver}} | |
33 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
34 | BuildRequires: rpmbuild(macros) >= 1.654 | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %define specflags -fno-strict-aliasing | |
40 | %define qt5dir %{_libdir}/qt5 | |
41 | ||
42 | %description | |
43 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
44 | write web-enabled applications once and deploy them across desktop, | |
45 | mobile and embedded systems without rewriting the source code. | |
46 | ||
47 | This package contains Qt5 Quick Controls2, Dialogs modules. | |
48 | ||
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 | |
53 | źródłowego. | |
54 | ||
55 | Ten pakiet zawiera moduły Qt5 Quick Controls2, Dialogs. | |
56 | ||
57 | %package -n Qt5Quick-controls2 | |
58 | Summary: The Qt5 Quick Controls2 modules | |
59 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls2 | |
60 | Group: X11/Libraries | |
61 | Requires: Qt5Core >= %{qtbase_ver} | |
62 | Requires: Qt5Gui >= %{qtbase_ver} | |
63 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
64 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
65 | Requires: Qt5Widgets >= %{qtbase_ver} | |
66 | Obsoletes: qt5-qtquickcontrols2 | |
67 | ||
68 | %description -n Qt5Quick-controls2 | |
69 | Qt5 Quick Controls, Dialogs modules. | |
70 | ||
71 | This package provides a set of widgets/controls that can be used to | |
72 | build complete interfaces in Qt5 Quick (v2). | |
73 | ||
74 | %description -n Qt5Quick-controls2 -l pl.UTF-8 | |
75 | Moduły Qt5 Quick Controls, Dialogs. | |
76 | ||
77 | Ten pakiet dostarcza zestaw widgetów/kontrolek, które można | |
78 | wykorzystywać do tworzenia kompletnych interfejsów przy użyciu Qt5 | |
79 | Quick (v2). | |
80 | ||
81 | %package -n Qt5Quick-controls2-devel | |
82 | Summary: Qt5 Quick controls2 library - development files | |
83 | Summary(pl.UTF-8): Biblioteka Qt5 Quick controls2 - pliki programistyczne | |
84 | Group: Development/Libraries | |
85 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
86 | Requires: Qt5Network-devel >= %{qtbase_ver} | |
87 | Requires: Qt5Quick-controls2 = %{version}-%{release} | |
88 | ||
89 | %description -n Qt5Quick-controls2-devel | |
90 | Qt5 Quick controls2 library - development files. | |
91 | ||
92 | %description -n Qt5Quick-controls2-devel -l pl.UTF-8 | |
93 | Biblioteka Qt5 Quick controls2 - pliki programistyczne. | |
94 | ||
95 | %package doc | |
96 | Summary: Qt5 Quick Controls2 documentation in HTML format | |
97 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls2 w formacie HTML | |
98 | Group: Documentation | |
99 | Requires: qt5-doc-common >= %{qtbase_ver} | |
100 | %if "%{_rpmversion}" >= "5" | |
101 | BuildArch: noarch | |
102 | %endif | |
103 | ||
104 | %description doc | |
105 | Qt5 Quick Controls2 documentation in HTML format. | |
106 | ||
107 | %description doc -l pl.UTF-8 | |
108 | Dokumentacja do biblioteki Qt5 Quick Controls2 w formacie HTML. | |
109 | ||
110 | %package doc-qch | |
111 | Summary: Qt5 Quick Controls2 documentation in QCH format | |
112 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH | |
113 | Group: Documentation | |
114 | Requires: qt5-doc-common >= %{qtbase_ver} | |
115 | %if "%{_rpmversion}" >= "5" | |
116 | BuildArch: noarch | |
117 | %endif | |
118 | ||
119 | %description doc-qch | |
120 | Qt5 Quick Controls2 documentation in QCH format. | |
121 | ||
122 | %description doc-qch -l pl.UTF-8 | |
123 | Dokumentacja do biblioteki Qt5 Quick Controls2 w formacie QCH. | |
124 | ||
125 | %package examples | |
126 | Summary: Examples for Qt5 Quick Controls2 | |
127 | Summary(pl.UTF-8): Przykłady do Qt5 Quick controls2 | |
128 | Group: X11/Development/Libraries | |
129 | BuildArch: noarch | |
130 | ||
131 | %description examples | |
132 | Examples for Qt5 Quick Controls2. | |
133 | ||
134 | %description examples -l pl.UTF-8 | |
135 | Przykłady do Qt5 Quick controls2. | |
136 | ||
137 | %prep | |
f09af65d | 138 | %setup -q -n %{orgname}-everywhere-src-%{version} %{?with_qm:-a1} |
61c21a40 WF |
139 | |
140 | %build | |
141 | qmake-qt5 | |
142 | %{__make} | |
143 | %{?with_doc:%{__make} docs} | |
144 | ||
145 | %if %{with qm} | |
f09af65d | 146 | cd qttranslations-everywhere-src-%{version} |
61c21a40 WF |
147 | qmake-qt5 |
148 | %{__make} | |
149 | cd .. | |
150 | %endif | |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | %{__make} install \ | |
155 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
156 | ||
157 | %if %{with doc} | |
158 | %{__make} install_docs \ | |
159 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
160 | %endif | |
161 | ||
162 | %if %{with qm} | |
f09af65d | 163 | %{__make} -C qttranslations-everywhere-src-%{version} install \ |
61c21a40 WF |
164 | INSTALL_ROOT=$RPM_BUILD_ROOT |
165 | # keep only qtquickcontrols | |
f09af65d | 166 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/{assistant,designer,linguist,qmlviewer,qt,qtbase,qtconnectivity,qtdeclarative,qtlocation,qtmultimedia,qtquick1,qtquickcontrols,qtserialport,qtscript,qtwebengine,qtwebsockets,qtxmlpatterns}_*.qm |
61c21a40 WF |
167 | %endif |
168 | ||
169 | # find_lang --with-qm supports only PLD qt3/qt4 specific %{_localedir}/*/LC_MESSAGES layout | |
170 | find_qt5_qm() | |
171 | { | |
172 | name="$1" | |
173 | find $RPM_BUILD_ROOT%{_datadir}/qt5/translations -name "${name}_*.qm" | \ | |
174 | sed -e "s:^$RPM_BUILD_ROOT::" \ | |
175 | -e 's:\(.*/'$name'_\)\([a-z][a-z][a-z]\?\)\(_[A-Z][A-Z]\)\?\(\.qm\)$:%lang(\2\3) \1\2\3\4:' | |
176 | } | |
177 | ||
178 | echo '%defattr(644,root,root,755)' > qtquickcontrols2.lang | |
179 | %if %{with qm} | |
180 | find_qt5_qm qtquickcontrols2 >> qtquickcontrols2.lang | |
181 | %endif | |
182 | ||
183 | %clean | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %files -n Qt5Quick-controls2 -f qtquickcontrols2.lang | |
187 | %defattr(644,root,root,755) | |
188 | %doc dist/changes-* | |
189 | %ghost %{_libdir}/libQt5QuickControls2.so.5 | |
190 | %{_libdir}/libQt5QuickControls2.so.5.* | |
191 | %ghost %{_libdir}/libQt5QuickTemplates2.so.5 | |
192 | %{_libdir}/libQt5QuickTemplates2.so.5.* | |
193 | %{_libdir}/qt5/qml/Qt/labs | |
194 | %{_libdir}/qt5/qml/QtQuick/Controls.2 | |
195 | %{_libdir}/qt5/qml/QtQuick/Templates.2 | |
196 | ||
197 | %files -n Qt5Quick-controls2-devel | |
198 | %defattr(644,root,root,755) | |
199 | %{_includedir}/qt5/QtQuickControls2 | |
200 | %{_includedir}/qt5/QtQuickTemplates2 | |
201 | %{_libdir}/cmake/Qt5QuickControls2 | |
202 | %{_libdir}/libQt5QuickControls2.la | |
203 | %{_libdir}/libQt5QuickControls2.prl | |
204 | %{_libdir}/libQt5QuickControls2.so | |
205 | %{_libdir}/libQt5QuickTemplates2.la | |
206 | %{_libdir}/libQt5QuickTemplates2.prl | |
207 | %{_libdir}/libQt5QuickTemplates2.so | |
208 | %{_pkgconfigdir}/Qt5QuickControls2.pc | |
209 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quickcontrols2.pri | |
210 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quickcontrols2_private.pri | |
211 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quicktemplates2_private.pri | |
212 | ||
213 | %if %{with doc} | |
214 | %files doc | |
215 | %defattr(644,root,root,755) | |
216 | %{_docdir}/qt5-doc/qtlabscalendar | |
217 | %{_docdir}/qt5-doc/qtlabsplatform | |
218 | %{_docdir}/qt5-doc/qtquickcontrols2 | |
219 | ||
220 | %files doc-qch | |
221 | %defattr(644,root,root,755) | |
222 | %{_docdir}/qt5-doc/qtlabscalendar.qch | |
223 | %{_docdir}/qt5-doc/qtlabsplatform.qch | |
224 | %{_docdir}/qt5-doc/qtquickcontrols2.qch | |
225 | %endif | |
226 | ||
227 | %files examples | |
228 | %defattr(644,root,root,755) | |
229 | %{_examplesdir}/qt5/quickcontrols2 |