[10586] | 1 | |
---|
| 2 | %global qt_module qtwebsockets |
---|
| 3 | |
---|
| 4 | %define docs 1 |
---|
| 5 | |
---|
| 6 | #define prerelease |
---|
| 7 | |
---|
| 8 | %global qt5_minorver 5.6 |
---|
[11435] | 9 | %global qt5_version 5.6.3 |
---|
| 10 | #global qt5_patchlevel 1 |
---|
[10586] | 11 | |
---|
| 12 | Summary: Qt5 - WebSockets component |
---|
| 13 | Name: qt5-%{qt_module} |
---|
| 14 | Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}} |
---|
| 15 | Release: 1%{?_dist_release} |
---|
| 16 | # See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details |
---|
| 17 | # See also http://doc.qt.io/qt-5/licensing.html |
---|
| 18 | License: LGPLv2 with exceptions or GPLv3 with exceptions |
---|
| 19 | Url: http://qt-project.org/ |
---|
| 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: qt5-qtdeclarative-devel >= %{version} |
---|
| 29 | |
---|
| 30 | BuildRequires: qt5-qtbase-private-devel |
---|
| 31 | %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | The QtWebSockets module implements the WebSocket protocol as specified in RFC |
---|
| 35 | 6455. It solely depends on Qt (no external dependencies). |
---|
| 36 | |
---|
| 37 | %package devel |
---|
| 38 | Summary: Development files for %{name} |
---|
| 39 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 40 | Requires: qt5-qtbase-devel%{?_isa} |
---|
| 41 | %description devel |
---|
| 42 | %{summary}. |
---|
| 43 | |
---|
| 44 | %if 0%{?docs} |
---|
| 45 | %package doc |
---|
| 46 | Summary: API documentation for %{name} |
---|
| 47 | License: GFDL |
---|
| 48 | Requires: %{name} = %{version}-%{release} |
---|
| 49 | BuildRequires: qt5-qdoc |
---|
| 50 | BuildRequires: qt5-qhelpgenerator |
---|
| 51 | BuildArch: noarch |
---|
| 52 | %description doc |
---|
| 53 | %{summary}. |
---|
| 54 | %endif |
---|
| 55 | |
---|
| 56 | %package examples |
---|
| 57 | Summary: Programming examples for %{name} |
---|
| 58 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 59 | %description examples |
---|
| 60 | %{summary}. |
---|
| 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 | |
---|
| 71 | make %{?_smp_mflags} |
---|
| 72 | |
---|
| 73 | %if 0%{?docs} |
---|
| 74 | # HACK to avoid multilib conflicts in noarch content |
---|
| 75 | # see also https://bugreports.qt-project.org/browse/QTBUG-42071 |
---|
| 76 | QT_HASH_SEED=0; export QT_HASH_SEED |
---|
| 77 | make %{?_smp_mflags} docs |
---|
| 78 | %endif |
---|
| 79 | popd |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %install |
---|
| 83 | make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
| 84 | |
---|
| 85 | %if 0%{?docs} |
---|
| 86 | make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} |
---|
| 87 | %endif |
---|
| 88 | |
---|
| 89 | ## .prl/.la file love |
---|
| 90 | # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs |
---|
| 91 | pushd %{buildroot}%{_qt5_libdir} |
---|
| 92 | for prl_file in libQt5*.prl ; do |
---|
| 93 | sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} |
---|
| 94 | if [ -f "$(basename ${prl_file} .prl).so" ]; then |
---|
| 95 | rm -fv "$(basename ${prl_file} .prl).la" |
---|
| 96 | sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} |
---|
| 97 | fi |
---|
| 98 | done |
---|
| 99 | popd |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %post -p /sbin/ldconfig |
---|
| 103 | %postun -p /sbin/ldconfig |
---|
| 104 | |
---|
| 105 | %files |
---|
| 106 | %license LICENSE.LGPL* |
---|
| 107 | %{_qt5_libdir}/libQt5WebSockets.so.5* |
---|
| 108 | %{_qt5_archdatadir}/qml/Qt/WebSockets/ |
---|
| 109 | |
---|
| 110 | %files devel |
---|
| 111 | %{_qt5_headerdir}/QtWebSockets/ |
---|
| 112 | %{_qt5_libdir}/libQt5WebSockets.so |
---|
| 113 | %{_qt5_libdir}/libQt5WebSockets.prl |
---|
| 114 | %dir %{_qt5_libdir}/cmake/Qt5WebSockets/ |
---|
| 115 | %{_qt5_libdir}/cmake/Qt5WebSockets/Qt5WebSocketsConfig*.cmake |
---|
| 116 | %{_qt5_libdir}/pkgconfig/Qt5WebSockets.pc |
---|
| 117 | %{_qt5_libdir}/qt5/qml/QtWebSockets/ |
---|
| 118 | %{_qt5_archdatadir}/mkspecs/modules/qt_lib_websockets*.pri |
---|
| 119 | |
---|
| 120 | %if 0%{?docs} |
---|
| 121 | %files doc |
---|
| 122 | %{_qt5_docdir}/%{qt_module}.qch |
---|
| 123 | %{_qt5_docdir}/%{qt_module}/ |
---|
| 124 | %endif |
---|
| 125 | |
---|
| 126 | %if 0%{?_qt5_examplesdir:1} |
---|
| 127 | %files examples |
---|
| 128 | %{_qt5_examplesdir}/ |
---|
| 129 | %endif |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | %changelog |
---|
[11435] | 133 | * Tue Jan 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.3-1 |
---|
| 134 | - new upstream release. |
---|
| 135 | |
---|
[10586] | 136 | * Sun Jul 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1 |
---|
| 137 | - initial build for Vine Linux. |
---|
| 138 | - new upstream release. |
---|
| 139 | |
---|
| 140 | * Wed Jun 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-2 |
---|
| 141 | - drop pkgconfig-style deps, BR: qt5-qtbase-private-devel |
---|
| 142 | |
---|
| 143 | * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1 |
---|
| 144 | - Update to 5.6.1 |
---|
| 145 | |
---|
| 146 | * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3 |
---|
| 147 | - rebuild |
---|
| 148 | |
---|
| 149 | * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2 |
---|
| 150 | - rebuild |
---|
| 151 | |
---|
| 152 | * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1 |
---|
| 153 | - 5.6.0 final release |
---|
| 154 | |
---|
| 155 | * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc |
---|
| 156 | - Update to final RC |
---|
| 157 | |
---|
| 158 | * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7.rc |
---|
| 159 | - Integrate RC release |
---|
| 160 | |
---|
| 161 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.beta |
---|
| 162 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 163 | |
---|
| 164 | * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.beta |
---|
| 165 | - update source URL, use %%license, BR: cmake |
---|
| 166 | |
---|
| 167 | * Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4 |
---|
| 168 | - Update to final beta release |
---|
| 169 | |
---|
| 170 | * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3 |
---|
| 171 | - Official beta release |
---|
| 172 | |
---|
| 173 | * Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2 |
---|
| 174 | - restore bootstrap macro support |
---|
| 175 | |
---|
| 176 | * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1 |
---|
| 177 | - Start to implement 5.6.0 beta |
---|
| 178 | |
---|
| 179 | * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2 |
---|
| 180 | - Update to final release 5.5.1 |
---|
| 181 | |
---|
| 182 | * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1 |
---|
| 183 | - Update to Qt 5.5.1 RC1 |
---|
| 184 | |
---|
| 185 | * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3 |
---|
| 186 | - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping |
---|
| 187 | |
---|
| 188 | * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2 |
---|
| 189 | - tighten qtbase dep (#1233829) |
---|
| 190 | |
---|
| 191 | * Thu Jul 09 2015 Jan Grulich <jgrulich@redhat.com> - 5.5.0-1 |
---|
| 192 | - 5.5.0 |
---|
| 193 | |
---|
| 194 | * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.2-2 |
---|
| 195 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 196 | |
---|
| 197 | * Sun Jun 07 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-1 |
---|
| 198 | - 5.4.2 |
---|
| 199 | |
---|
| 200 | * Fri Apr 10 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-1 |
---|
| 201 | - 5.4.1 |
---|
| 202 | |
---|
| 203 | * Tue Dec 23 2014 Taylor Braun-Jones <taylor.braun-jones@ge.com> - 5.4.0-1 |
---|
| 204 | - Initial release. |
---|