d05bf89
d05bf89
%global qt_module qtvirtualkeyboard
d05bf89
d05bf89
%define docs 1
d05bf89
d05bf89
Summary: Qt5 - VirtualKeyboard component
d05bf89
Name:    qt5-%{qt_module}
6ffde47
Version: 5.7.1
Rex Dieter df237fe
Release: 2%{?dist}
d05bf89
d05bf89
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
d05bf89
License: LGPLv2 with exceptions or GPLv3 with exceptions
d05bf89
Url:     http://www.qt.io
6ffde47
Source0: http://download.qt.io/official_releases/qt/5.7/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
d05bf89
Rex Dieter df237fe
BuildRequires: qt5-qtbase-devel >= %{version}
Rex Dieter df237fe
BuildRequires: qt5-qtdeclarative-devel >= %{version}
Rex Dieter df237fe
BuildRequires: qt5-qtsvg-devel >= %{version}
d05bf89
d05bf89
%description
d05bf89
The Qt Virtual Keyboard project provides an input framework and reference keyboard frontend
d05bf89
for Qt 5 on Linux Desktop/X11, Windows Desktop, and Boot2Qt targets.
d05bf89
The input framework makes it easy to write custom input methods or to
d05bf89
integrate 3rd party input engines. The input methods can be implemented in C++ or QML.
d05bf89
d05bf89
%package devel
d05bf89
Summary: Development files for %{name}
d05bf89
Requires: %{name}%{?_isa} = %{version}-%{release}
Rex Dieter df237fe
Requires: qt5-qtbase-devel%{?_isa}
d05bf89
%description devel
d05bf89
%{summary}.
d05bf89
d05bf89
%if 0%{?docs}
d05bf89
%package doc
d05bf89
Summary: API documentation for %{name}
d05bf89
License: GFDL
d05bf89
Requires: %{name} = %{version}-%{release}
d05bf89
BuildRequires: qt5-qdoc
d05bf89
BuildRequires: qt5-qhelpgenerator
d05bf89
BuildArch: noarch
d05bf89
%description doc
d05bf89
%{summary}.
d05bf89
%endif
d05bf89
d05bf89
%package examples
d05bf89
Summary: Programming examples for %{name}
d05bf89
Requires: %{name}%{?_isa} = %{version}-%{release}
d05bf89
%description examples
d05bf89
%{summary}.
d05bf89
d05bf89
d05bf89
%prep
6ffde47
%setup -q -n %{qt_module}-opensource-src-%{version}
d05bf89
d05bf89
d05bf89
%build
d05bf89
mkdir %{_target_platform}
d05bf89
pushd %{_target_platform}
d05bf89
%{qmake_qt5} .. \
d05bf89
  %{?_qt5_examplesdir:CONFIG+=qt_example_installs}
d05bf89
d05bf89
make %{?_smp_mflags}
d05bf89
d05bf89
%if 0%{?docs}
d05bf89
# HACK to avoid multilib conflicts in noarch content
d05bf89
# see also https://bugreports.qt-project.org/browse/QTBUG-42071
d05bf89
QT_HASH_SEED=0; export QT_HASH_SEED
d05bf89
make %{?_smp_mflags} docs
d05bf89
%endif
d05bf89
popd
d05bf89
d05bf89
d05bf89
%install
d05bf89
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
d05bf89
d05bf89
%if 0%{?docs}
d05bf89
make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
d05bf89
%endif
d05bf89
d05bf89
d05bf89
%post -p /sbin/ldconfig
d05bf89
%postun -p /sbin/ldconfig
d05bf89
d05bf89
%files
d05bf89
%license LICENSE.GPL3
d05bf89
%{_qt5_plugindir}/platforminputcontexts/libqtvirtualkeyboardplugin.so
d05bf89
%{_qt5_qmldir}/QtQuick/VirtualKeyboard
d05bf89
d05bf89
%files devel
d05bf89
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_QVirtualKeyboardPlugin.cmake
d05bf89
d05bf89
%if 0%{?docs}
d05bf89
%files doc
d05bf89
%{_qt5_docdir}/qtvirtualkeyboard.qch
d05bf89
%{_qt5_docdir}/qtvirtualkeyboard/
d05bf89
%endif
d05bf89
d05bf89
# no examples, yet
d05bf89
%if 0%{?_qt5_examplesdir:1}
d05bf89
%files examples
d05bf89
%{_qt5_examplesdir}/
d05bf89
%endif
d05bf89
d05bf89
d05bf89
%changelog
Rex Dieter df237fe
* Sat Dec 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
Rex Dieter df237fe
- updated sources, drop pkgconfig-style deps (for now)
Rex Dieter df237fe
6ffde47
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
6ffde47
- New upstream version
6ffde47
d05bf89
* Tue Jul 05 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
d05bf89
- New Qt 5.7.0 package