diff --git a/qt6-qtspeech.spec b/qt6-qtspeech.spec new file mode 100644 index 0000000..895af8c --- /dev/null +++ b/qt6-qtspeech.spec @@ -0,0 +1,104 @@ +%global qt_module qtspeech + +%global examples 1 + +%define short_version 6.5 + +Summary: qt6 - Speech component +Name: qt6-%{qt_module} +Version: 6.5.0 +Release: 1 +License: LGPLv2 with exceptions or GPLv3 with exceptions +Url: http://www.qt.io +Source0: https://download.qt.io/official_releases/qt/%{short_version}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz + +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: qt6-qtbase-devel >= %{version} +BuildRequires: qt6-qtmultimedia-devel >= %{version} +BuildRequires: qt6-qtdeclarative-devel >= %{version} +BuildRequires: speech-dispatcher-devel >= 0.8 +BuildRequires: pulseaudio pulseaudio-libs + +BuildRequires: qt6-qtbase-private-devel +%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} + +%description +The module enables a Qt application to support accessibility features such as text-to-speech, which is useful for end-users who are +visually challenged or cannot access the application for whatever reason. The most common use case where text-to-speech comes in handy +is when the end-user is driving and cannot attend the incoming messages on the phone. In such a scenario, the messaging application +can read out the incoming message. Qt Serial Port provides the basic functionality, which includes configuring, I/O operations, +getting and setting the control signals of the RS-232 pinouts. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: qt6-qtbase-devel%{?_isa} +%description devel +%{summary}. + + +%if 0%{?examples} +%package examples +Summary: Programming examples for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description examples +%{summary}. +%endif + +%prep +%autosetup -n %{qt_module}-everywhere-src-%{version} -p1 + +%build +%cmake_qt6 -DQT_BUILD_EXAMPLES:BOOL=%{?examples:ON}%{!?examples:OFF} + +cmake --build . %{?_smp_mflags} --verbose + +%install +DESTDIR="%{buildroot}" cmake --install . + +## .prl/.la file love +# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs +pushd %{buildroot}%{_qt6_libdir} +for prl_file in libQt6*.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 + +%files +%license LICENSES/* +%{_qt6_libdir}/libQt6TextToSpeech.so.6* +%dir %{_qt6_plugindir}/texttospeech/ +%{_qt6_plugindir}/texttospeech/*.so +%{_qt6_qmldir}/QtTextToSpeech/* + +%files devel +%{_qt6_headerdir}/QtTextToSpeech/* +%{_qt6_libdir}/libQt6TextToSpeech.so +%{_qt6_libdir}/libQt6TextToSpeech.prl +%{_qt6_libdir}/cmake/Qt6/*.cmake +%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake +%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/*.cmake +%dir %{_qt6_libdir}/cmake/Qt6TextToSpeech/ +%{_qt6_libdir}/cmake/Qt6TextToSpeech/*.cmake +%{_qt6_libdir}/pkgconfig/Qt6TextToSpeech.pc +%{_qt6_mkspecsdir}/modules/qt_lib_texttospeech*.pri +%{_qt6_archdatadir}/metatypes/qt6texttospeech_*_metatypes.json +%{_qt6_archdatadir}/modules/TextToSpeech.json + +%if 0%{?examples} +%files examples +%{_qt6_examplesdir}/ +%endif + +%changelog +* Tue May 9 2023 EastDong - 6.5.0-1 +- update package + +* Thu Dec 01 2022 Jingwiw - 6.4.0-1 +- init package diff --git a/qt6-qtspeech.yaml b/qt6-qtspeech.yaml new file mode 100644 index 0000000..31f165f --- /dev/null +++ b/qt6-qtspeech.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://code.qt.io/qt/qtspeech.git +tag_prefix: "^v" +separator: "." \ No newline at end of file diff --git a/qtspeech-everywhere-src-6.5.0.tar.xz b/qtspeech-everywhere-src-6.5.0.tar.xz new file mode 100644 index 0000000..f3d0257 Binary files /dev/null and b/qtspeech-everywhere-src-6.5.0.tar.xz differ