3 # - what more bowsers can be supported?
6 %bcond_without gstreamer # build with gstreamer instead xine-lib
7 %bcond_without nvtv # build without nvtv support
8 %bcond_without lirc # without lirc support
10 # nvtv only available on few archs
11 %ifnarch alpha arm %{ix86} ia64 sh %{x8664}
15 Summary: Movie player for GNOME 2 based on the gstreamer engine
16 Summary(pl.UTF-8): Odtwarzacz filmów dla GNOME 2 oparty na silniku gstreamer
21 Group: Applications/Multimedia
22 Source0: http://ftp.gnome.org/pub/gnome/sources/totem/2.18/%{name}-%{version}.tar.bz2
23 # Source0-md5: c8faa37112cfd2edfebdd1df88519f36
24 Patch0: %{name}-desktop.patch
25 Patch1: %{name}-idl.patch
26 Patch2: %{name}-configure.patch
27 URL: http://www.gnome.org/projects/totem/
28 BuildRequires: GConf2-devel >= 2.18.0.1
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: dbus-glib-devel >= 0.73
32 BuildRequires: gnome-desktop-devel >= 2.17.92
33 BuildRequires: gnome-vfs2-devel >= 2.17.91
35 BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
37 BuildRequires: gtk+2-devel >= 2:2.10.9
38 BuildRequires: intltool >= 0.35.5
39 BuildRequires: iso-codes
40 BuildRequires: libglade2-devel >= 1:2.6.0
41 BuildRequires: libgnomeui-devel >= 2.17.92
42 BuildRequires: libmusicbrainz-devel
43 %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.5}
44 BuildRequires: libtool
45 %{?with_lirc:BuildRequires: lirc-devel}
46 BuildRequires: nautilus-cd-burner-devel >= 2.17.8
47 BuildRequires: nautilus-devel >= 2.17.92
48 BuildRequires: pkgconfig
49 BuildRequires: rpmbuild(macros) >= 1.357
50 BuildRequires: scrollkeeper
51 BuildRequires: shared-mime-info >= 0.17
52 %{!?with_gstreamer:BuildRequires: xine-lib-devel >= 2:1.0.2-1}
53 BuildRequires: xorg-lib-libXv-devel
54 BuildRequires: xorg-lib-libXxf86vm-devel >= 1.0.1
55 BuildRequires: xulrunner-devel
56 Requires(post,postun): gtk+2
57 Requires(post,postun): hicolor-icon-theme
58 Requires(post,postun): scrollkeeper
59 Requires(post,preun): GConf2
60 Requires: %{name}-libs = %{version}-%{release}
62 Requires: gstreamer-GConf >= 0.10.3
63 Requires: gstreamer-audiosink >= 0.10
64 Requires: gstreamer-videosink >= 0.10
66 Requires: xine-plugin-video
68 Conflicts: xine-input-gnome-vfs
70 Requires: gtk+2 >= 2:2.10.9
71 Requires: nautilus >= 2.17.92
72 %requires_eq xulrunner-libs
73 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77 Totem is simple movie player for the GNOME desktop based on gstreamer.
78 It features a simple playlist, a full-screen mode, seek and volume
79 controls, as well as a pretty complete keyboard navigation.
81 %description -l pl.UTF-8
82 Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na
83 gstreamer. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę
84 położenia w pliku i głośności, a także w miarę kompletną obsługę z
89 Totem is simple movie player for the GNOME desktop based on xine-libs.
90 It features a simple playlist, a full-screen mode, seek and volume
91 controls, as well as a pretty complete keyboard navigation.
93 %description -l pl.UTF-8
94 Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na
95 xine-libs. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę
96 położenia w pliku i głośności, a także w miarę kompletną obsługę z
101 Summary: Totem shared libraries
102 Summary(pl.UTF-8): Współdzielone biblioteki Totema
104 Requires: gnome-desktop-libs >= 2.17.92
105 Requires: nautilus-libs >= 2.17.92
108 Totem shared libraries.
110 %description libs -l pl.UTF-8
111 Współdzielone biblioteki Totema.
114 Summary: Totem include files
115 Summary(pl.UTF-8): Pliki nagłówkowe Totema
116 Group: Development/Libraries
117 Requires: %{name}-libs = %{version}-%{release}
118 Requires: gtk+2-devel >= 2:2.10.9
123 %description devel -l pl.UTF-8
124 Pliki nagłówkowe Totema.
127 Summary: Static Totem libraries
128 Summary(pl.UTF-8): Statyczne biblioteki Totema
129 Group: Development/Libraries
130 Requires: %{name}-devel = %{version}-%{release}
133 Static Totem libraries.
135 %description static -l pl.UTF-8
136 Statyczne biblioteki Totema.
138 %package -n browser-plugin-%{name}
139 Summary: Totem's browser plugin
140 Summary(pl.UTF-8): Wtyczka Totema do przeglądarek WWW
142 Requires: %{name} = %{version}-%{release}
143 Requires: browser-plugins >= 2.0
144 Requires: browser-plugins(%{_target_base_arch})
145 Provides: mozilla-firefox-plugin-totem
146 Provides: mozilla-plugin-totem
147 Obsoletes: mozilla-firefox-plugin-totem
148 Obsoletes: mozilla-plugin-totem
150 %description -n browser-plugin-%{name}
151 Totem's plugin for browsers.
153 %description -n browser-plugin-%{name} -l pl.UTF-8
154 Wtyczka Totem do przeglądarek WWW.
168 --disable-scrollkeeper \
169 %{?with_lirc:--enable-lirc} \
172 --%{?with_nvtv:enable}%{!?with_nvtv:disable}-nvtv \
173 %{?with_gstreamer:--enable-gstreamer}
176 MOZILLA_IDLDIR="%{_includedir}/xulrunner/idl"
180 rm -rf $RPM_BUILD_ROOT
183 DESTDIR=$RPM_BUILD_ROOT \
184 plugindir=%{_browserpluginsdir} \
185 typelibdir=%{_browserpluginsdir} \
186 xptdir=%{_browserpluginsdir} \
187 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
189 rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a}
190 rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.{la,a}
192 %find_lang %{name} --all-name --with-gnome
195 rm -rf $RPM_BUILD_ROOT
198 %gconf_schema_install totem-handlers.schemas
199 %gconf_schema_install totem-video-thumbnail.schemas
200 %gconf_schema_install totem.schemas
201 %scrollkeeper_update_post
202 %update_desktop_database_post
203 %update_icon_cache hicolor
206 %gconf_schema_uninstall totem-handlers.schemas
207 %gconf_schema_uninstall totem-video-thumbnail.schemas
208 %gconf_schema_uninstall totem.schemas
211 %scrollkeeper_update_postun
212 %update_desktop_database_postun
213 %update_icon_cache hicolor
215 %post libs -p /sbin/ldconfig
216 %postun libs -p /sbin/ldconfig
218 %post -n browser-plugin-%{name}
219 %update_browser_plugins
221 %postun -n browser-plugin-%{name}
222 if [ "$1" = 0 ]; then
223 %update_browser_plugins
226 %files -f %{name}.lang
227 %defattr(644,root,root,755)
228 %doc AUTHORS ChangeLog NEWS README TODO
229 %attr(755,root,root) %{_bindir}/totem
230 %attr(755,root,root) %{_bindir}/totem-video-indexer
231 %attr(755,root,root) %{_bindir}/totem-video-thumbnailer
232 %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/libtotem-properties-page.so
234 %{_desktopdir}/totem.desktop
235 %{_mandir}/man1/totem.1*
236 %{_mandir}/man1/totem-video-thumbnailer.1*
237 %{_omf_dest_dir}/%{name}
238 %{_iconsdir}/hicolor/*/*/totem.*
239 %{_pixmapsdir}/vanity.png
240 %{_sysconfdir}/gconf/schemas/totem-handlers.schemas
241 %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas
242 %{_sysconfdir}/gconf/schemas/totem.schemas
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libtotem-plparser.so.*.*.*
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libtotem-plparser.so
251 %{_libdir}/libtotem-plparser.la
253 %{_pkgconfigdir}/totem-plparser.pc
256 %defattr(644,root,root,755)
257 %{_libdir}/libtotem-plparser.a
259 %files -n browser-plugin-%{name}
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/totem-plugin-viewer
262 %attr(755,root,root) %{_browserpluginsdir}/*.so
263 %attr(755,root,root) %{_browserpluginsdir}/*.xpt