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