1 | |
---|
2 | %global qt_module qtquickcontrols2 |
---|
3 | |
---|
4 | #define docs 1 |
---|
5 | |
---|
6 | #define prerelease |
---|
7 | |
---|
8 | %global qt5_minorver 5.12 |
---|
9 | %global qt5_version 5.12.8 |
---|
10 | #global qt5_patchlevel 1 |
---|
11 | |
---|
12 | Name: qt5-%{qt_module} |
---|
13 | Summary: Qt5 - module with set of QtQuick controls for embedded |
---|
14 | Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}} |
---|
15 | Release: 1%{?_dist_release} |
---|
16 | |
---|
17 | License: GPLv2+ or LGPLv3 and GFDL |
---|
18 | Url: https://www.qt.io/ |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | |
---|
23 | Source0: https://download.qt.io/official_releases/qt/%{qt5_minorver}/%{qt5_version}%{?qt5_patchlevel:-%{qt5_patchlevel}}/submodules/%{qt_module}-everywhere-src-%{qt5_version}%{?qt5_patchlevel:-%{qt5_patchlevel}}.tar.xz |
---|
24 | |
---|
25 | # filter qml provides |
---|
26 | %global __provides_exclude_from ^%{_qt5_archdatadir}/qml/.*\\.so$ |
---|
27 | |
---|
28 | BuildRequires: qt5-rpm-macros |
---|
29 | BuildRequires: qt5-qtbase-devel >= %{version} |
---|
30 | BuildRequires: qt5-qtbase-private-devel |
---|
31 | #libQt53DRender.so.5(Qt_5_PRIVATE_API)(64bit) |
---|
32 | #libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit) |
---|
33 | #libQt5Gui.so.5(Qt_5_PRIVATE_API)(64bit) |
---|
34 | #libQt5Qml.so.5(Qt_5_PRIVATE_API)(64bit) |
---|
35 | #libQt5Quick.so.5(Qt_5_PRIVATE_API)(64bit) |
---|
36 | %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} |
---|
37 | BuildRequires: qt5-qtdeclarative-devel |
---|
38 | |
---|
39 | Requires: qt5-qtdeclarative%{?_isa} >= %{version} |
---|
40 | Requires: qt5-qtgraphicaleffects%{_isa} >= %{version} |
---|
41 | |
---|
42 | %description |
---|
43 | The Qt Labs Controls module provides a set of controls that can be used to |
---|
44 | build complete interfaces in Qt Quick. |
---|
45 | |
---|
46 | Unlike Qt Quick Controls, these controls are optimized for embedded systems |
---|
47 | and so are preferred for hardware with limited resources. |
---|
48 | |
---|
49 | |
---|
50 | %if 0%{?docs} |
---|
51 | %package doc |
---|
52 | Summary: API documentation for %{name} |
---|
53 | License: GFDL |
---|
54 | Requires: %{name} = %{version}-%{release} |
---|
55 | BuildRequires: qt5-qdoc |
---|
56 | BuildRequires: qt5-qhelpgenerator |
---|
57 | BuildArch: noarch |
---|
58 | %description doc |
---|
59 | %{summary}. |
---|
60 | %endif |
---|
61 | |
---|
62 | |
---|
63 | %package devel |
---|
64 | Summary: Development files for %{name} |
---|
65 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
66 | Requires: qt5-qtbase-devel%{?_isa} |
---|
67 | Requires: qt5-qtdeclarative-devel%{?_isa} |
---|
68 | %description devel |
---|
69 | %{summary}. |
---|
70 | |
---|
71 | |
---|
72 | %package examples |
---|
73 | Summary: Examples for %{name} |
---|
74 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
75 | %description examples |
---|
76 | %{summary}. |
---|
77 | |
---|
78 | |
---|
79 | %prep |
---|
80 | %setup -q -n %{qt_module}-everywhere-src-%{qt5_version} |
---|
81 | |
---|
82 | %if 0%{?prerelease} |
---|
83 | syncqt.pl -version %{version} |
---|
84 | %endif |
---|
85 | |
---|
86 | |
---|
87 | %build |
---|
88 | mkdir %{_target_platform} |
---|
89 | pushd %{_target_platform} |
---|
90 | %{qmake_qt5} .. |
---|
91 | |
---|
92 | make %{?_smp_mflags} |
---|
93 | |
---|
94 | %if 0%{?docs} |
---|
95 | make %{?_smp_mflags} docs |
---|
96 | %endif |
---|
97 | popd |
---|
98 | |
---|
99 | |
---|
100 | %install |
---|
101 | make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
102 | |
---|
103 | %if 0%{?docs} |
---|
104 | make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
105 | %endif |
---|
106 | |
---|
107 | ## .prl/.la file love |
---|
108 | # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs |
---|
109 | pushd %{buildroot}%{_qt5_libdir} |
---|
110 | for prl_file in libQt5*.prl ; do |
---|
111 | sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} |
---|
112 | if [ -f "$(basename ${prl_file} .prl).so" ]; then |
---|
113 | rm -fv "$(basename ${prl_file} .prl).la" |
---|
114 | sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} |
---|
115 | fi |
---|
116 | done |
---|
117 | popd |
---|
118 | |
---|
119 | # Remove .la leftovers |
---|
120 | rm -f %{buildroot}%{_qt5_libdir}/libQt5*.la |
---|
121 | |
---|
122 | |
---|
123 | %post -p /sbin/ldconfig |
---|
124 | |
---|
125 | |
---|
126 | %postun -p /sbin/ldconfig |
---|
127 | |
---|
128 | |
---|
129 | %files |
---|
130 | %license LICENSE.LGPLv3 LICENSE.GPLv3 |
---|
131 | %{_qt5_libdir}/libQt5QuickTemplates2.so.5* |
---|
132 | %{_qt5_libdir}/libQt5QuickControls2.so.5* |
---|
133 | %{_qt5_qmldir}/Qt/labs/calendar |
---|
134 | %{_qt5_qmldir}/Qt/labs/platform |
---|
135 | %{_qt5_archdatadir}/qml/QtQuick/Controls.2/ |
---|
136 | %{_qt5_archdatadir}/qml/QtQuick/Templates.2/ |
---|
137 | |
---|
138 | %if 0%{?docs} |
---|
139 | %files doc |
---|
140 | %license LICENSE.FDL LICENSE.LGPLv3 LICENSE.GPLv3 |
---|
141 | %dir %{_qt5_docdir}/qtlabscontrols/ |
---|
142 | %{_qt5_docdir}/qtlabscontrols/* |
---|
143 | %{_qt5_docdir}/qtlabscontrols.qch |
---|
144 | %endif |
---|
145 | |
---|
146 | %files devel |
---|
147 | %{_qt5_headerdir}/ |
---|
148 | %{_qt5_libdir}/pkgconfig/*.pc |
---|
149 | %{_qt5_libdir}/libQt5QuickTemplates2.so |
---|
150 | %{_qt5_libdir}/libQt5QuickControls2.so |
---|
151 | %{_qt5_libdir}/libQt5QuickTemplates2.prl |
---|
152 | %{_qt5_libdir}/libQt5QuickControls2.prl |
---|
153 | %{_qt5_libdir}/qt5/mkspecs/modules/* |
---|
154 | %{_libdir}/cmake/Qt5QuickControls2/ |
---|
155 | %{_libdir}/cmake/Qt5QuickTemplates2/ |
---|
156 | |
---|
157 | %files examples |
---|
158 | %{_qt5_examplesdir}/quickcontrols2/ |
---|
159 | |
---|
160 | |
---|
161 | %changelog |
---|
162 | * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.8-1 |
---|
163 | - new upstream release. |
---|
164 | |
---|
165 | * Mon Mar 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.7-1 |
---|
166 | - new upstream release. |
---|
167 | |
---|
168 | * Sun Oct 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.5-1 |
---|
169 | - new upstream release. |
---|
170 | |
---|
171 | * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> - 5.6.3-1 |
---|
172 | - update to 5.6.3 |
---|
173 | |
---|
174 | * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1 |
---|
175 | - new upstream release. |
---|
176 | - initial build for Vine Linux. |
---|
177 | |
---|
178 | * Sat Jun 11 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.1-2 |
---|
179 | - Add qt5-qtgraphicaleffects dependency |
---|
180 | |
---|
181 | * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1 |
---|
182 | - Update to 5.6.1 |
---|
183 | |
---|
184 | * Sun Apr 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4 |
---|
185 | - BR: qt5-qtbase-private-devel qt5-qtdeclarative-private-devel |
---|
186 | |
---|
187 | * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3 |
---|
188 | - rebuild |
---|
189 | |
---|
190 | * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2 |
---|
191 | - rebuild |
---|
192 | |
---|
193 | * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> |
---|
194 | - 5.6.0 final release |
---|
195 | |
---|
196 | * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1 |
---|
197 | - 5.6.0 final release |
---|
198 | |
---|
199 | * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4.rc |
---|
200 | - Update to final RC |
---|
201 | |
---|
202 | * Thu Feb 18 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.0-0.3.rc |
---|
203 | - Update to rc |
---|
204 | |
---|
205 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.2.beta |
---|
206 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
207 | |
---|
208 | * Fri Jan 15 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.0-0.1.beta |
---|
209 | - Initial packaging |
---|