3 %bcond_without doc # Documentation
4 %bcond_with flite # Flite plugin
6 %define orgname qtspeech
7 %define qtbase_ver %{version}
8 %define qttools_ver %{version}
9 Summary: The Qt5 Speech library
10 Summary(pl.UTF-8): Biblioteka Qt5 Speech
14 License: FDL or GPL v2.0 or LGPL v3.0
16 Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
17 # Source0-md5: a94303e87086254d42f630d0b80cf8b1
18 URL: http://www.qt.io/
19 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
20 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
21 BuildRequires: Qt5Multimedia-devel >= %{qtbase_ver}
22 BuildRequires: Qt5Widgets-devel >= %{qtbase_ver}
23 BuildRequires: Qt5XmlPatterns-devel >= %{qtbase_ver}
24 BuildRequires: qt5-doc-common >= %{qtbase_ver}
26 BuildRequires: flite-devel >= 2.1
29 BuildRequires: qt5-assistant >= %{qttools_ver}
31 BuildRequires: qt5-build >= %{qtbase_ver}
32 BuildRequires: qt5-qmake >= %{qtbase_ver}
33 BuildRequires: rpmbuild(macros) >= 1.654
34 BuildRequires: speech-dispatcher-devel
35 BuildRequires: tar >= 1:1.22
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define specflags -fno-strict-aliasing
40 %define qt5dir %{_libdir}/qt5
43 Qt is a cross-platform application and UI framework. Using Qt, you can
44 write web-enabled applications once and deploy them across desktop,
45 mobile and embedded systems without rewriting the source code.
47 This package contains Qt5 Speech library.
49 %description -l pl.UTF-8
50 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
51 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
52 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
55 Ten pakiet zawiera bibliotekę Qt5 Speech.
58 Summary: The Qt5 Speech library
59 Summary(pl.UTF-8): Biblioteka Qt5 Speech
61 Requires: Qt5Core >= %{qtbase_ver}
63 %description -n Qt5Speech
66 %description -n Qt5Speech -l pl.UTF-8
67 Biblioteka Qt5 Speech.
69 %package -n Qt5Speech-devel
70 Summary: Qt5 Speech library - development files
71 Summary(pl.UTF-8): Biblioteka Qt5 Speech - pliki programistyczne
72 Group: Development/Libraries
73 Requires: Qt5Core-devel >= %{qtbase_ver}
74 Requires: Qt5Speech = %{version}-%{release}
76 %description -n Qt5Speech-devel
77 Qt5 Speech library - development files.
79 %description -n Qt5Speech-devel -l pl.UTF-8
80 Biblioteka Qt5 Speech - pliki programistyczne.
82 %package -n Qt5Speech-plugin-flite
83 Summary: flite plugin for Qt5 Speech library
84 Summary(pl.UTF-8): Wtyczka flite do biblioteki Qt5 Speech
86 Requires: Qt5Speech = %{version}-%{release}
87 Requires: flite >= 2.1
89 %description -n Qt5Speech-plugin-flite
90 flite plugin for Qt5 Speech library.
92 %description -n Qt5Speech-plugin-flite -l pl.UTF-8
93 Wtyczka flite do biblioteki Qt5 Speech
96 Summary: Qt5 Speech documentation in HTML format
97 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Speech w formacie HTML
99 Requires: qt5-doc-common >= %{qtbase_ver}
100 %if "%{_rpmversion}" >= "5"
105 Qt5 Speech documentation in HTML format.
107 %description doc -l pl.UTF-8
108 Dokumentacja do biblioteki Qt5 Speech w formacie HTML.
111 Summary: Qt5 Speech documentation in QCH format
112 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Speech w formacie QCH
114 Requires: qt5-doc-common >= %{qtbase_ver}
115 %if "%{_rpmversion}" >= "5"
120 Qt5 Speech documentation in QCH format.
122 %description doc-qch -l pl.UTF-8
123 Dokumentacja do biblioteki Qt5 Speech w formacie QCH.
126 Summary: Qt5 Speech examples
127 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Speech
128 Group: Development/Libraries
129 %if "%{_rpmversion}" >= "5"
133 %description examples
136 %description examples -l pl.UTF-8
137 Przykłady do biblioteki Qt5 Speech.
140 %setup -q -n %{orgname}-everywhere-src-%{version}
144 -%{!?with_flite:no-}flite
146 %{?with_doc:%{__make} docs}
149 rm -rf $RPM_BUILD_ROOT
151 INSTALL_ROOT=$RPM_BUILD_ROOT
154 %{__make} install_docs \
155 INSTALL_ROOT=$RPM_BUILD_ROOT
159 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
160 # actually drop *.la, follow policy of not packaging them when *.pc exist
161 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
163 # Prepare some files list
165 r="$RPM_BUILD_ROOT$2"
167 echo "%%dir $2" >> $1.files
168 elif [ -x "$r" ] ; then
169 echo "%%attr(755,root,root) $2" >> $1.files
170 elif [ -f "$r" ]; then
171 echo "$2" >> $1.files
173 echo "Error generation $1 files list!"
174 echo "$r: no such file or directory!"
180 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
185 echo "%defattr(644,root,root,755)" > examples.files
186 ifecho_tree examples %{_examplesdir}/qt5/speech
189 rm -rf $RPM_BUILD_ROOT
191 %post -n Qt5Speech -p /sbin/ldconfig
192 %postun -n Qt5Speech -p /sbin/ldconfig
195 %defattr(644,root,root,755)
196 %doc LICENSE.* dist/changes-*
197 %attr(755,root,root) %{_libdir}/libQt5TextToSpeech.so.*.*.*
198 %attr(755,root,root) %ghost %{_libdir}/libQt5TextToSpeech.so.5
199 %dir %{_libdir}/qt5/plugins/texttospeech
200 %attr(755,root,root) %{_libdir}/qt5/plugins/texttospeech/libqtexttospeech_speechd.so
202 %files -n Qt5Speech-devel
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/libQt5TextToSpeech.so
205 %{_libdir}/libQt5TextToSpeech.prl
206 %{_includedir}/qt5/QtTextToSpeech
207 %{_pkgconfigdir}/Qt5TextToSpeech.pc
208 %{_libdir}/cmake/Qt5TextToSpeech
209 %{qt5dir}/mkspecs/modules/qt_lib_texttospeech.pri
210 %{qt5dir}/mkspecs/modules/qt_lib_texttospeech_private.pri
213 %files -n Qt5Speech-plugin-flite
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/qt5/plugins/texttospeech/libqttexttospeech_flite.so
220 %defattr(644,root,root,755)
221 %{_docdir}/qt5-doc/qtspeech
224 %defattr(644,root,root,755)
225 %{_docdir}/qt5-doc/qtspeech.qch
228 %files examples -f examples.files
229 %defattr(644,root,root,755)
230 # XXX: dir shared with qt5-qtbase-examples
231 %dir %{_examplesdir}/qt5