restore -devel subpkg

epel9
Rex Dieter 6 years ago
parent 7b89be05b3
commit f853cc0d74

@ -19,9 +19,6 @@ BuildRequires: qt5-qtbase-private-devel
BuildRequires: qt5-qtdeclarative-devel >= %{version}
BuildRequires: qt5-qtsvg-devel >= %{version}
Obsoletes: qt5-qtvirtualkeyboard-devel < 5.7.1-4
Provides: qt5-qtvirtualkeyboard-devel = %{version}-%{release}
# version unknown
Provides: bundled(libpinyin)
@ -40,6 +37,13 @@ for Qt 5. Key features include:
* Handwriting support, with gestures for fullscreen input.
* Audio feedback.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel%{?_isa}
%description devel
%{summary}.
%package examples
Summary: Programming examples for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -61,16 +65,35 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%install
make install INSTALL_ROOT=%{buildroot}
## .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
%ldconfig_scriptlets
%files
%license LICENSE.*
%{_qt5_libdir}/libQt5VirtualKeyboard.so.5*
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_QVirtualKeyboardPlugin.cmake
%{_qt5_plugindir}/platforminputcontexts/libqtvirtualkeyboardplugin.so
%{_qt5_qmldir}/QtQuick/VirtualKeyboard/
#{_qt5_datadir}/qtvirtualkeyboard/
%files devel
%{_qt5_includedir}/QtVirtualKeyboard/
%{_qt5_libdir}/libQt5VirtualKeyboard.prl
%{_qt5_libdir}/libQt5VirtualKeyboard.so
%{_qt5_libdir}/cmake/Qt5VirtualKeyboard/
%files examples
%{_qt5_examplesdir}/
@ -78,6 +101,7 @@ make install INSTALL_ROOT=%{buildroot}
%changelog
* Fri Feb 15 2019 Rex Dieter <rdieter@fedoraproject.org> - 5.12.1-1
- 5.12.1
- restore -devel subpkg
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save