3 %bcond_without doc # documentation
4 %bcond_without flite # Flite plugin
5 %bcond_without speech_dispatcher # Speech Dispatcher plugin
7 %define orgname qtspeech
8 %define qtbase_ver %{version}
9 %define qttools_ver %{version}
10 %define qtxmlpatterns_ver %{version}
11 Summary: The Qt5 Speech library
12 Summary(pl.UTF-8): Biblioteka Qt5 Speech
16 License: LGPL v3 or GPL v2+ or commercial
18 Source0: https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-opensource-src-%{version}.tar.xz
19 # Source0-md5: a8eff80706ba3fc12c6f70d198c78736
20 URL: https://www.qt.io/
21 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
22 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
23 BuildRequires: Qt5Multimedia-devel >= %{qtbase_ver}
24 BuildRequires: Qt5Widgets-devel >= %{qtbase_ver}
25 BuildRequires: Qt5XmlPatterns-devel >= %{qtxmlpatterns_ver}
26 BuildRequires: qt5-doc-common >= %{qtbase_ver}
28 BuildRequires: flite-devel >= 2.1
31 BuildRequires: qt5-assistant >= %{qttools_ver}
33 BuildRequires: qt5-build >= %{qtbase_ver}
34 BuildRequires: qt5-qmake >= %{qtbase_ver}
35 BuildRequires: rpm-build >= 4.6
36 BuildRequires: rpmbuild(macros) >= 2.016
37 %if %{with speech_dispatcher}
38 BuildRequires: speech-dispatcher-devel
40 BuildRequires: tar >= 1:1.22
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define specflags -fno-strict-aliasing
45 %define qt5dir %{_libdir}/qt5
48 Qt is a cross-platform application and UI framework. Using Qt, you can
49 write web-enabled applications once and deploy them across desktop,
50 mobile and embedded systems without rewriting the source code.
52 This package contains Qt5 Speech library.
54 %description -l pl.UTF-8
55 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
56 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
57 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
60 Ten pakiet zawiera bibliotekę Qt5 Speech.
63 Summary: The Qt5 Speech library
64 Summary(pl.UTF-8): Biblioteka Qt5 Speech
66 %requires_eq_to Qt5Core Qt5Core-devel
68 %description -n Qt5Speech
71 %description -n Qt5Speech -l pl.UTF-8
72 Biblioteka Qt5 Speech.
74 %package -n Qt5Speech-devel
75 Summary: Qt5 Speech library - development files
76 Summary(pl.UTF-8): Biblioteka Qt5 Speech - pliki programistyczne
77 Group: Development/Libraries
78 Requires: Qt5Core-devel >= %{qtbase_ver}
79 Requires: Qt5Speech = %{version}-%{release}
81 %description -n Qt5Speech-devel
82 Qt5 Speech library - development files.
84 %description -n Qt5Speech-devel -l pl.UTF-8
85 Biblioteka Qt5 Speech - pliki programistyczne.
87 %package -n Qt5Speech-plugin-speechd
88 Summary: Speech Dispatcher plugin for Qt5 Speech library
89 Summary(pl.UTF-8): Wtyczka Speech Dispatcher do biblioteki Qt5 Speech
91 Requires: Qt5Speech = %{version}-%{release}
93 %description -n Qt5Speech-plugin-speechd
94 Speech Dispatcher plugin for Qt5 Speech library.
96 %description -n Qt5Speech-plugin-speechd -l pl.UTF-8
97 Wtyczka Speech Dispatcher do biblioteki Qt5 Speech
99 %package -n Qt5Speech-plugin-flite
100 Summary: flite plugin for Qt5 Speech library
101 Summary(pl.UTF-8): Wtyczka flite do biblioteki Qt5 Speech
103 Requires: Qt5Speech = %{version}-%{release}
104 Requires: flite >= 2.1
106 %description -n Qt5Speech-plugin-flite
107 flite plugin for Qt5 Speech library.
109 %description -n Qt5Speech-plugin-flite -l pl.UTF-8
110 Wtyczka flite do biblioteki Qt5 Speech
113 Summary: Qt5 Speech documentation in HTML format
114 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Speech w formacie HTML
117 Requires: qt5-doc-common >= %{qtbase_ver}
121 Qt5 Speech documentation in HTML format.
123 %description doc -l pl.UTF-8
124 Dokumentacja do biblioteki Qt5 Speech w formacie HTML.
127 Summary: Qt5 Speech documentation in QCH format
128 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Speech w formacie QCH
131 Requires: qt5-doc-common >= %{qtbase_ver}
135 Qt5 Speech documentation in QCH format.
137 %description doc-qch -l pl.UTF-8
138 Dokumentacja do biblioteki Qt5 Speech w formacie QCH.
141 Summary: Qt5 Speech examples
142 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Speech
143 License: BSD or commercial
144 Group: Development/Libraries
147 %description examples
150 %description examples -l pl.UTF-8
151 Przykłady do biblioteki Qt5 Speech.
154 %setup -q -n %{orgname}-everywhere-src-%{version}
158 -%{!?with_flite:no-}flite \
159 -%{!?with_speech_dispatcher:no-}speechd
161 %{?with_doc:%{__make} docs}
164 rm -rf $RPM_BUILD_ROOT
167 INSTALL_ROOT=$RPM_BUILD_ROOT
170 %{__make} install_docs \
171 INSTALL_ROOT=$RPM_BUILD_ROOT
175 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
176 # actually drop *.la, follow policy of not packaging them when *.pc exist
177 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
179 # Prepare some files list
181 r="$RPM_BUILD_ROOT$2"
183 echo "%%dir $2" >> $1.files
184 elif [ -x "$r" ] ; then
185 echo "%%attr(755,root,root) $2" >> $1.files
186 elif [ -f "$r" ]; then
187 echo "$2" >> $1.files
189 echo "Error generation $1 files list!"
190 echo "$r: no such file or directory!"
196 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
201 echo "%defattr(644,root,root,755)" > examples.files
202 ifecho_tree examples %{_examplesdir}/qt5/speech
205 rm -rf $RPM_BUILD_ROOT
207 %post -n Qt5Speech -p /sbin/ldconfig
208 %postun -n Qt5Speech -p /sbin/ldconfig
211 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_libdir}/libQt5TextToSpeech.so.*.*.*
215 %attr(755,root,root) %ghost %{_libdir}/libQt5TextToSpeech.so.5
216 %dir %{_libdir}/qt5/plugins/texttospeech
217 %dir %{_libdir}/cmake/Qt5TextToSpeech
219 %files -n Qt5Speech-devel
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libQt5TextToSpeech.so
222 %{_libdir}/libQt5TextToSpeech.prl
223 %{_includedir}/qt5/QtTextToSpeech
224 %{_pkgconfigdir}/Qt5TextToSpeech.pc
225 %{_libdir}/cmake/Qt5TextToSpeech/Qt5TextToSpeechConfig*.cmake
226 %{qt5dir}/mkspecs/modules/qt_lib_texttospeech.pri
227 %{qt5dir}/mkspecs/modules/qt_lib_texttospeech_private.pri
229 %files -n Qt5Speech-plugin-speechd
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/qt5/plugins/texttospeech/libqtexttospeech_speechd.so
232 %{_libdir}/cmake/Qt5TextToSpeech/Qt5TextToSpeech_QTextToSpeechPluginSpeechd.cmake
235 %files -n Qt5Speech-plugin-flite
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/qt5/plugins/texttospeech/libqttexttospeech_flite.so
238 %{_libdir}/cmake/Qt5TextToSpeech/Qt5TextToSpeech_QTextToSpeechEngineFlite.cmake
243 %defattr(644,root,root,755)
244 %{_docdir}/qt5-doc/qtspeech
247 %defattr(644,root,root,755)
248 %{_docdir}/qt5-doc/qtspeech.qch
251 %files examples -f examples.files
252 %defattr(644,root,root,755)
253 # XXX: dir shared with qt5-qtbase-examples
254 %dir %{_examplesdir}/qt5