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