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