2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
%global qt_module qtquickcontrols2
|
|
|
|
|
|
|
|
%define docs 1
|
|
|
|
|
2016-03-14 21:42:05 +00:00
|
|
|
#define prerelease
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
Name: qt5-%{qt_module}
|
|
|
|
Summary: Qt5 - module with set of QtQuick controls for embedded
|
2016-06-09 16:22:44 +00:00
|
|
|
Version: 5.6.1
|
2016-06-11 09:14:50 +00:00
|
|
|
Release: 2%{?prerelease:.%{prerelease}}%{?dist}
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
License: GPLv2+ or LGPLv3 and GFDL
|
|
|
|
Url: http://www.qt.io
|
2016-03-14 21:42:05 +00:00
|
|
|
Source0: http://download.qt.io/snapshots/qt/5.6/%{version}%{?prerelease:-%{prerelease}}/submodules/%{qt_module}-opensource-src-%{version}%{?prerelease:-%{prerelease}}.tar.xz
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
BuildRequires: qt5-qtbase-devel >= %{version}
|
|
|
|
BuildRequires: qt5-qtbase-static >= %{version}
|
2016-04-17 16:19:23 +00:00
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
2016-01-23 23:33:48 +00:00
|
|
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
2016-04-17 16:19:23 +00:00
|
|
|
BuildRequires: qt5-qtdeclarative-private-devel
|
2016-01-23 23:33:48 +00:00
|
|
|
%{?_qt5:Requires: qt5-qtdeclarative%{?_isa} = %{_qt5_version}}
|
2016-06-11 09:14:50 +00:00
|
|
|
%{?_qt5:Requires: qt5-qtgraphicaleffects%{?_isa} = %{_qt5_version}}
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Qt Labs Controls module provides a set of controls that can be used to
|
|
|
|
build complete interfaces in Qt Quick.
|
|
|
|
|
|
|
|
Unlike Qt Quick Controls, these controls are optimized for embedded systems
|
|
|
|
and so are preferred for hardware with limited resources.
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?docs}
|
|
|
|
%package doc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
License: GFDL
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildRequires: qt5-qdoc
|
|
|
|
BuildRequires: qt5-qhelpgenerator
|
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: qt5-qtbase-devel%{?_isa}
|
|
|
|
Requires: qt5-qtdeclarative-devel%{?_isa}
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static library files for %{name}
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
%description static
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
2016-02-18 07:52:51 +00:00
|
|
|
%package examples
|
|
|
|
Summary: Examples for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description examples
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
2016-01-23 23:33:48 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{qt_module}-opensource-src-%{version}%{?prerelease:-%{prerelease}}
|
|
|
|
|
2016-03-14 21:44:01 +00:00
|
|
|
%if 0%{?prerelease}
|
2016-02-18 07:26:04 +00:00
|
|
|
syncqt.pl -version %{version}
|
|
|
|
%endif
|
|
|
|
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%{qmake_qt5} ..
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%if 0%{?docs}
|
|
|
|
make %{?_smp_mflags} docs
|
|
|
|
%endif
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
|
|
%if 0%{?docs}
|
|
|
|
make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
|
|
|
%endif
|
|
|
|
|
2016-02-18 07:03:35 +00:00
|
|
|
## .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
|
|
|
|
|
2016-02-18 07:57:52 +00:00
|
|
|
# Remove .la leftovers
|
|
|
|
rm -f %{buildroot}%{_qt5_libdir}/libQt5*.la
|
|
|
|
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.FDL LICENSE.LGPLv3 LICENSE.GPLv3
|
2016-02-13 11:32:18 +00:00
|
|
|
%{_qt5_archdatadir}/qml/Qt/labs/calendar/
|
|
|
|
%{_qt5_archdatadir}/qml/Qt/labs/controls/
|
|
|
|
%{_qt5_archdatadir}/qml/Qt/labs/templates/
|
2016-01-23 23:33:48 +00:00
|
|
|
%{_qt5_libdir}/libQt5LabsTemplates.so.5*
|
|
|
|
|
|
|
|
%if 0%{?docs}
|
|
|
|
%files doc
|
|
|
|
%license LICENSE.FDL LICENSE.LGPLv3 LICENSE.GPLv3
|
|
|
|
%dir %{_qt5_docdir}/qtlabscontrols/
|
|
|
|
%{_qt5_docdir}/qtlabscontrols/*
|
|
|
|
%{_qt5_docdir}/qtlabscontrols.qch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
2016-02-13 11:32:18 +00:00
|
|
|
%{_qt5_headerdir}/QtLabsControls/
|
|
|
|
%{_qt5_headerdir}/QtLabsTemplates/
|
2016-01-23 23:33:48 +00:00
|
|
|
%{_qt5_libdir}/libQt5LabsControls.prl
|
|
|
|
%{_qt5_libdir}/libQt5LabsTemplates.prl
|
|
|
|
%{_qt5_libdir}/libQt5LabsTemplates.so
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_labs*_private.pri
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%{_qt5_libdir}/libQt5LabsControls.a
|
|
|
|
|
2016-02-18 07:52:51 +00:00
|
|
|
%files examples
|
2016-06-09 18:39:39 +00:00
|
|
|
%{_qt5_examplesdir}/quickcontrols2/
|
2016-02-18 07:52:51 +00:00
|
|
|
|
2016-01-23 23:33:48 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-06-11 09:14:50 +00:00
|
|
|
* Sat Jun 11 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.1-2
|
|
|
|
- Add qt5-qtgraphicaleffects dependency
|
|
|
|
|
2016-06-09 16:22:44 +00:00
|
|
|
* Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
|
|
|
|
- Update to 5.6.1
|
|
|
|
|
2016-04-17 16:19:23 +00:00
|
|
|
* Sun Apr 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4
|
|
|
|
- BR: qt5-qtbase-private-devel qt5-qtdeclarative-private-devel
|
|
|
|
|
2016-03-20 21:15:31 +00:00
|
|
|
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
|
|
|
|
- rebuild
|
|
|
|
|
2016-03-18 02:19:57 +00:00
|
|
|
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
|
|
|
|
- rebuild
|
|
|
|
|
2016-03-14 21:44:01 +00:00
|
|
|
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org>
|
|
|
|
- 5.6.0 final release
|
|
|
|
|
2016-03-14 21:42:05 +00:00
|
|
|
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
|
|
|
|
- 5.6.0 final release
|
|
|
|
|
2016-02-23 16:01:48 +00:00
|
|
|
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4.rc
|
|
|
|
- Update to final RC
|
|
|
|
|
2016-02-18 07:03:35 +00:00
|
|
|
* Thu Feb 18 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.0-0.3.rc
|
|
|
|
- Update to rc
|
|
|
|
|
2016-02-04 21:46:45 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.2.beta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-23 23:33:48 +00:00
|
|
|
* Fri Jan 15 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.0-0.1.beta
|
|
|
|
- Initial packaging
|