2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%global qt_module qtdeclarative
|
2013-10-02 14:23:58 +00:00
|
|
|
|
|
|
|
# define to build docs, need to undef this for bootstrapping
|
|
|
|
# where qt5-qttools builds are not yet available
|
2013-11-25 13:38:23 +00:00
|
|
|
# only primary archs (for now), allow secondary to bootstrap
|
2014-01-13 20:23:07 +00:00
|
|
|
%if ! 0%{?bootstrap}
|
2013-11-25 13:38:23 +00:00
|
|
|
%ifarch %{arm} %{ix86} x86_64
|
2013-10-25 00:55:42 +00:00
|
|
|
%define docs 1
|
2013-11-25 13:38:23 +00:00
|
|
|
%endif
|
2014-01-13 20:15:09 +00:00
|
|
|
%endif
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
Summary: Qt5 - QtDeclarative component
|
|
|
|
Name: qt5-%{qt_module}
|
2014-10-18 23:14:08 +00:00
|
|
|
Version: 5.4.0
|
2014-12-10 13:26:13 +00:00
|
|
|
Release: 1%{?dist}
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
|
|
|
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
|
|
|
Url: http://qt-project.org/
|
2013-10-02 14:23:58 +00:00
|
|
|
%if 0%{?pre:1}
|
2014-10-18 23:14:08 +00:00
|
|
|
Source0: http://download.qt-project.org/development_releases/qt/5.4/%{version}-%{pre}/submodules/%{qt_module}-opensource-src-%{version}-%{pre}.tar.xz
|
2013-10-02 14:23:58 +00:00
|
|
|
%else
|
2014-10-18 23:14:08 +00:00
|
|
|
Source0: http://download.qt-project.org/official_releases/qt/5.4/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
|
2013-10-02 14:23:58 +00:00
|
|
|
%endif
|
|
|
|
|
2014-10-18 23:14:08 +00:00
|
|
|
# FIXME? now bases on whether qtbase supports sse2 (or not)
|
2013-12-12 18:19:42 +00:00
|
|
|
# support no_sse2 CONFIG (fedora i686 builds cannot assume -march=pentium4 -msse2 -mfpmath=sse flags, or the JIT that needs them)
|
|
|
|
# https://codereview.qt-project.org/#change,73710
|
|
|
|
Patch1: qtdeclarative-opensource-src-5.2.0-no_sse2.patch
|
2013-12-06 03:51:14 +00:00
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
Obsoletes: qt5-qtjsbackend < 5.2.0
|
2013-08-20 12:03:33 +00:00
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
BuildRequires: qt5-qtbase-devel >= %{version}
|
2014-01-13 20:23:07 +00:00
|
|
|
%if ! 0%{?bootstrap}
|
2014-01-06 15:01:20 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
2014-01-13 20:23:07 +00:00
|
|
|
%endif
|
2013-10-02 17:26:44 +00:00
|
|
|
BuildRequires: python
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
|
|
|
|
|
|
|
|
%description
|
2014-10-18 23:14:08 +00:00
|
|
|
%{summary}.
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2013-10-02 14:23:58 +00:00
|
|
|
Obsoletes: qt5-qtjsbackend-devel < 5.2.0
|
2013-06-21 14:41:30 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: qt5-qtbase-devel%{?_isa}
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static library files for %{name}
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
%description static
|
|
|
|
%{summary}.
|
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
%package doc
|
|
|
|
Summary: API documentation for %{name}
|
2014-10-18 23:14:08 +00:00
|
|
|
License: GFDL
|
2013-10-02 14:23:58 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
# for qhelpgenerator
|
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
|
2014-01-26 23:33:01 +00:00
|
|
|
%package examples
|
|
|
|
Summary: Programming examples for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description examples
|
|
|
|
%{summary}.
|
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}
|
|
|
|
|
2014-10-18 23:14:08 +00:00
|
|
|
#patch1 -p1 -b .no_sse2
|
2013-12-06 03:51:14 +00:00
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%build
|
2013-12-10 17:09:23 +00:00
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
2014-11-03 18:10:42 +00:00
|
|
|
%{qmake_qt5} ..
|
2013-12-10 17:09:23 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
2013-06-21 14:41:30 +00:00
|
|
|
|
2014-10-18 23:14:08 +00:00
|
|
|
#ifarch %{ix86}
|
|
|
|
%if 0
|
2013-12-12 18:19:42 +00:00
|
|
|
# build libQt5Qml with no_sse2
|
|
|
|
mkdir -p %{_target_platform}-no_sse2
|
|
|
|
pushd %{_target_platform}-no_sse2
|
|
|
|
%{_qt5_qmake} -config no_sse2 ..
|
|
|
|
make sub-src-clean
|
|
|
|
make %{?_smp_mflags} -C src/qml
|
|
|
|
popd
|
2013-10-02 14:23:58 +00:00
|
|
|
%endif
|
2013-06-21 14:41:30 +00:00
|
|
|
|
2013-12-13 14:51:41 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
make %{?_smp_mflags} docs -C %{_target_platform}
|
|
|
|
%endif
|
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%install
|
2013-12-10 17:09:23 +00:00
|
|
|
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
|
|
|
|
2014-10-18 23:32:03 +00:00
|
|
|
#ifarch %{ix86}
|
|
|
|
%if 0
|
2013-12-10 17:09:23 +00:00
|
|
|
mkdir -p %{buildroot}%{_qt5_libdir}/sse2
|
|
|
|
mv %{buildroot}%{_qt5_libdir}/libQt5Qml.so.5* %{buildroot}%{_qt5_libdir}/sse2/
|
2013-12-12 18:19:42 +00:00
|
|
|
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}-no_sse2/src/qml
|
2013-12-10 17:09:23 +00:00
|
|
|
%endif
|
2013-06-21 14:41:30 +00:00
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%if 0%{?docs}
|
2013-12-10 17:09:23 +00:00
|
|
|
make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
2013-10-02 14:23:58 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# hardlink files to %{_bindir}, add -qt5 postfix to not conflict
|
2013-06-21 14:41:30 +00:00
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
pushd %{buildroot}%{_qt5_bindir}
|
|
|
|
for i in * ; do
|
|
|
|
case "${i}" in
|
2014-09-16 14:06:49 +00:00
|
|
|
# qt4 conflicts
|
2013-06-21 14:41:30 +00:00
|
|
|
qmlplugindump|qmlprofiler)
|
2013-10-02 14:23:58 +00:00
|
|
|
ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
|
|
|
|
ln -sv ${i} ${i}-qt5
|
2013-06-21 14:41:30 +00:00
|
|
|
;;
|
2014-09-16 14:06:49 +00:00
|
|
|
# qtchooser stuff
|
|
|
|
qml|qmlbundle|qmlmin|qmlscene)
|
|
|
|
ln -v ${i} %{buildroot}%{_bindir}/${i}
|
|
|
|
ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
|
|
|
|
ln -sv ${i} ${i}-qt5
|
2014-09-16 15:00:36 +00:00
|
|
|
;;
|
2013-10-02 14:23:58 +00:00
|
|
|
*)
|
|
|
|
ln -v ${i} %{buildroot}%{_bindir}/${i}
|
2013-06-21 14:41:30 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
## .prl/.la file love
|
|
|
|
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
|
|
|
|
pushd %{buildroot}%{_qt5_libdir}
|
|
|
|
for prl_file in libQt5*.prl ; do
|
|
|
|
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
|
|
|
|
if [ -f "$(basename ${prl_file} .prl).so" ]; then
|
|
|
|
rm -fv "$(basename ${prl_file} .prl).la"
|
|
|
|
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2014-10-18 23:14:08 +00:00
|
|
|
%doc LICENSE.GPL* LICENSE.LGPL* LGPL_EXCEPTION.txt
|
2013-06-21 14:41:30 +00:00
|
|
|
%doc dist/changes*
|
|
|
|
%{_qt5_libdir}/libQt5Qml.so.5*
|
2014-10-18 23:14:08 +00:00
|
|
|
#ifarch %{ix86}
|
|
|
|
%if 0
|
2013-12-10 17:09:23 +00:00
|
|
|
%{_qt5_libdir}/sse2/libQt5Qml.so.5*
|
|
|
|
%endif
|
2013-06-21 14:41:30 +00:00
|
|
|
%{_qt5_libdir}/libQt5Quick.so.5*
|
2014-05-21 14:35:59 +00:00
|
|
|
%{_qt5_libdir}/libQt5QuickWidgets.so.5*
|
2013-06-21 14:41:30 +00:00
|
|
|
%{_qt5_libdir}/libQt5QuickParticles.so.5*
|
|
|
|
%{_qt5_libdir}/libQt5QuickTest.so.5*
|
|
|
|
%{_qt5_plugindir}/qmltooling/
|
|
|
|
%{_qt5_archdatadir}/qml/
|
2014-10-18 23:14:08 +00:00
|
|
|
%{_qt5_libdir}/cmake/Qt5Qml/Qt5Qml_QTcpServerConnection.cmake
|
|
|
|
%{_qt5_libdir}/cmake/Qt5Qml/Qt5Qml_QtQuick2Plugin.cmake
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_bindir}/qml*
|
|
|
|
%{_qt5_bindir}/qml*
|
|
|
|
%{_qt5_headerdir}/Qt*/
|
|
|
|
%{_qt5_libdir}/libQt5Qml.so
|
|
|
|
%{_qt5_libdir}/libQt5Qml.prl
|
|
|
|
%{_qt5_libdir}/libQt5Quick*.so
|
2014-05-21 14:35:59 +00:00
|
|
|
%{_qt5_libdir}/libQt5QuickWidgets.so.5
|
2013-06-21 14:41:30 +00:00
|
|
|
%{_qt5_libdir}/libQt5Quick*.prl
|
2014-10-18 23:14:08 +00:00
|
|
|
%{_qt5_libdir}/cmake/Qt5*/Qt5*Config*.cmake
|
2013-06-21 14:41:30 +00:00
|
|
|
%{_qt5_libdir}/pkgconfig/Qt5*.pc
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/*.pri
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%{_qt5_libdir}/libQt5QmlDevTools.*a
|
|
|
|
%{_qt5_libdir}/libQt5QmlDevTools.prl
|
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
%files doc
|
|
|
|
%{_qt5_docdir}/qtqml.qch
|
|
|
|
%{_qt5_docdir}/qtqml/
|
|
|
|
%{_qt5_docdir}/qtquick.qch
|
|
|
|
%{_qt5_docdir}/qtquick/
|
|
|
|
%endif
|
|
|
|
|
2014-01-27 13:00:11 +00:00
|
|
|
%if 0%{?_qt5_examplesdir:1}
|
2014-01-26 23:33:01 +00:00
|
|
|
%files examples
|
|
|
|
%{_qt5_examplesdir}/
|
2014-01-27 13:00:11 +00:00
|
|
|
%endif
|
2014-01-26 23:33:01 +00:00
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%changelog
|
2014-12-10 13:26:13 +00:00
|
|
|
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
|
|
|
|
- 5.4.0 (final)
|
|
|
|
|
2014-11-28 15:53:26 +00:00
|
|
|
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
|
|
|
|
- 5.4.0-rc
|
|
|
|
|
2014-11-03 18:10:42 +00:00
|
|
|
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
|
|
|
|
- use new %%qmake_qt5 macro
|
|
|
|
|
2014-10-18 23:14:08 +00:00
|
|
|
* Sat Oct 18 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.4.0-0.1.beta
|
|
|
|
- 5.4.0-beta
|
|
|
|
- %%ix84: drop sse2-optimized bits, need to rethink if/how to support it now
|
|
|
|
|
2014-09-16 17:40:31 +00:00
|
|
|
* Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1
|
|
|
|
- 5.3.2
|
|
|
|
|
2014-09-16 14:06:49 +00:00
|
|
|
* Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.1-3
|
|
|
|
- -qt5 wrappers for qml qmlbundle qmlmin qmlscene
|
|
|
|
|
2014-08-17 22:48:33 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-25 14:50:07 +00:00
|
|
|
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
|
|
|
|
- 5.3.1
|
|
|
|
|
2014-06-08 01:20:08 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-21 14:35:59 +00:00
|
|
|
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
|
|
|
|
- 5.3.0
|
|
|
|
|
2014-02-05 15:21:48 +00:00
|
|
|
* Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
|
|
|
|
- 5.2.1
|
|
|
|
|
2014-02-02 21:28:31 +00:00
|
|
|
* Sun Feb 02 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> 5.2.0-6
|
|
|
|
- Add AArch64 support (RHBUG: 1040452, QTBUG-35528)
|
|
|
|
|
2014-01-27 13:00:11 +00:00
|
|
|
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-5
|
|
|
|
- build -examples only if supported
|
|
|
|
|
2014-01-26 23:33:01 +00:00
|
|
|
* Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-4
|
|
|
|
- -examples subpkg
|
|
|
|
|
2014-01-14 13:47:27 +00:00
|
|
|
* Tue Jan 14 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
|
|
|
|
- epel7 bootstrapped
|
|
|
|
|
2014-01-06 15:01:20 +00:00
|
|
|
* Mon Jan 06 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
|
|
|
|
- BR: qt5-qtxmlpatterns-devel (#1048558)
|
|
|
|
|
2013-12-12 13:28:35 +00:00
|
|
|
* Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
|
|
|
|
- 5.2.0
|
|
|
|
|
2013-12-10 17:09:23 +00:00
|
|
|
* Tue Dec 10 2013 Rex Dieter <rdieter@fedoraproject.org> - 5.2.0-0.12.rc1
|
|
|
|
- support out-of-src-tree builds
|
|
|
|
- %%ix86: install sse2/jit version to %%_qt5_libdir/sse2/
|
|
|
|
|
2013-12-06 03:51:14 +00:00
|
|
|
* Thu Dec 05 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.11.rc1
|
|
|
|
- %%ix86: cannot assume sse2 (and related support) or the JIT that requires it... disable.
|
|
|
|
|
2013-12-02 14:19:10 +00:00
|
|
|
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
|
|
|
|
- 5.2.0-rc1
|
|
|
|
|
2013-11-25 13:38:23 +00:00
|
|
|
* Mon Nov 25 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1
|
|
|
|
- enable -doc only on primary archs (allow secondary bootstrap)
|
|
|
|
|
2013-11-09 19:21:51 +00:00
|
|
|
* Sat Nov 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
|
|
|
|
- rebuild (arm/qreal)
|
|
|
|
|
2013-10-25 00:55:42 +00:00
|
|
|
* Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
|
|
|
|
- 5.2.0-beta1
|
|
|
|
|
2013-10-16 18:06:04 +00:00
|
|
|
* Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
|
|
|
|
- bootstrap ppc
|
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
* Tue Oct 01 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
|
|
|
|
- 5.2.0-alpha
|
|
|
|
- Obsoletes: qt5-qtjsbackend
|
|
|
|
- -doc subpkg
|
|
|
|
|
2013-08-28 16:26:42 +00:00
|
|
|
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
|
|
|
|
- 5.1.1
|
|
|
|
|
2013-08-20 12:03:33 +00:00
|
|
|
* Tue Aug 20 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-4
|
|
|
|
- qt5-qtjsbackend only supports ix86, x86_64 and arm
|
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
* Tue May 14 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-3
|
|
|
|
- fix qmlprofiler conflict with qt-creator
|
|
|
|
|
|
|
|
* Fri Apr 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
|
|
|
|
- fix qmlplugindump conflict with qt4-devel
|
|
|
|
- include license files, dist/changes*
|
|
|
|
|
|
|
|
* Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
|
|
|
|
- 5.0.2
|
|
|
|
|
|
|
|
* Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
|
|
|
|
- first try
|
|
|
|
|