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