1 | %define qt4_ver 4.8.6 |
---|
2 | # Qt4 version auto-detection |
---|
3 | %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver}) |
---|
4 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt4) |
---|
5 | %define _qt4_datadir %(pkg-config --variable datadir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}) |
---|
6 | |
---|
7 | %global pulseaudio_version %(pkg-config --modversion libpulse 2>/dev/null || echo 0.9.15) |
---|
8 | |
---|
9 | |
---|
10 | #define bootstrap 1 |
---|
11 | |
---|
12 | Name: phonon |
---|
13 | Summary: Multimedia framework api |
---|
14 | Summary(ja): マルチメディアフレームワーク API |
---|
15 | Version: 4.9.0 |
---|
16 | Release: 1%{?_dist_release} |
---|
17 | |
---|
18 | Group: System Environment/Libraries |
---|
19 | License: LGPLv2+ |
---|
20 | URL: http://phonon.kde.org/ |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | |
---|
25 | Provides: phonon-experimental = %{version}-%{release} |
---|
26 | %if 0%{?bootstrap} |
---|
27 | Provides: phonon-backend%{?_isa} = 4.7 |
---|
28 | %else |
---|
29 | Requires: phonon-backend%{?_isa} => 4.7 |
---|
30 | %endif |
---|
31 | |
---|
32 | Source0: http://download.kde.org/stable/phonon/%{version}/phonon-%{version}.tar.xz |
---|
33 | |
---|
34 | ## Upstream patches |
---|
35 | |
---|
36 | ## upstreamable patches |
---|
37 | Patch10: phonon-rpath_use_link_path.patch |
---|
38 | Patch11: phonon-DEFAULT_SOURCE.patch |
---|
39 | |
---|
40 | ## Vine patches |
---|
41 | |
---|
42 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
43 | BuildRequires: automoc4 >= 0.9.86 |
---|
44 | BuildRequires: cmake >= 2.6.2 |
---|
45 | BuildRequires: glib2-devel |
---|
46 | BuildRequires: libqzeitgeist-devel |
---|
47 | BuildRequires: libxcb-devel |
---|
48 | BuildRequires: libxml2-devel |
---|
49 | BuildRequires: qt4-devel >= 4.6.0 |
---|
50 | BuildRequires: openssl-devel |
---|
51 | BuildRequires: pulseaudio-libs-devel >= 0.9.15 |
---|
52 | BuildRequires: extra-cmake-modules |
---|
53 | BuildRequires: pkgconfig(Qt5DBus) pkgconfig(Qt5Designer) pkgconfig(Qt5OpenGL) pkgconfig(Qt5Widgets) |
---|
54 | BuildRequires: pkgconfig(Qt5Declarative) |
---|
55 | |
---|
56 | # TODO: enable the following Requires in next release |
---|
57 | Requires: pulseaudio-libs >= %{pulseaudio_version} |
---|
58 | Requires: qt4 >= %{_qt4_version} |
---|
59 | |
---|
60 | %description |
---|
61 | Phonon is a cross-platform portable Multimedia Support Abstraction, |
---|
62 | which allows you to play multiple audio or video formats with the same |
---|
63 | quality on all platforms, no matter which underlying architecture is |
---|
64 | used. |
---|
65 | |
---|
66 | %package devel |
---|
67 | Summary: Development files for phonon |
---|
68 | Summary(ja): phonon の開発用ファイル |
---|
69 | Group: Development/Libraries |
---|
70 | Provides: phonon-experimental-devel = %{version}-%{release} |
---|
71 | Requires: %{name} = %{version}-%{release} |
---|
72 | Requires: qt4-devel >= %{_qt4_version} |
---|
73 | |
---|
74 | %description devel |
---|
75 | Header files for developing applications using phonon |
---|
76 | |
---|
77 | %package qt5 |
---|
78 | Summary: phonon for Qt5 |
---|
79 | Summary(ja): Qt5用phonon |
---|
80 | %{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}} |
---|
81 | %if 0%{?bootstrap} |
---|
82 | Provides: %{name}-qt5-backend%{?_isa} = 4.7 |
---|
83 | %else |
---|
84 | Requires: %{name}-qt5-backend%{?_isa} => 4.7 |
---|
85 | %endif |
---|
86 | %description qt5 |
---|
87 | Phonon is a cross-platform portable Multimedia Support Abstraction, |
---|
88 | which allows you to play multiple audio or video formats with the same |
---|
89 | quality on all platforms, no matter which underlying architecture is |
---|
90 | used. |
---|
91 | |
---|
92 | %package qt5-devel |
---|
93 | Summary: Developer files for %{name}-qt5 |
---|
94 | Summary(ja): %{name}-qt5の開発者向けファイル |
---|
95 | Requires: %{name}-qt5%{?_isa} = %{version}-%{release} |
---|
96 | %description qt5-devel |
---|
97 | Header files for developing applications using phonon-qt5 |
---|
98 | |
---|
99 | |
---|
100 | %prep |
---|
101 | %setup -q |
---|
102 | |
---|
103 | %patch10 -p1 -b .10 |
---|
104 | %patch11 -p1 -b .11 |
---|
105 | |
---|
106 | |
---|
107 | %build |
---|
108 | %ifarch x86_64 |
---|
109 | PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`" |
---|
110 | %endif |
---|
111 | |
---|
112 | mkdir -p %{_target_platform} |
---|
113 | pushd %{_target_platform} |
---|
114 | %cmake \ |
---|
115 | -DCMAKE_BUILD_TYPE:STRING="Release" \ |
---|
116 | -DPHONON_INSTALL_QT_COMPAT_HEADERS:BOOL=ON \ |
---|
117 | -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \ |
---|
118 | .. |
---|
119 | popd |
---|
120 | |
---|
121 | make %{?_smp_mflags} -C %{_target_platform} |
---|
122 | |
---|
123 | mkdir -p %{_target_platform}-Qt5 |
---|
124 | pushd %{_target_platform}-Qt5 |
---|
125 | %cmake \ |
---|
126 | -DCMAKE_BUILD_TYPE:STRING="Release" \ |
---|
127 | -DPHONON_BUILD_PHONON4QT5:BOOL=ON \ |
---|
128 | -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \ |
---|
129 | .. |
---|
130 | popd |
---|
131 | |
---|
132 | make %{?_smp_mflags} -C %{_target_platform}-Qt5 |
---|
133 | |
---|
134 | |
---|
135 | %install |
---|
136 | rm -rf $RPM_BUILD_ROOT |
---|
137 | |
---|
138 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
139 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform}-Qt5 |
---|
140 | |
---|
141 | # own these dirs |
---|
142 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/kde4/plugins/phonon_backend/ |
---|
143 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/kde4/services/phononbackends/ |
---|
144 | mkdir -p %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend |
---|
145 | |
---|
146 | |
---|
147 | %check |
---|
148 | export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig |
---|
149 | test "$(pkg-config --modversion phonon)" = "%{version}" |
---|
150 | test "$(pkg-config --modversion phonon4qt5)" = "%{version}" |
---|
151 | |
---|
152 | |
---|
153 | %clean |
---|
154 | rm -rf $RPM_BUILD_ROOT |
---|
155 | |
---|
156 | %post |
---|
157 | /sbin/ldconfig |
---|
158 | |
---|
159 | %postun |
---|
160 | /sbin/ldconfig |
---|
161 | |
---|
162 | # https://bugzilla.redhat.com/show_bug.cgi?id=1223956 |
---|
163 | # replacing symlink with a dir |
---|
164 | %pretrans devel -p <lua> |
---|
165 | path = "%{_includedir}/phonon/Phonon" |
---|
166 | st = posix.stat(path) |
---|
167 | if st and st.type == "link" then |
---|
168 | os.remove(path) |
---|
169 | end |
---|
170 | |
---|
171 | |
---|
172 | %files |
---|
173 | %defattr(-,root,root) |
---|
174 | %license COPYING.LIB |
---|
175 | %{_libdir}/libphonon.so.4* |
---|
176 | %{_libdir}/libphononexperimental.so.4* |
---|
177 | %{_qt4_plugindir}/designer/*.so |
---|
178 | # kde4-specific dirs |
---|
179 | %dir %{_libdir}/kde4/plugins/phonon_backend |
---|
180 | %dir %{_datadir}/kde4/services/phononbackends |
---|
181 | %dir %{_datadir}/phonon/ |
---|
182 | |
---|
183 | %files devel |
---|
184 | %defattr(-,root,root) |
---|
185 | %dir %{_includedir}/KDE |
---|
186 | %{_includedir}/KDE/Phonon/ |
---|
187 | %{_includedir}/phonon/ |
---|
188 | %{_libdir}/libphonon.so |
---|
189 | %{_libdir}/libphononexperimental.so |
---|
190 | %dir %{_libdir}/cmake/ |
---|
191 | %{_libdir}/cmake/phonon/ |
---|
192 | %{_libdir}/pkgconfig/phonon.pc |
---|
193 | %{_datadir}/phonon/buildsystem/ |
---|
194 | %{_qt4_datadir}/mkspecs/modules/qt_phonon.pri |
---|
195 | %{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml |
---|
196 | |
---|
197 | %files qt5 |
---|
198 | %license COPYING.LIB |
---|
199 | %dir %{_datadir}/phonon4qt5 |
---|
200 | %{_libdir}/libphonon4qt5.so.4* |
---|
201 | %{_libdir}/libphonon4qt5experimental.so.4* |
---|
202 | %{_qt5_plugindir}/designer/phononwidgets.so |
---|
203 | %dir %{_qt5_plugindir}/phonon4qt5_backend/ |
---|
204 | |
---|
205 | %files qt5-devel |
---|
206 | %{_datadir}/dbus-1/interfaces/org.kde.Phonon4Qt5.AudioOutput.xml |
---|
207 | %{_datadir}/phonon4qt5/buildsystem/ |
---|
208 | %dir %{_libdir}/cmake/ |
---|
209 | %{_libdir}/cmake/phonon4qt5/ |
---|
210 | %{_includedir}/phonon4qt5/ |
---|
211 | %{_libdir}/libphonon4qt5.so |
---|
212 | %{_libdir}/libphonon4qt5experimental.so |
---|
213 | %{_libdir}/pkgconfig/phonon4qt5.pc |
---|
214 | %{_qt5_archdatadir}/mkspecs/modules/qt_phonon4qt5.pri |
---|
215 | |
---|
216 | |
---|
217 | %changelog |
---|
218 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.2-2 |
---|
219 | - rebuilt with new toolchain. |
---|
220 | |
---|
221 | * Fri Nov 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.8.2-1 |
---|
222 | - new upstream release |
---|
223 | |
---|
224 | * Tue Dec 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.1-1 |
---|
225 | - new upstream release |
---|
226 | - update Patch1 |
---|
227 | - remove Patch50 (phonon-4.5.57-plugindir.patch) |
---|
228 | |
---|
229 | * Sat Jan 7 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.6.0-1 |
---|
230 | - new upstream release |
---|
231 | |
---|
232 | * Sat Nov 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.1-1 |
---|
233 | - new upstream release |
---|
234 | |
---|
235 | * Sat Oct 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.0-2 |
---|
236 | - added Patch100 and 200 to build with pulseaudio-1.0 |
---|
237 | |
---|
238 | * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.0-1 |
---|
239 | - new upstream release |
---|
240 | - added BR: libqzeitgeist-devel |
---|
241 | |
---|
242 | * Tue Mar 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.4-2 |
---|
243 | - rebuilt with qt4-4.7.2 |
---|
244 | |
---|
245 | * Sat Jan 29 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.4-1 |
---|
246 | - new upstream release |
---|
247 | - rebuilt with qt4-4.7.1 on VineSeed |
---|
248 | |
---|
249 | * Mon Dec 13 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.4.3-1 |
---|
250 | - new upstream release |
---|
251 | |
---|
252 | * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.2-2 |
---|
253 | - added sybolic link in %%{_qt4_headerdir} |
---|
254 | |
---|
255 | * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.2-1 |
---|
256 | - new upstream release |
---|
257 | - dropt Patch51 and 57 |
---|
258 | - rebuilt with rpm-4.8.1 |
---|
259 | |
---|
260 | * Sun Mar 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.0-1 |
---|
261 | - new upstream release |
---|
262 | - dropt Patch1, 50, 54 and 100 |
---|
263 | - added Patch57 |
---|
264 | * Fri Jan 22 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.3.80-5.2 |
---|
265 | - F11: patch/modularize pa device-manager bits |
---|
266 | |
---|
267 | * Sun Feb 14 2010 Shu KONNO <owa@bg.wakwak.com> 4.3.80-2 |
---|
268 | - added qmake path to PATH (if x86_64) |
---|
269 | |
---|
270 | * Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.80-1 |
---|
271 | - new upstream release |
---|
272 | - built with new toolchain |
---|
273 | |
---|
274 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.1-3 |
---|
275 | - added Patch102 and 103 from FC |
---|
276 | * Thu Jun 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.3.1-11 |
---|
277 | - fix for '#' in filenames |
---|
278 | * Fri Jun 05 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.3.1-8 |
---|
279 | - restore patches to the xine backend |
---|
280 | |
---|
281 | * Fri Aug 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.1-2 |
---|
282 | - added Patch100 and 101 from FC |
---|
283 | * Tue Mar 3 2009 Lukáš Tinkl <ltinkl@redhat.com> - 4.3.1-2 |
---|
284 | - backport GStreamer backend bugfixes (UTF-8 file handling, volume fader) |
---|
285 | - added backend sub-pakcages |
---|
286 | |
---|
287 | * Thu Mar 26 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.3.1-1 |
---|
288 | - new upstream release |
---|
289 | - add BuildPrereq: cmake |
---|
290 | |
---|
291 | * Sat Jan 24 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.3.0-1 |
---|
292 | - new upstream release |
---|
293 | |
---|
294 | * Wed Jan 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.2.96-1 |
---|
295 | - new upstream release |
---|
296 | - update %%files |
---|
297 | - add BuildPrereq: xine-lib-devel libxcb-devel |
---|
298 | |
---|
299 | * Wed Nov 26 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.2.80-1 |
---|
300 | - new upstream release |
---|
301 | |
---|
302 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 4.2.0-2 |
---|
303 | - added script to append qmake path |
---|
304 | - added option -DLIB_INSTALL_DIR at cmake |
---|
305 | |
---|
306 | * Tue Oct 7 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.2.0-1 |
---|
307 | - initial release for VineSeed |
---|