[10586] | 1 | |
---|
| 2 | %global qt_module qtsensors |
---|
| 3 | |
---|
| 4 | # define to build docs, need to undef this for bootstrapping |
---|
| 5 | # where qt5-qttools builds are not yet available |
---|
| 6 | # only primary archs (for now), allow secondary to bootstrap |
---|
| 7 | #global bootstrap 1 |
---|
| 8 | |
---|
| 9 | %if ! 0%{?bootstrap} |
---|
| 10 | %ifarch %{arm} %{ix86} x86_64 |
---|
[12287] | 11 | #define docs 1 |
---|
[10586] | 12 | %endif |
---|
| 13 | %endif |
---|
| 14 | |
---|
| 15 | #define prerelease |
---|
| 16 | |
---|
[12287] | 17 | %global qt5_minorver 5.12 |
---|
[12375] | 18 | %global qt5_version 5.12.8 |
---|
[11435] | 19 | #global qt5_patchlevel 1 |
---|
[10586] | 20 | |
---|
| 21 | Summary: Qt5 - Sensors component |
---|
| 22 | Name: qt5-%{qt_module} |
---|
| 23 | Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}} |
---|
| 24 | Release: 1%{?_dist_release} |
---|
| 25 | |
---|
| 26 | # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details |
---|
| 27 | License: LGPLv2 with exceptions or GPLv3 with exceptions |
---|
[12287] | 28 | Url: https://www.qt.io/ |
---|
[10586] | 29 | |
---|
| 30 | Vendor: Project Vine |
---|
| 31 | Distribution: Vine Linux |
---|
| 32 | |
---|
[12287] | 33 | 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 |
---|
[10586] | 34 | |
---|
[12287] | 35 | # filter qml/plugin provides |
---|
| 36 | %global __provides_exclude_from ^(%{_qt5_archdatadir}/qml/.*\\.so|%{_qt5_plugindir}/.*\\.so)$ |
---|
| 37 | |
---|
[10586] | 38 | BuildRequires: cmake |
---|
[12287] | 39 | BuildRequires: qt5-rpm-macros |
---|
| 40 | BuildRequires: qt5-srpm-macros |
---|
[10586] | 41 | BuildRequires: qt5-qtbase-devel >= %{version} |
---|
| 42 | BuildRequires: qt5-qtbase-private-devel |
---|
| 43 | %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} |
---|
[12287] | 44 | BuildRequires: qt5-qtdeclarative-devel |
---|
[10586] | 45 | |
---|
| 46 | %description |
---|
| 47 | The Qt Sensors API provides access to sensor hardware via QML and C++ |
---|
| 48 | interfaces. The Qt Sensors API also provides a motion gesture recognition |
---|
| 49 | API for devices. |
---|
| 50 | |
---|
| 51 | %package devel |
---|
| 52 | Summary: Development files for %{name} |
---|
| 53 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 54 | Requires: qt5-qtbase-devel%{?_isa} |
---|
| 55 | %description devel |
---|
| 56 | %{summary}. |
---|
| 57 | |
---|
| 58 | %if 0%{?docs} |
---|
| 59 | %package doc |
---|
| 60 | Summary: API documentation for %{name} |
---|
| 61 | License: GFDL |
---|
| 62 | Requires: %{name} = %{version}-%{release} |
---|
| 63 | BuildRequires: qt5-qdoc |
---|
| 64 | BuildRequires: qt5-qhelpgenerator |
---|
| 65 | BuildArch: noarch |
---|
| 66 | %description doc |
---|
| 67 | %{summary}. |
---|
| 68 | %endif |
---|
| 69 | |
---|
| 70 | %package examples |
---|
| 71 | Summary: Programming examples for %{name} |
---|
| 72 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 73 | %description examples |
---|
| 74 | %{summary}. |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %prep |
---|
[12287] | 78 | %setup -q -n %{qt_module}-everywhere-src-%{qt5_version} |
---|
[10586] | 79 | |
---|
| 80 | |
---|
| 81 | %build |
---|
| 82 | mkdir %{_target_platform} |
---|
| 83 | pushd %{_target_platform} |
---|
| 84 | %{qmake_qt5} .. |
---|
| 85 | |
---|
| 86 | make %{?_smp_mflags} |
---|
| 87 | |
---|
| 88 | %if 0%{?docs} |
---|
| 89 | make %{?_smp_mflags} docs |
---|
| 90 | %endif |
---|
| 91 | popd |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %install |
---|
| 95 | make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
| 96 | |
---|
| 97 | %if 0%{?docs} |
---|
| 98 | make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
| 99 | %endif |
---|
| 100 | |
---|
| 101 | ## .prl/.la file love |
---|
| 102 | # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs |
---|
| 103 | pushd %{buildroot}%{_qt5_libdir} |
---|
| 104 | for prl_file in libQt5*.prl ; do |
---|
| 105 | sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} |
---|
| 106 | if [ -f "$(basename ${prl_file} .prl).so" ]; then |
---|
| 107 | rm -fv "$(basename ${prl_file} .prl).la" |
---|
| 108 | sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} |
---|
| 109 | fi |
---|
| 110 | done |
---|
| 111 | popd |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | %post |
---|
| 115 | /sbin/ldconfig |
---|
| 116 | |
---|
| 117 | %postun |
---|
| 118 | /sbin/ldconfig |
---|
| 119 | |
---|
| 120 | %files |
---|
[12287] | 121 | %license LICENSE.* |
---|
[10586] | 122 | %{_qt5_libdir}/libQt5Sensors.so.5* |
---|
| 123 | %{_qt5_plugindir}/sensorgestures/ |
---|
| 124 | %{_qt5_plugindir}/sensors/ |
---|
| 125 | %{_qt5_archdatadir}/qml/QtSensors/ |
---|
| 126 | %dir %{_qt5_libdir}/cmake/Qt5Sensors/ |
---|
| 127 | %{_qt5_libdir}/cmake/Qt5Sensors/Qt5Sensors_*Plugin.cmake |
---|
| 128 | |
---|
| 129 | %files devel |
---|
| 130 | %{_qt5_headerdir}/QtSensors/ |
---|
| 131 | %{_qt5_libdir}/libQt5Sensors.so |
---|
| 132 | %{_qt5_libdir}/libQt5Sensors.prl |
---|
| 133 | %{_qt5_libdir}/cmake/Qt5Sensors/Qt5SensorsConfig*.cmake |
---|
| 134 | %{_qt5_libdir}/pkgconfig/Qt5Sensors.pc |
---|
| 135 | %{_qt5_archdatadir}/mkspecs/modules/qt_lib_sensors*.pri |
---|
| 136 | |
---|
| 137 | %if 0%{?docs} |
---|
| 138 | %files doc |
---|
| 139 | %license LICENSE.FDL |
---|
| 140 | %{_qt5_docdir}/qtsensors.qch |
---|
| 141 | %{_qt5_docdir}/qtsensors/ |
---|
| 142 | %endif |
---|
| 143 | |
---|
| 144 | %if 0%{?_qt5_examplesdir:1} |
---|
| 145 | %files examples |
---|
| 146 | %{_qt5_examplesdir}/ |
---|
| 147 | %endif |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | %changelog |
---|
[12375] | 151 | * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.8-1 |
---|
| 152 | - new upstream release. |
---|
| 153 | |
---|
[12348] | 154 | * Mon Mar 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.7-1 |
---|
| 155 | - new upstream release. |
---|
| 156 | |
---|
[12287] | 157 | * Sun Oct 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.5-1 |
---|
| 158 | - new upstream release. |
---|
| 159 | |
---|
[11435] | 160 | * Tue Jan 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.3-1 |
---|
| 161 | - new upstream release. |
---|
| 162 | |
---|
[10586] | 163 | * Sun Jul 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1 |
---|
| 164 | - initial build for Vine Linux. |
---|
| 165 | - new upstream release. |
---|
| 166 | |
---|
| 167 | * Wed Jun 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-2 |
---|
| 168 | - drop pkgconfig-style deps, BR: qt5-qtbase-private-devel |
---|
| 169 | |
---|
| 170 | * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1 |
---|
| 171 | - Update to 5.6.1 |
---|
| 172 | |
---|
| 173 | * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3 |
---|
| 174 | - rebuild |
---|
| 175 | |
---|
| 176 | * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2 |
---|
| 177 | - rebuild |
---|
| 178 | |
---|
| 179 | * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1 |
---|
| 180 | - 5.6.0 final release |
---|
| 181 | |
---|
| 182 | * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.9.rc |
---|
| 183 | - Update to final RC |
---|
| 184 | |
---|
| 185 | * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8 |
---|
| 186 | - Update RC release |
---|
| 187 | |
---|
| 188 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.7.beta |
---|
| 189 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 190 | |
---|
| 191 | * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.6.beta |
---|
| 192 | - update source URL, BR: cmake, use %%license |
---|
| 193 | |
---|
| 194 | * Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.5 |
---|
| 195 | - Update to final beta release |
---|
| 196 | |
---|
| 197 | * Fri Dec 11 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-0.4 |
---|
| 198 | - restore bootstrap macro support |
---|
| 199 | - only BR: qt5-qdoc in -doc subpkg |
---|
| 200 | |
---|
| 201 | * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3 |
---|
| 202 | - Official beta release |
---|
| 203 | |
---|
| 204 | * Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2 |
---|
| 205 | - restore bootstrap macro support |
---|
| 206 | |
---|
| 207 | * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1 |
---|
| 208 | - Start to implement 5.6.0 beta |
---|
| 209 | |
---|
| 210 | * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2 |
---|
| 211 | - Update to final release 5.5.1 |
---|
| 212 | |
---|
| 213 | * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1 |
---|
| 214 | - Update to Qt 5.5.1 RC1 |
---|
| 215 | |
---|
| 216 | * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3 |
---|
| 217 | - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping |
---|
| 218 | |
---|
| 219 | * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2 |
---|
| 220 | - tighten qtbase dep (#1233829), (re)enable docs |
---|
| 221 | |
---|
| 222 | * Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1 |
---|
| 223 | - New final upstream release Qt 5.5.0 |
---|
| 224 | |
---|
| 225 | * Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc |
---|
| 226 | - Update for official RC1 released packages |
---|
| 227 | |
---|
| 228 | * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1 |
---|
| 229 | - 5.4.2 |
---|
| 230 | |
---|
| 231 | * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3 |
---|
| 232 | - Rebuilt for GCC 5 C++11 ABI change |
---|
| 233 | |
---|
| 234 | * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2 |
---|
| 235 | - rebuild (gcc5) |
---|
| 236 | |
---|
| 237 | * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1 |
---|
| 238 | - 5.4.1 |
---|
| 239 | |
---|
| 240 | * Mon Feb 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-3 |
---|
| 241 | - rebuild (gcc5) |
---|
| 242 | |
---|
| 243 | * Wed Dec 31 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-2 |
---|
| 244 | - BR: pkgconfig(Qt5Qml) > 5.4.0 (#1177985) |
---|
| 245 | |
---|
| 246 | * Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1 |
---|
| 247 | - 5.4.0 (final) |
---|
| 248 | |
---|
| 249 | * Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc |
---|
| 250 | - 5.4.0-rc |
---|
| 251 | |
---|
| 252 | * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta |
---|
| 253 | - out-of-tree build, use %%qmake_qt5 |
---|
| 254 | |
---|
| 255 | * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta |
---|
| 256 | - 5.4.0-beta |
---|
| 257 | |
---|
| 258 | * Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1 |
---|
| 259 | - 5.3.2 |
---|
| 260 | |
---|
| 261 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2 |
---|
| 262 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 263 | |
---|
| 264 | * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1 |
---|
| 265 | - 5.3.1 |
---|
| 266 | |
---|
| 267 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2 |
---|
| 268 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 269 | |
---|
| 270 | * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1 |
---|
| 271 | - 5.3.0 |
---|
| 272 | |
---|
| 273 | * Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2 |
---|
| 274 | - sanitize .prl files |
---|
| 275 | |
---|
| 276 | * Thu Feb 06 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1 |
---|
| 277 | - 5.2.1 |
---|
| 278 | |
---|
| 279 | * Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2 |
---|
| 280 | - -examples subpkg |
---|
| 281 | |
---|
| 282 | * Thu Jan 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1 |
---|
| 283 | - first try |
---|