[4048] | 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) |
---|
[2611] | 3 | |
---|
| 4 | Name: phonon-backend-gstreamer |
---|
| 5 | Summary: Gstreamer phonon backend |
---|
| 6 | Summary(ja): Phonon の gstreamer バックエンド |
---|
[4048] | 7 | Version: 4.5.1 |
---|
| 8 | Release: 1%{?_dist_release} |
---|
[2611] | 9 | |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | License: LGPLv2+ |
---|
| 12 | URL: http://phonon.kde.org/ |
---|
| 13 | |
---|
| 14 | Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-gstreamer/%{version}/src/phonon-backend-gstreamer-%{version}.tar.bz2 |
---|
| 15 | |
---|
| 16 | ## Mandriva/upstreamable patches |
---|
| 17 | |
---|
| 18 | ## Ubuntu/upstreamable patches |
---|
| 19 | Patch60: phonon-4.4.3-flac_mimetype.patch |
---|
| 20 | |
---|
| 21 | ## Upstream patches |
---|
| 22 | |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 24 | |
---|
| 25 | BuildRequires: automoc4 |
---|
| 26 | BuildRequires: cmake |
---|
| 27 | BuildRequires: gstreamer-devel |
---|
| 28 | BuildRequires: gstreamer-plugins-base-devel |
---|
[4048] | 29 | BuildRequires: phonon-devel >= 4.5.0 |
---|
[2611] | 30 | |
---|
| 31 | Provides: phonon-backend = %{phonon_version} |
---|
| 32 | |
---|
| 33 | Obsoletes: phonon-backend-gst < 4.2.0-4 |
---|
| 34 | Provides: phonon-backend-gst = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | Obsoletes: phonon-gstreamer < 4.4.4-0.2 |
---|
| 37 | Provides: phonon-gstreamer = %{version}-%{release} |
---|
| 38 | |
---|
| 39 | Requires: gstreamer-plugins-good |
---|
| 40 | # not *strictly* required, but strongly recommended by upstream when built |
---|
| 41 | # with USE_INSTALL_PLUGIN |
---|
| 42 | #Requires: PackageKit-gstreamer-plugin |
---|
| 43 | Requires: phonon => %{phonon_version} |
---|
| 44 | Requires: qt4 >= %{_qt4_version} |
---|
| 45 | |
---|
| 46 | %description |
---|
| 47 | %{summary}. |
---|
| 48 | |
---|
| 49 | %description -l ja |
---|
| 50 | Phonon の gstreamer バックエンドです. |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n phonon-backend-gstreamer-%{version} |
---|
| 54 | |
---|
[4048] | 55 | #patch52 -p1 -b .gstreamer-fix-seekable-query-failed |
---|
[2611] | 56 | %patch60 -p1 -b .flac_mimetype |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %build |
---|
| 60 | mkdir -p %{_target_platform} |
---|
| 61 | pushd %{_target_platform} |
---|
| 62 | %{cmake} \ |
---|
| 63 | -DUSE_INSTALL_PLUGIN:BOOL=ON \ |
---|
| 64 | .. |
---|
| 65 | popd |
---|
| 66 | |
---|
| 67 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %install |
---|
| 71 | rm -rf $RPM_BUILD_ROOT |
---|
| 72 | |
---|
| 73 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %clean |
---|
| 77 | rm -rf $RPM_BUILD_ROOT |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %post |
---|
| 81 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 82 | |
---|
| 83 | %postun |
---|
| 84 | if [ $1 -eq 0 ] ; then |
---|
| 85 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 86 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 87 | fi |
---|
| 88 | |
---|
| 89 | %posttrans |
---|
| 90 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %files |
---|
| 94 | %defattr(-,root,root,-) |
---|
| 95 | %doc COPYING.LIB |
---|
| 96 | %{_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so |
---|
| 97 | %{_datadir}/kde4/services/phononbackends/gstreamer.desktop |
---|
| 98 | %{_datadir}/icons/hicolor/*/apps/phonon-gstreamer.* |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %changelog |
---|
[4048] | 102 | * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.1-1 |
---|
| 103 | - new upstream release |
---|
| 104 | |
---|
[2611] | 105 | * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.4-2 |
---|
| 106 | - Initial build for VineSeed |
---|
| 107 | |
---|
| 108 | * Fri Jan 21 2011 Rex Dieter <rdieter@fedoraproject.org> 4.4.4-1 |
---|
| 109 | - phonon-backend-gstreamer-4.4.4 |
---|
| 110 | |
---|
| 111 | * Fri Jan 07 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.4.20110104 |
---|
| 112 | - Requires: PackageKit-gstreamer-plugin , avoids potential crashers elsewhere |
---|
| 113 | when built with USE_INSTALL_PLUGIN (kde#262308) |
---|
| 114 | |
---|
| 115 | * Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.3.20110104 |
---|
| 116 | - %%doc COPYING.LIB |
---|
| 117 | - add comment on pnonon-gstreamer_snapshot.sh usage |
---|
| 118 | |
---|
| 119 | * Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.2.20110104 |
---|
| 120 | - phonon-backend-gstreamer |
---|
| 121 | |
---|
| 122 | * Tue Jan 04 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-0.1.20110104 |
---|
| 123 | - phonon-gstreamer-4.4.4-20110104 snapshot |
---|
| 124 | |
---|