Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%global qt_module qtdeclarative
Rex Dieter 2591c81
%define pre rc1
Rex Dieter 0588dca
Rex Dieter 0588dca
# define to build docs, need to undef this for bootstrapping
Rex Dieter 0588dca
# where qt5-qttools builds are not yet available
Rex Dieter b0c1989
# only primary archs (for now), allow secondary to bootstrap
Rex Dieter b0c1989
%ifarch %{arm} %{ix86} x86_64
Rex Dieter 346c1b5
%define docs 1
Rex Dieter b0c1989
%endif
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
Summary: Qt5 - QtDeclarative component
Rex Dieter 6a6ead6
Name:    qt5-%{qt_module}
Rex Dieter 0588dca
Version: 5.2.0
Rex Dieter 4bc3db1
Release: 0.11.%{pre}%{?dist}
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
Rex Dieter 6a6ead6
License: LGPLv2 with exceptions or GPLv3 with exceptions
Rex Dieter 6a6ead6
Url: http://qt-project.org/
Rex Dieter 0588dca
%if 0%{?pre:1}
Rex Dieter 0588dca
Source0: http://download.qt-project.org/development_releases/qt/5.2/%{version}-%{pre}/submodules/%{qt_module}-opensource-src-%{version}-%{pre}.tar.xz
Rex Dieter 0588dca
%else
Rex Dieter 0588dca
Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
Rex Dieter 0588dca
%endif
Rex Dieter 0588dca
Rex Dieter 4bc3db1
# fedora i686 builds cannot assume -march=pentium4 -msse2 -mfpmath=sse flags, or the JIT that needs them
Rex Dieter 4bc3db1
Patch1: qtdeclarative-opensource-src-5.2.0-fedora_i686_flags.patch
Rex Dieter 4bc3db1
Rex Dieter 0588dca
Obsoletes: qt5-qtjsbackend < 5.2.0
Rex Dieter a4128f9
Rex Dieter 6a6ead6
BuildRequires: qt5-qtbase-devel >= %{version}
Rex Dieter 9575813
BuildRequires: python
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%description
Rex Dieter 6a6ead6
%{summary}
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%package devel
Rex Dieter 6a6ead6
Summary: Development files for %{name}
Rex Dieter 0588dca
Obsoletes: qt5-qtjsbackend-devel < 5.2.0
Rex Dieter 6a6ead6
Requires: %{name}%{?_isa} = %{version}-%{release}
Rex Dieter 6a6ead6
Requires: qt5-qtbase-devel%{?_isa}
Rex Dieter 6a6ead6
%description devel
Rex Dieter 6a6ead6
%{summary}.
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%package static
Rex Dieter 6a6ead6
Summary: Static library files for %{name}
Rex Dieter 6a6ead6
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Rex Dieter 6a6ead6
%description static
Rex Dieter 6a6ead6
%{summary}.
Rex Dieter 6a6ead6
Rex Dieter 0588dca
%if 0%{?docs}
Rex Dieter 0588dca
%package doc
Rex Dieter 0588dca
Summary: API documentation for %{name}
Rex Dieter 0588dca
Requires: %{name} = %{version}-%{release}
Rex Dieter 0588dca
# for qhelpgenerator
Rex Dieter 0588dca
BuildRequires: qt5-qttools-devel
Rex Dieter 0588dca
BuildArch: noarch
Rex Dieter 0588dca
%description doc
Rex Dieter 0588dca
%{summary}.
Rex Dieter 0588dca
%endif
Rex Dieter 0588dca
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%prep
Rex Dieter 6a6ead6
%setup -q -n %{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}
Rex Dieter 6a6ead6
Rex Dieter 4bc3db1
%patch1 -p1 -b .fedora_i686_flags
Rex Dieter 4bc3db1
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%build
Rex Dieter 6a6ead6
%{_qt5_qmake}
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
make %{?_smp_mflags}
Rex Dieter 6a6ead6
Rex Dieter 0588dca
%if 0%{?docs}
Rex Dieter 0588dca
make %{?_smp_mflags} docs
Rex Dieter 0588dca
%endif
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
Rex Dieter 0588dca
%install
Rex Dieter 6a6ead6
make install INSTALL_ROOT=%{buildroot}
Rex Dieter 6a6ead6
Rex Dieter 0588dca
%if 0%{?docs}
Rex Dieter 0588dca
make install_docs INSTALL_ROOT=%{buildroot}
Rex Dieter 0588dca
%endif
Rex Dieter 0588dca
Rex Dieter 0588dca
# hardlink files to %{_bindir}, add -qt5 postfix to not conflict
Rex Dieter 6a6ead6
mkdir %{buildroot}%{_bindir}
Rex Dieter 6a6ead6
pushd %{buildroot}%{_qt5_bindir}
Rex Dieter 6a6ead6
for i in * ; do
Rex Dieter 6a6ead6
  case "${i}" in
Rex Dieter 6a6ead6
    qmlplugindump|qmlprofiler)
Rex Dieter 0588dca
      ln -v  ${i} %{buildroot}%{_bindir}/${i}-qt5
Rex Dieter 0588dca
      ln -sv ${i} ${i}-qt5
Rex Dieter 6a6ead6
      ;;
Rex Dieter 0588dca
    *)
