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): 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.16/%{name}-%{version}.tar.bz2
23 # Source0-md5: dacfc1089125170bc47517c39fbc7828
24 Patch0: %{name}-desktop.patch
25 Patch1: %{name}-idl.patch
26 Patch2: %{name}-mozilla_includes.patch
27 Patch3: %{name}-configure.patch
28 URL: http://www.hadess.net/totem.php3
29 BuildRequires: GConf2-devel
30 BuildRequires: autoconf
31 BuildRequires: automake
32 BuildRequires: dbus-glib-devel >= 0.71
33 BuildRequires: gnome-desktop-devel >= 2.16.2
34 BuildRequires: gnome-vfs2-devel >= 2.16.3
36 BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
38 BuildRequires: gtk+2-devel >= 2:2.10.6
39 BuildRequires: intltool >= 0.35.0
40 BuildRequires: iso-codes
41 BuildRequires: libglade2-devel >= 1:2.6.0
42 BuildRequires: libgnomeui-devel >= 2.16.1
43 BuildRequires: libmusicbrainz-devel
44 %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.5}
45 BuildRequires: libtool
46 %{?with_lirc:BuildRequires: lirc-devel}
47 BuildRequires: xulrunner-devel
48 BuildRequires: nautilus-cd-burner-devel >= 2.16.1
49 BuildRequires: nautilus-devel >= 2.16.3
50 BuildRequires: pkgconfig
51 BuildRequires: rpmbuild(macros) >= 1.357
52 BuildRequires: scrollkeeper
53 %{!?with_gstreamer:BuildRequires: xine-lib-devel >= 2:1.0.2-1}
54 BuildRequires: xorg-lib-libXv-devel
55 Requires(post,preun): GConf2 >= 2.16.0
56 Requires(post,postun): gtk+2 >= 2:2.10.6
57 Requires(post,postun): scrollkeeper
58 Requires: %{name}-libs = %{version}-%{release}
60 Requires: gstreamer-GConf >= 0.10.3
61 Requires: gstreamer-audiosink >= 0.10
62 Requires: gstreamer-videosink >= 0.10
64 Requires: xine-plugin-video
66 Conflicts: xine-input-gnome-vfs
68 Requires: gtk+2 >= 2:2.10.6
69 Requires: hicolor-icon-theme
70 Requires: nautilus >= 2.16.3
71 %requires_eq xulrunner-libs
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76 Totem is simple movie player for the GNOME desktop based on gstreamer.
77 It features a simple playlist, a full-screen mode, seek and volume
78 controls, as well as a pretty complete keyboard navigation.
81 Totem to prosty odtwarzacz filmów dla ¶rodowiska GNOME oparty na
82 gstreamer. Ma prost± listê odtwarzania, tryb pe³noekranowy, kontrolê
83 po³o¿enia w pliku i g³o¶no¶ci, a tak¿e w miarê kompletn± obs³ugê z
88 Totem is simple movie player for the GNOME desktop based on xine-libs.
89 It features a simple playlist, a full-screen mode, seek and volume
90 controls, as well as a pretty complete keyboard navigation.
93 Totem to prosty odtwarzacz filmów dla ¶rodowiska GNOME oparty na
94 xine-libs. Ma prost± listê odtwarzania, tryb pe³noekranowy, kontrolê
95 po³o¿enia w pliku i g³o¶no¶ci, a tak¿e w miarê kompletn± obs³ugê z
100 Summary: Totem shared libraries
101 Summary(pl): Wspó³dzielone biblioteki Totema
103 Requires: gnome-desktop-libs >= 2.16.2
104 Requires: nautilus-libs >= 2.16.3
107 Totem shared libraries.
109 %description libs -l pl
110 Wspó³dzielone biblioteki Totema.
113 Summary: Totem include files
114 Summary(pl): Pliki nag³ówkowe Totema
115 Group: Development/Libraries
116 Requires: %{name}-libs = %{version}-%{release}
117 Requires: gtk+2-devel >= 2:2.10.6
122 %description devel -l pl
123 Pliki nag³ówkowe Totema.
126 Summary: Static Totem libraries
127 Summary(pl): Statyczne biblioteki Totema
128 Group: Development/Libraries
129 Requires: %{name}-devel = %{version}-%{release}
132 Static Totem libraries.
134 %description static -l pl
135 Statyczne biblioteki Totema.
137 %package -n browser-plugin-%{name}
138 Summary: Totem's browser plugin
139 Summary(pl): Wtyczka Totema do przegl±darek WWW
141 Requires: %{name} = %{version}-%{release}
142 Requires: browser-plugins >= 2.0
143 Requires: browser-plugins(%{_target_base_arch})
144 Provides: mozilla-firefox-plugin-totem
145 Provides: mozilla-plugin-totem
146 Obsoletes: mozilla-firefox-plugin-totem
147 Obsoletes: mozilla-plugin-totem
149 %description -n browser-plugin-%{name}
150 Totem's plugin for browsers.
152 %description -n browser-plugin-%{name} -l pl
153 Wtyczka Totem do przegl±darek WWW.
168 %{?with_lirc:--enable-lirc} \
171 --%{?with_nvtv:enable}%{!?without_nvtv:disable}-nvtv \
172 %{?with_gstreamer:--enable-gstreamer}
175 MOZILLA_IDLDIR="%{_includedir}/xulrunner/idl"
179 rm -rf $RPM_BUILD_ROOT
182 DESTDIR=$RPM_BUILD_ROOT \
183 plugindir=%{_browserpluginsdir} \
184 typelibdir=%{_browserpluginsdir} \
185 xptdir=%{_browserpluginsdir} \
186 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
188 rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a}
189 rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.{la,a}
191 %find_lang %{name} --all-name --with-gnome
194 rm -rf $RPM_BUILD_ROOT
197 %gconf_schema_install totem-handlers.schemas
198 %gconf_schema_install totem-video-thumbnail.schemas
199 %gconf_schema_install totem.schemas
200 %scrollkeeper_update_post
201 %update_desktop_database_post
202 %update_icon_cache hicolor
205 %gconf_schema_uninstall totem-handlers.schemas
206 %gconf_schema_uninstall totem-video-thumbnail.schemas
207 %gconf_schema_uninstall totem.schemas
210 %scrollkeeper_update_postun
211 %update_desktop_database_postun
212 %update_icon_cache hicolor
214 %post libs -p /sbin/ldconfig
215 %postun libs -p /sbin/ldconfig
217 %post -n browser-plugin-%{name}
218 %update_browser_plugins
220 %postun -n browser-plugin-%{name}
221 if [ "$1" = 0 ]; then
222 %update_browser_plugins
225 %files -f %{name}.lang
226 %defattr(644,root,root,755)
227 %doc AUTHORS ChangeLog NEWS README TODO
228 %attr(755,root,root) %{_bindir}/*
229 %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so
231 %{_desktopdir}/*.desktop
233 %{_omf_dest_dir}/%{name}
234 %{_iconsdir}/hicolor/*/*/totem.*
236 %{_sysconfdir}/gconf/schemas/totem-handlers.schemas
237 %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas
238 %{_sysconfdir}/gconf/schemas/totem.schemas
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libtotem-plparser.so.*.*.*
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libtotem-plparser.so
247 %{_libdir}/libtotem-plparser.la
252 %defattr(644,root,root,755)
253 %{_libdir}/libtotem-plparser.a
255 %files -n browser-plugin-%{name}
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/totem-mozilla-viewer
258 %attr(755,root,root) %{_browserpluginsdir}/*.so
259 %attr(755,root,root) %{_browserpluginsdir}/*.xpt