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.9.0 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | |
---|
10 | License: LGPLv2+ |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://phonon.kde.org/ |
---|
13 | |
---|
14 | Vendor: Project Vine |
---|
15 | Distribution: Vine Linux |
---|
16 | |
---|
17 | Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-gstreamer/%{version}/src/phonon-backend-gstreamer-%{version}.tar.xz |
---|
18 | |
---|
19 | ## Mandriva/upstreamable patches |
---|
20 | |
---|
21 | ## Ubuntu/upstreamable patches |
---|
22 | |
---|
23 | ## Upstream patches |
---|
24 | |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
26 | BuildRequires: automoc4 |
---|
27 | BuildRequires: cmake |
---|
28 | BuildRequires: extra-cmake-modules |
---|
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 |
---|
36 | BuildRequires: pkgconfig(phonon4qt5) >= 4.7.80 |
---|
37 | BuildRequires: pkgconfig(QtOpenGL) |
---|
38 | BuildRequires: pkgconfig(Qt5OpenGL) |
---|
39 | BuildRequires: pkgconfig(Qt5X11Extras) |
---|
40 | |
---|
41 | # vine patch |
---|
42 | |
---|
43 | |
---|
44 | Provides: phonon-backend%{?_isa} = %{phonon_version} |
---|
45 | |
---|
46 | Obsoletes: phonon-backend-gst < 4.2.0-4 |
---|
47 | Provides: phonon-backend-gst = %{version}-%{release} |
---|
48 | |
---|
49 | Obsoletes: phonon-gstreamer < 4.4.4-0.2 |
---|
50 | Provides: phonon-gstreamer = %{version}-%{release} |
---|
51 | |
---|
52 | Requires: gstreamer1-plugins-good |
---|
53 | # not *strictly* required, but strongly recommended by upstream when built |
---|
54 | # with USE_INSTALL_PLUGIN |
---|
55 | #Requires: PackageKit-gstreamer-plugin |
---|
56 | Requires: phonon%{?_isa} >= %{phonon_version} |
---|
57 | Requires: qt4 >= %{_qt4_version} |
---|
58 | |
---|
59 | %description |
---|
60 | %{summary}. |
---|
61 | |
---|
62 | %description -l ja |
---|
63 | Phonon の gstreamer バックエンドです. |
---|
64 | |
---|
65 | |
---|
66 | %package -n phonon-qt5-backend-gstreamer |
---|
67 | Summary: Gstreamer phonon-qt5 backend |
---|
68 | Provides: phonon-qt5-backend%{?_isa} = %{phonon_version} |
---|
69 | %{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}} |
---|
70 | Requires: gstreamer1-plugins-good |
---|
71 | %description -n phonon-qt5-backend-gstreamer |
---|
72 | %{summary}. |
---|
73 | |
---|
74 | |
---|
75 | %prep |
---|
76 | %autosetup -n phonon-gstreamer-%{version} -p1 |
---|
77 | |
---|
78 | |
---|
79 | %build |
---|
80 | mkdir -p %{_target_platform} |
---|
81 | pushd %{_target_platform} |
---|
82 | %cmake \ |
---|
83 | -DCMAKE_BUILD_TYPE:STRING="Release" \ |
---|
84 | -DUSE_INSTALL_PLUGIN:BOOL=ON \ |
---|
85 | .. |
---|
86 | popd |
---|
87 | |
---|
88 | make %{?_smp_mflags} -C %{_target_platform} |
---|
89 | |
---|
90 | mkdir -p %{_target_platform}-Qt5 |
---|
91 | pushd %{_target_platform}-Qt5 |
---|
92 | %cmake \ |
---|
93 | -DCMAKE_BUILD_TYPE:STRING="Release" \ |
---|
94 | -DUSE_INSTALL_PLUGIN:BOOL=ON \ |
---|
95 | -DPHONON_BUILD_PHONON4QT5:BOOL=ON \ |
---|
96 | .. |
---|
97 | popd |
---|
98 | |
---|
99 | make %{?_smp_mflags} -C %{_target_platform}-Qt5 |
---|
100 | |
---|
101 | |
---|
102 | %install |
---|
103 | rm -rf $RPM_BUILD_ROOT |
---|
104 | |
---|
105 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform}-Qt5 |
---|
106 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
107 | |
---|
108 | |
---|
109 | %clean |
---|
110 | rm -rf $RPM_BUILD_ROOT |
---|
111 | |
---|
112 | |
---|
113 | %post |
---|
114 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
115 | |
---|
116 | %postun |
---|
117 | if [ $1 -eq 0 ] ; then |
---|
118 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
119 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
120 | fi |
---|
121 | |
---|
122 | %posttrans |
---|
123 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
124 | |
---|
125 | |
---|
126 | %files |
---|
127 | %defattr(-,root,root,-) |
---|
128 | %license COPYING.LIB |
---|
129 | %{_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so |
---|
130 | %{_datadir}/kde4/services/phononbackends/gstreamer.desktop |
---|
131 | %{_datadir}/icons/hicolor/*/apps/phonon-gstreamer.* |
---|
132 | |
---|
133 | %files -n phonon-qt5-backend-gstreamer |
---|
134 | %license COPYING.LIB |
---|
135 | %{_qt5_plugindir}/phonon4qt5_backend/phonon_gstreamer.so |
---|
136 | |
---|
137 | |
---|
138 | %changelog |
---|
139 | * Tue Jul 12 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.9.0-1 |
---|
140 | - new upstream release. |
---|
141 | |
---|
142 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.2-3 |
---|
143 | - added Patch1000. |
---|
144 | |
---|
145 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.2-2 |
---|
146 | - rebuilt with new toolchain. |
---|
147 | |
---|
148 | * Sat Jan 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.8.2-1 |
---|
149 | - new upstream release |
---|
150 | |
---|
151 | * Fri Nov 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.8.0-1 |
---|
152 | - new upstream release |
---|
153 | |
---|
154 | * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.1-1 |
---|
155 | - new upstream release |
---|
156 | |
---|
157 | * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.4-2 |
---|
158 | - Initial build for VineSeed |
---|
159 | |
---|
160 | * Fri Jan 21 2011 Rex Dieter <rdieter@fedoraproject.org> 4.4.4-1 |
---|
161 | - phonon-backend-gstreamer-4.4.4 |
---|
162 | |
---|
163 | * Fri Jan 07 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.4.20110104 |
---|
164 | - Requires: PackageKit-gstreamer-plugin , avoids potential crashers elsewhere |
---|
165 | when built with USE_INSTALL_PLUGIN (kde#262308) |
---|
166 | |
---|
167 | * Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.3.20110104 |
---|
168 | - %%doc COPYING.LIB |
---|
169 | - add comment on pnonon-gstreamer_snapshot.sh usage |
---|
170 | |
---|
171 | * Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.2.20110104 |
---|
172 | - phonon-backend-gstreamer |
---|
173 | |
---|
174 | * Tue Jan 04 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-0.1.20110104 |
---|
175 | - phonon-gstreamer-4.4.4-20110104 snapshot |
---|
176 | |
---|