3 %bcond_without bemused # build without bemused plugin
4 %bcond_without gstreamer # build with xine-lib instead of gstreamer
5 %bcond_without nvtv # build without nvtv support
6 %bcond_without lirc # without lirc support
8 # nvtv only available on few archs
9 %ifnarch alpha arm %{ix86} ia64 sh %{x8664}
13 Summary: Movie player for GNOME 2 based on the gstreamer engine
14 Summary(pl.UTF-8): Odtwarzacz filmów dla GNOME 2 oparty na silniku gstreamer
19 Group: Applications/Multimedia
20 Source0: http://ftp.gnome.org/pub/GNOME/sources/totem/2.20/%{name}-%{version}.tar.bz2
21 # Source0-md5: e7f289179b8ac304738d599d4a5c14a9
22 Patch0: %{name}-desktop.patch
23 Patch1: %{name}-idl.patch
24 Patch2: %{name}-configure.patch
25 Patch3: %{name}-codegen.patch
26 URL: http://www.gnome.org/projects/totem/
27 BuildRequires: GConf2-devel >= 2.20.0
28 BuildRequires: autoconf
29 BuildRequires: automake
30 %{?with_bemused:BuildRequires: bluez-libs-devel}
31 BuildRequires: dbus-glib-devel >= 0.73
32 BuildRequires: gnome-desktop-devel >= 2.20.0
33 BuildRequires: gnome-vfs2-devel >= 2.20.0
34 %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10.10}
35 BuildRequires: gtk+2-devel >= 2:2.12.0
36 BuildRequires: intltool >= 0.36.2
37 BuildRequires: iso-codes
38 BuildRequires: libgalago-devel >= 0.5.2
39 BuildRequires: libglade2-devel >= 1:2.6.2
40 BuildRequires: libgnomeui-devel >= 2.20.0
41 BuildRequires: libmusicbrainz-devel
42 %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.5}
43 BuildRequires: libtool
44 %{?with_lirc:BuildRequires: lirc-devel}
45 BuildRequires: nautilus-cd-burner-devel >= 2.20.0
46 BuildRequires: nautilus-devel >= 2.20.0
47 BuildRequires: pkgconfig
48 BuildRequires: rpmbuild(macros) >= 1.357
49 BuildRequires: scrollkeeper
50 BuildRequires: shared-mime-info >= 0.17
51 %{!?with_gstreamer:BuildRequires: xine-lib-devel >= 2:1.0.2-1}
52 BuildRequires: xorg-lib-libXv-devel
53 BuildRequires: xorg-lib-libXxf86vm-devel >= 1.0.1
54 BuildRequires: xulrunner-devel
55 Requires(post,postun): gtk+2
56 Requires(post,postun): hicolor-icon-theme
57 Requires(post,postun): scrollkeeper
58 Requires(post,preun): GConf2
59 Requires: %{name}-libs = %{version}-%{release}
61 Requires: gstreamer-GConf >= 0.10.3
62 Requires: gstreamer-audiosink >= 0.10
63 Requires: gstreamer-videosink >= 0.10
65 Requires: xine-plugin-video
67 Conflicts: xine-input-gnome-vfs
69 Requires: gtk+2 >= 2:2.12.0
70 Requires: nautilus >= 2.20.0
71 %requires_eq xulrunner-libs
72 Suggests: gstreamer-ffmpeg
73 Suggests: gstreamer-mpeg
74 Suggests: gstreamer-pango
75 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79 Totem is simple movie player for the GNOME desktop based on gstreamer.
80 It features a simple playlist, a full-screen mode, seek and volume
81 controls, as well as a pretty complete keyboard navigation.
83 %description -l pl.UTF-8
84 Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na
85 gstreamer. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę
86 położenia w pliku i głośności, a także w miarę kompletną obsługę z
91 Totem is simple movie player for the GNOME desktop based on xine-libs.
92 It features a simple playlist, a full-screen mode, seek and volume
93 controls, as well as a pretty complete keyboard navigation.
95 %description -l pl.UTF-8
96 Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na
97 xine-libs. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę
98 położenia w pliku i głośności, a także w miarę kompletną obsługę z
103 Summary: Totem shared libraries
104 Summary(pl.UTF-8): Współdzielone biblioteki Totema
106 Requires: gnome-desktop-libs >= 2.20.0
107 Requires: nautilus-libs >= 2.20.0
110 Totem shared libraries.
112 %description libs -l pl.UTF-8
113 Współdzielone biblioteki Totema.
116 Summary: Totem include files
117 Summary(pl.UTF-8): Pliki nagłówkowe Totema
118 Group: Development/Libraries
119 Requires: %{name}-libs = %{version}-%{release}
120 Requires: gtk+2-devel >= 2:2.12.0
125 %description devel -l pl.UTF-8
126 Pliki nagłówkowe Totema.
129 Summary: Static Totem libraries
130 Summary(pl.UTF-8): Statyczne biblioteki Totema
131 Group: Development/Libraries
132 Requires: %{name}-devel = %{version}-%{release}
135 Static Totem libraries.
137 %description static -l pl.UTF-8
138 Statyczne biblioteki Totema.
140 %package -n browser-plugin-%{name}
141 Summary: Totem's browser plugin
142 Summary(pl.UTF-8): Wtyczka Totema do przeglądarek WWW
144 Requires: %{name} = %{version}-%{release}
145 Requires: browser-plugins >= 2.0
146 Requires: browser-plugins(%{_target_base_arch})
147 Provides: mozilla-firefox-plugin-totem
148 Provides: mozilla-plugin-totem
149 Obsoletes: mozilla-firefox-plugin-totem
150 Obsoletes: mozilla-plugin-totem
152 %description -n browser-plugin-%{name}
153 Totem's plugin for browsers.
155 %description -n browser-plugin-%{name} -l pl.UTF-8
156 Wtyczka Totem do przeglądarek WWW.
172 --disable-scrollkeeper \
173 %{?with_lirc:--enable-lirc} \
176 --%{?with_nvtv:enable}%{!?with_nvtv:disable}-nvtv \
177 %{?with_gstreamer:--enable-gstreamer}
180 MOZILLA_IDLDIR="%{_includedir}/xulrunner/idl"
184 rm -rf $RPM_BUILD_ROOT
187 DESTDIR=$RPM_BUILD_ROOT \
188 MOZILLA_PLUGINDIR=%{_browserpluginsdir} \
189 typelibdir=%{_browserpluginsdir} \
190 xptdir=%{_browserpluginsdir} \
191 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
193 rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a}
194 rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.{la,a}
195 rm -f $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/*.{la,a}
197 %find_lang %{name} --all-name --with-gnome
200 rm -rf $RPM_BUILD_ROOT
203 %gconf_schema_install totem-handlers.schemas
204 %gconf_schema_install totem-video-thumbnail.schemas
205 %gconf_schema_install totem.schemas
206 %scrollkeeper_update_post
207 %update_desktop_database_post
208 %update_icon_cache hicolor
211 %gconf_schema_uninstall totem-handlers.schemas
212 %gconf_schema_uninstall totem-video-thumbnail.schemas
213 %gconf_schema_uninstall totem.schemas
216 %scrollkeeper_update_postun
217 %update_desktop_database_postun
218 %update_icon_cache hicolor
220 %post libs -p /sbin/ldconfig
221 %postun libs -p /sbin/ldconfig
223 %post -n browser-plugin-%{name}
224 %update_browser_plugins
226 %postun -n browser-plugin-%{name}
227 if [ "$1" = 0 ]; then
228 %update_browser_plugins
231 %files -f %{name}.lang
232 %defattr(644,root,root,755)
233 %doc AUTHORS ChangeLog NEWS README TODO
234 %attr(755,root,root) %{_bindir}/totem
235 %attr(755,root,root) %{_bindir}/totem-video-indexer
236 %attr(755,root,root) %{_bindir}/totem-video-thumbnailer
237 %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/libtotem-properties-page.so
239 %{_desktopdir}/totem.desktop
240 %{_mandir}/man1/totem.1*
241 %{_mandir}/man1/totem-video-thumbnailer.1*
242 %{_omf_dest_dir}/%{name}
243 %{_iconsdir}/hicolor/*/*/totem.*
244 #%{_pixmapsdir}/vanity.png
245 %{_sysconfdir}/gconf/schemas/totem-handlers.schemas
246 %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas
247 %{_sysconfdir}/gconf/schemas/totem.schemas
248 %dir %{_libdir}/totem
249 %dir %{_libdir}/totem/plugins
250 %{?with_bemused:%dir %{_libdir}/totem/plugins/bemused}
251 %dir %{_libdir}/totem/plugins/galago
252 %dir %{_libdir}/totem/plugins/gromit
253 %dir %{_libdir}/totem/plugins/lirc
254 %dir %{_libdir}/totem/plugins/media-player-keys
255 %dir %{_libdir}/totem/plugins/ontop
256 %dir %{_libdir}/totem/plugins/properties
257 %dir %{_libdir}/totem/plugins/screensaver
258 %dir %{_libdir}/totem/plugins/skipto
259 %attr(755,root,root) %{_libdir}/totem/plugins/*/*.so
260 %{_libdir}/totem/plugins/*/*.totem-plugin
261 %{_libdir}/totem/plugins/*/*.ui
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/libtotem-plparser.so.*.*.*
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libtotem-plparser.so
270 %{_libdir}/libtotem-plparser.la
272 %{_pkgconfigdir}/totem-plparser.pc
275 %defattr(644,root,root,755)
276 %{_libdir}/libtotem-plparser.a
278 %files -n browser-plugin-%{name}
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/totem-plugin-viewer
281 %attr(755,root,root) %{_browserpluginsdir}/*.so
282 %attr(755,root,root) %{_browserpluginsdir}/*.xpt