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