2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%global qt_module qtdeclarative
|
2013-10-25 00:55:42 +00:00
|
|
|
%define pre beta1
|
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-10-25 00:55:42 +00:00
|
|
|
%define docs 1
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
Summary: Qt5 - QtDeclarative component
|
|
|
|
Name: qt5-%{qt_module}
|
2013-10-02 14:23:58 +00:00
|
|
|
Version: 5.2.0
|
2013-10-25 00:55:42 +00:00
|
|
|
Release: 0.3.%{pre}%{?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}
|
|
|
|
Source0: http://download.qt-project.org/development_releases/qt/5.2/%{version}-%{pre}/submodules/%{qt_module}-opensource-src-%{version}-%{pre}.tar.xz
|
|
|
|
%else
|
|
|
|
Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
|
|
|
|
%endif
|
|
|
|
|
|
|
|
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}
|
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
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
%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}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
# for qhelpgenerator
|
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{_qt5_qmake}
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
make %{?_smp_mflags} docs
|
|
|
|
%endif
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%install
|
2013-06-21 14:41:30 +00:00
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
2013-10-02 14:23:58 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
make install_docs INSTALL_ROOT=%{buildroot}
|
|
|
|
%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
|
|
|
|
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
|
|
|
;;
|
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
|
|
|
|
%doc LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt
|
|
|
|
%doc dist/changes*
|
2013-10-02 14:23:58 +00:00
|
|
|
%{_bindir}/v4
|
|
|
|
%{_qt5_bindir}/v4
|
2013-06-21 14:41:30 +00:00
|
|
|
%{_qt5_libdir}/libQt5Qml.so.5*
|
|
|
|
%{_qt5_libdir}/libQt5Quick.so.5*
|
|
|
|
%{_qt5_libdir}/libQt5QuickParticles.so.5*
|
|
|
|
%{_qt5_libdir}/libQt5QuickTest.so.5*
|
|
|
|
%{_qt5_plugindir}/accessible/libqtaccessiblequick.so
|
|
|
|
%{_qt5_plugindir}/qmltooling/
|
|
|
|
%{_qt5_archdatadir}/qml/
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_bindir}/qml*
|
|
|
|
%{_qt5_bindir}/qml*
|
|
|
|
%{_qt5_headerdir}/Qt*/
|
|
|
|
%{_qt5_libdir}/libQt5Qml.so
|
|
|
|
%{_qt5_libdir}/libQt5Qml.prl
|
|
|
|
%{_qt5_libdir}/libQt5Quick*.so
|
|
|
|
%{_qt5_libdir}/libQt5Quick*.prl
|
|
|
|
%{_qt5_libdir}/cmake/Qt5*/
|
|
|
|
%{_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/
|
|
|
|
%{_qt5_docdir}/qtquickdialogs.qch
|
|
|
|
%{_qt5_docdir}/qtquickdialogs/
|
|
|
|
%endif
|
|
|
|
|
2013-06-21 14:41:30 +00:00
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|