Rex Dieter 0588dca
      ln -v  ${i} %{buildroot}%{_bindir}/${i}
Rex Dieter 6a6ead6
      ;;
Rex Dieter 6a6ead6
  esac
Rex Dieter 6a6ead6
done
Rex Dieter 6a6ead6
popd
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
## .prl/.la file love
Rex Dieter 6a6ead6
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
Rex Dieter 6a6ead6
pushd %{buildroot}%{_qt5_libdir}
Rex Dieter 6a6ead6
for prl_file in libQt5*.prl ; do
Rex Dieter 6a6ead6
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
Rex Dieter 6a6ead6
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
Rex Dieter 6a6ead6
    rm -fv "$(basename ${prl_file} .prl).la"
Rex Dieter 6a6ead6
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
Rex Dieter 6a6ead6
  fi
Rex Dieter 6a6ead6
done
Rex Dieter 6a6ead6
popd
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%post -p /sbin/ldconfig
Rex Dieter 6a6ead6
%postun -p /sbin/ldconfig
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%files
Rex Dieter 6a6ead6
%doc LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt
Rex Dieter 6a6ead6
%doc dist/changes*
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5Qml.so.5*
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5Quick.so.5*
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5QuickParticles.so.5*
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5QuickTest.so.5*
Rex Dieter 6a6ead6
%{_qt5_plugindir}/accessible/libqtaccessiblequick.so
Rex Dieter 6a6ead6
%{_qt5_plugindir}/qmltooling/
Rex Dieter 6a6ead6
%{_qt5_archdatadir}/qml/
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%files devel
Rex Dieter 6a6ead6
%{_bindir}/qml*
Rex Dieter 6a6ead6
%{_qt5_bindir}/qml*
Rex Dieter 6a6ead6
%{_qt5_headerdir}/Qt*/
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5Qml.so
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5Qml.prl
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5Quick*.so
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5Quick*.prl
Rex Dieter 6a6ead6
%{_qt5_libdir}/cmake/Qt5*/
Rex Dieter 6a6ead6
%{_qt5_libdir}/pkgconfig/Qt5*.pc
Rex Dieter 6a6ead6
%{_qt5_archdatadir}/mkspecs/modules/*.pri
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%files static
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5QmlDevTools.*a
Rex Dieter 6a6ead6
%{_qt5_libdir}/libQt5QmlDevTools.prl
Rex Dieter 6a6ead6
Rex Dieter 0588dca
%if 0%{?docs}
Rex Dieter 0588dca
%files doc
Rex Dieter 0588dca
%{_qt5_docdir}/qtqml.qch
Rex Dieter 0588dca
%{_qt5_docdir}/qtqml/
Rex Dieter 0588dca
%{_qt5_docdir}/qtquick.qch
Rex Dieter 0588dca
%{_qt5_docdir}/qtquick/
Rex Dieter 0588dca
%{_qt5_docdir}/qtquickdialogs.qch
Rex Dieter 0588dca
%{_qt5_docdir}/qtquickdialogs/
Rex Dieter 0588dca
%endif
Rex Dieter 0588dca
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
%changelog
Rex Dieter 4bc3db1
* Thu Dec 05 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.11.rc1
Rex Dieter 4bc3db1
- %%ix86: cannot assume sse2 (and related support) or the JIT that requires it...  disable.
Rex Dieter 4bc3db1
Rex Dieter 2591c81
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
Rex Dieter 2591c81
- 5.2.0-rc1
Rex Dieter 2591c81
Rex Dieter b0c1989
* Mon Nov 25 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1
Rex Dieter b0c1989
- enable -doc only on primary archs (allow secondary bootstrap)
Rex Dieter b0c1989
Rex Dieter 8043c35
* Sat Nov 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
Rex Dieter 8043c35
- rebuild (arm/qreal)
Rex Dieter 8043c35
Rex Dieter 346c1b5
* Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
Rex Dieter 346c1b5
- 5.2.0-beta1
Rex Dieter 346c1b5
Rex Dieter 409c810
* Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
Rex Dieter 409c810
- bootstrap ppc
Rex Dieter 409c810
Rex Dieter 0588dca
* Tue Oct 01 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
Rex Dieter 0588dca
- 5.2.0-alpha
Rex Dieter 0588dca
- Obsoletes: qt5-qtjsbackend
Rex Dieter 0588dca
- -doc subpkg
Rex Dieter 0588dca
Rex Dieter 166b729
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
Rex Dieter 166b729
- 5.1.1
Rex Dieter 166b729
Rex Dieter a4128f9
* Tue Aug 20 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-4
Rex Dieter a4128f9
- qt5-qtjsbackend only supports ix86, x86_64 and arm
Rex Dieter a4128f9
Rex Dieter 6a6ead6
* Tue May 14 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-3
Rex Dieter 6a6ead6
- fix qmlprofiler conflict with qt-creator
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
* Fri Apr 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
Rex Dieter 6a6ead6
- fix qmlplugindump conflict with qt4-devel
Rex Dieter 6a6ead6
- include license files, dist/changes*
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
* Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
Rex Dieter 6a6ead6
- 5.0.2
Rex Dieter 6a6ead6
Rex Dieter 6a6ead6
* Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
Rex Dieter 6a6ead6
- first try
Rex Dieter 6a6ead6