]>
Commit | Line | Data |
---|---|---|
5dddb288 BS |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # Documentation | |
4 | %bcond_with flite # Flite plugin | |
5 | ||
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 | |
11 | Name: qt5-%{orgname} | |
65540ea3 | 12 | Version: 5.15.1 |
5dddb288 BS |
13 | Release: 1 |
14 | License: FDL or GPL v2.0 or LGPL v3.0 | |
15 | Group: Libraries | |
a23ed3ec | 16 | Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
65540ea3 | 17 | # Source0-md5: a94303e87086254d42f630d0b80cf8b1 |
5dddb288 BS |
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} | |
40f0806f | 24 | BuildRequires: qt5-doc-common >= %{qtbase_ver} |
5dddb288 BS |
25 | %if %{with flite} |
26 | BuildRequires: flite-devel >= 2.1 | |
27 | %endif | |
28 | %if %{with doc} | |
29 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
30 | %endif | |
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 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %define specflags -fno-strict-aliasing | |
40 | %define qt5dir %{_libdir}/qt5 | |
41 | ||
42 | %description | |
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. | |
46 | ||
47 | This package contains Qt5 Speech library. | |
48 | ||
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 | |
53 | źródłowego. | |
54 | ||
55 | Ten pakiet zawiera bibliotekę Qt5 Speech. | |
56 | ||
57 | %package -n Qt5Speech | |
58 | Summary: The Qt5 Speech library | |
59 | Summary(pl.UTF-8): Biblioteka Qt5 Speech | |
60 | Group: Libraries | |
61 | Requires: Qt5Core >= %{qtbase_ver} | |
62 | ||
63 | %description -n Qt5Speech | |
64 | Qt5 Speech library. | |
65 | ||
66 | %description -n Qt5Speech -l pl.UTF-8 | |
67 | Biblioteka Qt5 Speech. | |
68 | ||
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} | |
75 | ||
76 | %description -n Qt5Speech-devel | |
77 | Qt5 Speech library - development files. | |
78 | ||
79 | %description -n Qt5Speech-devel -l pl.UTF-8 | |
80 | Biblioteka Qt5 Speech - pliki programistyczne. | |
81 | ||
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 | |
85 | Group: Libraries | |
86 | Requires: Qt5Speech = %{version}-%{release} | |
87 | Requires: flite >= 2.1 | |
88 | ||
89 | %description -n Qt5Speech-plugin-flite | |
90 | flite plugin for Qt5 Speech library. | |
91 | ||
92 | %description -n Qt5Speech-plugin-flite -l pl.UTF-8 | |
93 | Wtyczka flite do biblioteki Qt5 Speech | |
94 | ||
95 | %package doc | |
96 | Summary: Qt5 Speech documentation in HTML format | |
97 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Speech w formacie HTML | |
98 | Group: Documentation | |
99 | Requires: qt5-doc-common >= %{qtbase_ver} | |
100 | %if "%{_rpmversion}" >= "5" | |
101 | BuildArch: noarch | |
102 | %endif | |
103 | ||
104 | %description doc | |
105 | Qt5 Speech documentation in HTML format. | |
106 | ||
107 | %description doc -l pl.UTF-8 | |
108 | Dokumentacja do biblioteki Qt5 Speech w formacie HTML. | |
109 | ||
110 | %package doc-qch | |
111 | Summary: Qt5 Speech documentation in QCH format | |
112 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Speech w formacie QCH | |
113 | Group: Documentation | |
114 | Requires: qt5-doc-common >= %{qtbase_ver} | |
115 | %if "%{_rpmversion}" >= "5" | |
116 | BuildArch: noarch | |
117 | %endif | |
118 | ||
119 | %description doc-qch | |
120 | Qt5 Speech documentation in QCH format. | |
121 | ||
122 | %description doc-qch -l pl.UTF-8 | |
123 | Dokumentacja do biblioteki Qt5 Speech w formacie QCH. | |
124 | ||
125 | %package examples | |
126 | Summary: Qt5 Speech examples | |
127 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Speech | |
128 | Group: Development/Libraries | |
129 | %if "%{_rpmversion}" >= "5" | |
130 | BuildArch: noarch | |
131 | %endif | |
132 | ||
133 | %description examples | |
134 | Qt5 Speech examples. | |
135 | ||
136 | %description examples -l pl.UTF-8 | |
137 | Przykłady do biblioteki Qt5 Speech. | |
138 | ||
139 | %prep | |
140 | %setup -q -n %{orgname}-everywhere-src-%{version} | |
141 | ||
142 | %build | |
65540ea3 JP |
143 | qmake-qt5 -- \ |
144 | -%{!?with_flite:no-}flite | |
5dddb288 BS |
145 | %{__make} |
146 | %{?with_doc:%{__make} docs} | |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | %{__make} install \ | |
151 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
152 | ||
153 | %if %{with doc} | |
154 | %{__make} install_docs \ | |
155 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
156 | %endif | |
157 | ||
158 | # useless symlinks | |
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 | |
162 | ||
163 | # Prepare some files list | |
164 | ifecho() { | |
165 | r="$RPM_BUILD_ROOT$2" | |
166 | if [ -d "$r" ]; then | |
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 | |
172 | else | |
173 | echo "Error generation $1 files list!" | |
174 | echo "$r: no such file or directory!" | |
175 | return 1 | |
176 | fi | |
177 | } | |
178 | ifecho_tree() { | |
179 | ifecho $1 $2 | |
180 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
181 | ifecho $1 $2/$f | |
182 | done | |
183 | } | |
184 | ||
185 | echo "%defattr(644,root,root,755)" > examples.files | |
186 | ifecho_tree examples %{_examplesdir}/qt5/speech | |
187 | ||
188 | %clean | |
189 | rm -rf $RPM_BUILD_ROOT | |
190 | ||
191 | %post -n Qt5Speech -p /sbin/ldconfig | |
192 | %postun -n Qt5Speech -p /sbin/ldconfig | |
193 | ||
194 | %files -n Qt5Speech | |
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 | |
201 | ||
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 | |
211 | ||
212 | %if %{with flite} | |
213 | %files -n Qt5Speech-plugin-flite | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_libdir}/qt5/plugins/texttospeech/libqttexttospeech_flite.so | |
216 | %endif | |
217 | ||
218 | %if %{with doc} | |
219 | %files doc | |
220 | %defattr(644,root,root,755) | |
221 | %{_docdir}/qt5-doc/qtspeech | |
222 | ||
223 | %files doc-qch | |
224 | %defattr(644,root,root,755) | |
225 | %{_docdir}/qt5-doc/qtspeech.qch | |
226 | %endif | |
227 | ||
228 | %files examples -f examples.files | |
229 | %defattr(644,root,root,755) | |
230 | # XXX: dir shared with qt5-qtbase-examples | |
231 | %dir %{_examplesdir}/qt5 |