phonon-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. %define tar_ver 4.4
  2. Name: phonon
  3. Summary: Multimedia framework api
  4. Summary(ja): マルチメディアフレームワーク API
  5. Version: 4.4.2
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://phonon.kde.org/
  10. Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/4.4.2/phonon-%{version}.tar.bz2
  11. Source10: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg
  12. Source11: hi16-phonon-gstreamer.png
  13. Source12: hi22-phonon-gstreamer.png
  14. Source13: hi32-phonon-gstreamer.png
  15. Source14: hi48-phonon-gstreamer.png
  16. Source15: hi64-phonon-gstreamer.png
  17. Source16: hi128-phonon-gstreamer.png
  18. ## Mandriva/upstreamable patches
  19. Patch51: phonon-4.3.50-fix-decodebin-usage.patch
  20. Patch52: phonon-4.3.50-gstreamer-fix-seekable-query-failed.patch
  21. Patch53: phonon-4.3.50-phonon-allow-stop-empty-source.patch
  22. Patch57: phonon-4.3.80-pulse-devicemove-rejig.patch
  23. ## Upstream patches
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. BuildRequires: automoc4 >= 0.9.86
  26. BuildRequires: cmake >= 2.6.2
  27. BuildRequires: glib2-devel
  28. BuildRequires: gstreamer-devel
  29. BuildRequires: gstreamer-plugins-base-devel
  30. BuildRequires: libxcb-devel
  31. BuildRequires: libxml2-devel
  32. BuildRequires: qt4-devel >= 4.4.0
  33. BuildRequires: xine-lib-devel
  34. BuildRequires: pulseaudio-libs-devel
  35. Requires: phonon-backend >= %{version}
  36. Requires: qt4 >= 4.4.0
  37. %description
  38. Phonon is a cross-platform portable Multimedia Support Abstraction,
  39. which allows you to play multiple audio or video formats with the same
  40. quality on all platforms, no matter which underlying architecture is
  41. used.
  42. %package backend-gstreamer
  43. Summary: Gstreamer phonon backend
  44. Group: System Environment/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. Requires: gstreamer-plugins-good
  47. Obsoletes: %{name}-backend-gst < 4.2.0-4
  48. Provides: %{name}-backend-gst = %{version}-%{release}
  49. Provides: phonon-backend = %{version}-%{release}
  50. %description backend-gstreamer
  51. %{summary}.
  52. %package backend-xine
  53. Summary: xine phonon backend
  54. Group: System Environment/Libraries
  55. Requires: %{name} = %{version}-%{release}
  56. Provides: phonon-backend = %{version}-%{release}
  57. %description backend-xine
  58. %{summary}.
  59. %package devel
  60. Summary: Development files for phonon
  61. Group: Development/Libraries
  62. Requires: %{name} = %{version}-%{release}
  63. Requires: qt4-devel >= 4.4.0
  64. %description devel
  65. Header files for developing applications using phonon
  66. %prep
  67. %setup -q
  68. #patch51 -p0 -b .fix-decodebin-usage
  69. %patch52 -p1 -b .gstreamer-fix-seekable-query-failed
  70. %patch53 -p1 -b .phonon-allow-stop-empty-source
  71. #patch57 -p1 -b .pulse-devicemove-rejig
  72. %build
  73. %ifarch x86_64
  74. PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`"
  75. %endif
  76. mkdir -p %{_target_platform}
  77. pushd %{_target_platform}
  78. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  79. %cmake \
  80. -DUSE_INSTALL_PLUGIN=TRUE \
  81. ..
  82. popd
  83. make %{?_smp_mflags} -C %{_target_platform}
  84. %install
  85. rm -rf $RPM_BUILD_ROOT
  86. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  87. # symlink for qt/phonon compatibility
  88. ln -s ../KDE/Phonon $RPM_BUILD_ROOT%{_includedir}/phonon/Phonon
  89. # move the oxygen-only phonon-xine icons to hicolor
  90. test -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor && exit 0
  91. mv $RPM_BUILD_ROOT%{_datadir}/icons/oxygen \
  92. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor
  93. # gstreamer icons
  94. install -D -m 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/phonon-gstreamer.svg
  95. install -D -m 0644 %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/phonon-gstreamer.png
  96. install -D -m 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps/phonon-gstreamer.png
  97. install -D -m 0644 %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/phonon-gstreamer.png
  98. install -D -m 0644 %{SOURCE14} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/phonon-gstreamer.png
  99. install -D -m 0644 %{SOURCE15} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/phonon-gstreamer.png
  100. install -D -m 0644 %{SOURCE16} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/phonon-gstreamer.png
  101. %clean
  102. rm -rf $RPM_BUILD_ROOT
  103. %post -p /sbin/ldconfig
  104. %postun -p /sbin/ldconfig
  105. %posttrans backend-gstreamer
  106. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  107. %posttrans backend-xine
  108. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  109. %postun backend-gstreamer
  110. if [ $1 -eq 0 ] ; then
  111. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  112. fi
  113. %postun backend-xine
  114. if [ $1 -eq 0 ] ; then
  115. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  116. fi
  117. %files
  118. %defattr(-,root,root)
  119. %doc COPYING.LIB
  120. %{_libdir}/*.so.*
  121. %{_datadir}/dbus-1/interfaces/*
  122. # kde4-specific dirs
  123. %dir %{_libdir}/kde4/plugins/phonon_backend
  124. %dir %{_datadir}/kde4/services/phononbackends
  125. %files backend-gstreamer
  126. %defattr(-,root,root,-)
  127. %{_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so
  128. %{_datadir}/kde4/services/phononbackends/gstreamer.desktop
  129. %{_datadir}/icons/hicolor/*/apps/phonon-gstreamer.*
  130. %files backend-xine
  131. %defattr(-,root,root,-)
  132. %{_libdir}/kde4/plugins/phonon_backend/phonon_xine.so
  133. %{_datadir}/kde4/services/phononbackends/xine.desktop
  134. %{_datadir}/icons/hicolor/*/apps/phonon-xine.*
  135. %files devel
  136. %defattr(-,root,root)
  137. %dir %{_includedir}/KDE
  138. %{_includedir}/KDE/Phonon/
  139. %{_includedir}/phonon/
  140. %{_libdir}/*.so
  141. %{_libdir}/pkgconfig/*.pc
  142. %changelog
  143. * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.2-1
  144. - new upstream release
  145. - dropt Patch51 and 57
  146. - rebuilt with rpm-4.8.1
  147. * Sat Mar 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.0-1
  148. - new upstream release
  149. - dropt Patch1, 50, 54 and 100
  150. - added Patch57
  151. * Fri Jan 22 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.3.80-5.2
  152. - F11: patch/modularize pa device-manager bits
  153. * Sun Feb 14 2010 Shu KONNO <owa@bg.wakwak.com> 4.3.80-2
  154. - added qmake path to PATH (if x86_64)
  155. * Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.80-1
  156. - new upstream release
  157. - built with new toolchain
  158. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.1-3
  159. - added Patch102 and 103 from FC
  160. * Thu Jun 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.3.1-11
  161. - fix for '#' in filenames
  162. * Fri Jun 05 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.3.1-8
  163. - restore patches to the xine backend
  164. * Fri Aug 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.1-2
  165. - added Patch100 and 101 from FC
  166. * Tue Mar 3 2009 Lukáš Tinkl <ltinkl@redhat.com> - 4.3.1-2
  167. - backport GStreamer backend bugfixes (UTF-8 file handling, volume fader)
  168. - added backend sub-pakcages
  169. * Thu Mar 26 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.3.1-1
  170. - new upstream release
  171. - add BuildPrereq: cmake
  172. * Sat Jan 24 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.3.0-1
  173. - new upstream release
  174. * Wed Jan 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.2.96-1
  175. - new upstream release
  176. - update %%files
  177. - add BuildPrereq: xine-lib-devel libxcb-devel
  178. * Wed Nov 26 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.2.80-1
  179. - new upstream release
  180. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 4.2.0-2
  181. - added script to append qmake path
  182. - added option -DLIB_INSTALL_DIR at cmake
  183. * Tue Oct 7 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 4.2.0-1
  184. - initial release for VineSeed