phonon-backend-xine-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. %global phonon_version %(pkg-config --modversion phonon 2>/dev/null || echo 4.5.0)
  2. %global _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.7.2)
  3. Name: phonon-backend-xine
  4. Summary: Xine phonon backend
  5. Summary(ja): Phonon の xine バックエンド
  6. Version: 4.4.4
  7. Release: 3%{?_dist_release}
  8. Group: System Environment/Libraries
  9. License: LGPLv2+
  10. URL: http://phonon.kde.org/
  11. Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-xine/%{version}/src/phonon-backend-xine-%{version}.tar.bz2
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: automoc4
  14. BuildRequires: cmake
  15. BuildRequires: phonon-devel >= 4.5.0
  16. BuildRequires: libxcb-devel
  17. BuildRequires: xine-lib-devel
  18. Provides: phonon-backend = %{phonon_version}
  19. Obsoletes: phonon-xine < 4.4.4-0.2
  20. Provides: phonon-xine = %{version}-%{release}
  21. Requires: phonon => %{phonon_version}
  22. Requires: qt4 >= %{_qt4_version}
  23. %description
  24. %{summary}.
  25. %description -l ja
  26. Phonon の xine バックエンドです.
  27. %prep
  28. %setup -q -n phonon-backend-xine-%{version}
  29. %build
  30. mkdir -p %{_target_platform}
  31. pushd %{_target_platform}
  32. %{cmake} \
  33. -DUSE_INSTALL_PLUGIN=TRUE \
  34. ..
  35. popd
  36. make %{?_smp_mflags} -C %{_target_platform}
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  40. # move icons to hicolor
  41. mv $RPM_BUILD_ROOT%{_datadir}/icons/oxygen \
  42. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %post
  46. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  47. %postun
  48. if [ $1 -eq 0 ] ; then
  49. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  50. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  51. fi
  52. %posttrans
  53. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc COPYING.LIB
  57. %{_libdir}/kde4/plugins/phonon_backend/phonon_xine.so
  58. %{_datadir}/kde4/services/phononbackends/xine.desktop
  59. %{_datadir}/icons/hicolor/*/apps/phonon-xine.*
  60. %changelog
  61. * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.4-3
  62. - rebuilt with phonon-4.5.0
  63. * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.4-2
  64. - Initial build for VineSeed
  65. * Fri Jan 21 2011 Rex Dieter <rdieter@fedoraproject.org> 4.4.4-1
  66. - phonon-backend-xine-4.4.4
  67. * Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-0.3.20110104
  68. - %%doc COPYING.LIB
  69. - add comment on pnonon-xine_snapshot.sh usage
  70. * Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-0.2.20110104
  71. - phonon-backend-xine
  72. * Tue Jan 04 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-0.1.20110104
  73. - phonon-xine-4.4.4-20110104 snapshot