1 | |
---|
2 | %global qt_module qtserialport |
---|
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 | Summary: Qt5 - SerialPort component |
---|
13 | Name: qt5-%{qt_module} |
---|
14 | Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}} |
---|
15 | Release: 1%{?_dist_release} |
---|
16 | |
---|
17 | # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details |
---|
18 | License: LGPLv2 with exceptions or GPLv3 with exceptions |
---|
19 | Url: https://www.qt.io/ |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | 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 |
---|
25 | |
---|
26 | BuildRequires: cmake |
---|
27 | BuildRequires: qt5-rpm-macros |
---|
28 | BuildRequires: qt5-qtbase-devel >= %{version} |
---|
29 | BuildRequires: pkgconfig(libudev) |
---|
30 | |
---|
31 | BuildRequires: qt5-qtbase-private-devel |
---|
32 | %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} |
---|
33 | |
---|
34 | %description |
---|
35 | Qt Serial Port provides the basic functionality, which includes configuring, |
---|
36 | I/O operations, getting and setting the control signals of the RS-232 pinouts. |
---|
37 | |
---|
38 | %package devel |
---|
39 | Summary: Development files for %{name} |
---|
40 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
41 | Requires: qt5-qtbase-devel%{?_isa} |
---|
42 | %description devel |
---|
43 | %{summary}. |
---|
44 | |
---|
45 | %if 0%{?docs} |
---|
46 | %package doc |
---|
47 | Summary: API documentation for %{name} |
---|
48 | License: GFDL |
---|
49 | Requires: %{name} = %{version}-%{release} |
---|
50 | BuildRequires: qt5-qdoc |
---|
51 | BuildRequires: qt5-qhelpgenerator |
---|
52 | BuildArch: noarch |
---|
53 | %description doc |
---|
54 | %{summary}. |
---|
55 | %endif |
---|
56 | |
---|
57 | %package examples |
---|
58 | Summary: Programming examples for %{name} |
---|
59 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
60 | %description examples |
---|
61 | %{summary}. |
---|
62 | |
---|
63 | |
---|
64 | %prep |
---|
65 | %setup -q -n %{qt_module}-everywhere-src-%{qt5_version} |
---|
66 | |
---|
67 | |
---|
68 | %build |
---|
69 | mkdir %{_target_platform} |
---|
70 | pushd %{_target_platform} |
---|
71 | %{qmake_qt5} .. \ |
---|
72 | %{?_qt5_examplesdir:CONFIG+=qt_example_installs} |
---|
73 | |
---|
74 | make %{?_smp_mflags} |
---|
75 | |
---|
76 | %if 0%{?docs} |
---|
77 | # HACK to avoid multilib conflicts in noarch content |
---|
78 | # see also https://bugreports.qt-project.org/browse/QTBUG-42071 |
---|
79 | QT_HASH_SEED=0; export QT_HASH_SEED |
---|
80 | make %{?_smp_mflags} docs |
---|
81 | %endif |
---|
82 | popd |
---|
83 | |
---|
84 | |
---|
85 | %install |
---|
86 | make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
87 | |
---|
88 | %if 0%{?docs} |
---|
89 | make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
90 | |
---|
91 | # workaround issue where on some archs/releases doc file is named examples-serialport.html or qtserialport-examples.html |
---|
92 | if [ -f %{buildroot}%{_qt5_docdir}/qtserialport/qtserialport-examples.html ]; then |
---|
93 | mv %{buildroot}%{_qt5_docdir}/qtserialport/qtserialport-examples.html \ |
---|
94 | %{buildroot}%{_qt5_docdir}/qtserialport/examples-serialport.html |
---|
95 | fi |
---|
96 | %endif |
---|
97 | |
---|
98 | ## .prl/.la file love |
---|
99 | # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs |
---|
100 | pushd %{buildroot}%{_qt5_libdir} |
---|
101 | for prl_file in libQt5*.prl ; do |
---|
102 | sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} |
---|
103 | if [ -f "$(basename ${prl_file} .prl).so" ]; then |
---|
104 | rm -fv "$(basename ${prl_file} .prl).la" |
---|
105 | sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} |
---|
106 | fi |
---|
107 | done |
---|
108 | popd |
---|
109 | |
---|
110 | |
---|
111 | %post -p /sbin/ldconfig |
---|
112 | %postun -p /sbin/ldconfig |
---|
113 | |
---|
114 | %files |
---|
115 | %license LICENSE.* |
---|
116 | %{_qt5_libdir}/libQt5SerialPort.so.5* |
---|
117 | |
---|
118 | %files devel |
---|
119 | %{_qt5_headerdir}/QtSerialPort/ |
---|
120 | %{_qt5_libdir}/libQt5SerialPort.so |
---|
121 | %{_qt5_libdir}/libQt5SerialPort.prl |
---|
122 | %dir %{_qt5_libdir}/cmake/Qt5SerialPort/ |
---|
123 | %{_qt5_libdir}/cmake/Qt5SerialPort/Qt5SerialPortConfig*.cmake |
---|
124 | %{_qt5_libdir}/pkgconfig/Qt5SerialPort.pc |
---|
125 | %{_qt5_archdatadir}/mkspecs/modules/qt_lib_serialport*.pri |
---|
126 | |
---|
127 | %if 0%{?docs} |
---|
128 | %files doc |
---|
129 | %license LICENSE.FDL |
---|
130 | %{_qt5_docdir}/qtserialport.qch |
---|
131 | %{_qt5_docdir}/qtserialport/ |
---|
132 | %endif |
---|
133 | |
---|
134 | # no examples, yet |
---|
135 | %if 0%{?_qt5_examplesdir:1} |
---|
136 | %files examples |
---|
137 | %{_qt5_examplesdir}/ |
---|
138 | %endif |
---|
139 | |
---|
140 | |
---|
141 | %changelog |
---|
142 | * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.8-1 |
---|
143 | - new upstream release. |
---|
144 | |
---|
145 | * Mon Mar 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.7-1 |
---|
146 | - new upstream release. |
---|
147 | |
---|
148 | * Sun Oct 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.5-1 |
---|
149 | - new upstream release. |
---|
150 | |
---|
151 | * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> - 5.6.3-1 |
---|
152 | - update to 5.6.3 |
---|
153 | |
---|
154 | * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1 |
---|
155 | - new upstream release. |
---|
156 | - initial build for Vine Linux. |
---|
157 | |
---|
158 | * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1 |
---|
159 | - Update to 5.6.1 |
---|
160 | |
---|
161 | * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3 |
---|
162 | - rebuild |
---|
163 | |
---|
164 | * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2 |
---|
165 | - rebuild |
---|
166 | |
---|
167 | * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1 |
---|
168 | - 5.6.0 final release |
---|
169 | |
---|
170 | * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7.rc |
---|
171 | - Update to final RC |
---|
172 | |
---|
173 | * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6 |
---|
174 | - Update RC release |
---|
175 | |
---|
176 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta |
---|
177 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
178 | |
---|
179 | * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta |
---|
180 | - update source URL, use %%license, BR: cmake |
---|
181 | |
---|
182 | * Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3 |
---|
183 | - Update to final beta release |
---|
184 | |
---|
185 | * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2 |
---|
186 | - Official beta release |
---|
187 | |
---|
188 | * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1 |
---|
189 | - Start to implement 5.6.0 beta |
---|
190 | |
---|
191 | * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2 |
---|
192 | - Update to final release 5.5.1 |
---|
193 | |
---|
194 | * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1 |
---|
195 | - Update to Qt 5.5.1 RC1 |
---|
196 | |
---|
197 | * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3 |
---|
198 | - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping |
---|
199 | |
---|
200 | * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2 |
---|
201 | - tighten qtbase dep (#1233829) |
---|
202 | |
---|
203 | * Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1 |
---|
204 | - New final upstream release Qt 5.5.0 |
---|
205 | |
---|
206 | * Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc |
---|
207 | - Update for official RC1 released packages |
---|
208 | |
---|
209 | * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc |
---|
210 | - Qt 5.5.0 RC1 |
---|
211 | |
---|
212 | * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> 5.4.2-1 |
---|
213 | - 5.4.2 |
---|
214 | |
---|
215 | * Thu Apr 30 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-2 |
---|
216 | - Add qt5-qtserialport-examples (#1190202) |
---|
217 | |
---|
218 | * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-1 |
---|
219 | - 5.4.1 |
---|
220 | |
---|
221 | * Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1 |
---|
222 | - 5.4.0 (final) |
---|
223 | |
---|
224 | * Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc |
---|
225 | - 5.4.0-rc |
---|
226 | |
---|
227 | * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta |
---|
228 | - out-of-tree build, use %%qmake_qt5 |
---|
229 | |
---|
230 | * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta |
---|
231 | - 5.4.0-beta |
---|
232 | |
---|
233 | * Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1 |
---|
234 | - 5.3.2 |
---|
235 | |
---|
236 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2 |
---|
237 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
238 | |
---|
239 | * Thu Jul 24 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.1-1 |
---|
240 | - 5.3.1 |
---|
241 | |
---|
242 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2 |
---|
243 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
244 | |
---|
245 | * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1 |
---|
246 | - 5.3.0 |
---|
247 | |
---|
248 | * Sat Apr 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2 |
---|
249 | - clean .prl files (buildroot, excessive deps) (#1091630) |
---|
250 | |
---|
251 | * Thu Feb 06 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1 |
---|
252 | - 5.2.1 |
---|
253 | |
---|
254 | * Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2 |
---|
255 | - ready -examples subpkg |
---|
256 | |
---|
257 | * Thu Jan 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1 |
---|
258 | - first try |
---|