]> git.pld-linux.org Git - packages/totem.git/blame - totem.spec
- release 2 (xulrunner 1.8.1.8)
[packages/totem.git] / totem.spec
CommitLineData
46bd5504 1#
2# Conditional build
933b3b4d
MB
3%bcond_without bemused # build without bemused plugin
4%bcond_without gstreamer # build with xine-lib instead of gstreamer
157c68a8 5%bcond_without nvtv # build without nvtv support
347a1442 6%bcond_without lirc # without lirc support
46bd5504 7#
55911828 8# nvtv only available on few archs
9%ifnarch alpha arm %{ix86} ia64 sh %{x8664}
9f1323b8 10%undefine with_nvtv
55911828 11%endif
12#
2b4c0720 13Summary: Movie player for GNOME 2 based on the gstreamer engine
f224cb4e 14Summary(pl.UTF-8): Odtwarzacz filmów dla GNOME 2 oparty na silniku gstreamer
aabe26bc 15Name: totem
260efe50 16Version: 2.20.1
555b89ca 17Release: 2
aabe26bc 18License: GPL
19Group: Applications/Multimedia
0803bd61 20Source0: http://ftp.gnome.org/pub/GNOME/sources/totem/2.20/%{name}-%{version}.tar.bz2
260efe50 21# Source0-md5: 6627727e7abd7a7f95257be8df6359a6
0edeae30 22Patch0: %{name}-desktop.patch
c4f293fa 23Patch1: %{name}-idl.patch
22ee5cea 24Patch2: %{name}-configure.patch
933b3b4d 25Patch3: %{name}-codegen.patch
22ee5cea 26URL: http://www.gnome.org/projects/totem/
5adc6be8 27BuildRequires: GConf2-devel >= 2.20.0
40003b25 28BuildRequires: autoconf
29BuildRequires: automake
933b3b4d 30%{?with_bemused:BuildRequires: bluez-libs-devel}
22ee5cea 31BuildRequires: dbus-glib-devel >= 0.73
3ee49a6a 32BuildRequires: gnome-control-center-devel
5adc6be8 33BuildRequires: gnome-desktop-devel >= 2.20.0
933b3b4d
MB
34BuildRequires: gnome-vfs2-devel >= 2.20.0
35%{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10.10}
260efe50 36BuildRequires: gtk+2-devel >= 2:2.12.1
933b3b4d 37BuildRequires: intltool >= 0.36.2
157c68a8 38BuildRequires: iso-codes
933b3b4d
MB
39BuildRequires: libgalago-devel >= 0.5.2
40BuildRequires: libglade2-devel >= 1:2.6.2
5adc6be8 41BuildRequires: libgnomeui-devel >= 2.20.0
157c68a8 42BuildRequires: libmusicbrainz-devel
18fb4626 43%{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.5}
40003b25 44BuildRequires: libtool
347a1442 45%{?with_lirc:BuildRequires: lirc-devel}
5adc6be8
MB
46BuildRequires: nautilus-cd-burner-devel >= 2.20.0
47BuildRequires: nautilus-devel >= 2.20.0
896fc752 48BuildRequires: pkgconfig
04c8048b 49BuildRequires: rpmbuild(macros) >= 1.357
157c68a8 50BuildRequires: scrollkeeper
7c690edb 51BuildRequires: shared-mime-info >= 0.22
157c68a8 52%{!?with_gstreamer:BuildRequires: xine-lib-devel >= 2:1.0.2-1}
b7200538 53BuildRequires: xorg-lib-libXv-devel
22ee5cea 54BuildRequires: xorg-lib-libXxf86vm-devel >= 1.0.1
b27a9cd2
MB
55BuildRequires: xulrunner-devel
56Requires(post,postun): gtk+2
57Requires(post,postun): hicolor-icon-theme
ee338152 58Requires(post,postun): scrollkeeper
22ee5cea 59Requires(post,preun): GConf2
3d67a3e8 60Requires: %{name}-libs = %{version}-%{release}
46bd5504 61%if %{with gstreamer}
1df9a335 62Requires: gstreamer-GConf >= 0.10.3
b7200538 63Requires: gstreamer-audiosink >= 0.10
64Requires: gstreamer-videosink >= 0.10
48ea9bd4
MK
65%else
66Requires: xine-plugin-video
44b879a5
JB
67# unusable
68Conflicts: xine-input-gnome-vfs
46bd5504 69%endif
260efe50 70Requires: gtk+2 >= 2:2.12.1
5adc6be8 71Requires: nautilus >= 2.20.0
04c8048b 72%requires_eq xulrunner-libs
933b3b4d
MB
73Suggests: gstreamer-ffmpeg
74Suggests: gstreamer-mpeg
75Suggests: gstreamer-pango
896fc752 76BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
aabe26bc 77
46bd5504 78%if %{with gstreamer}
aabe26bc 79%description
40003b25 80Totem is simple movie player for the GNOME desktop based on gstreamer.
81It features a simple playlist, a full-screen mode, seek and volume
aabe26bc 82controls, as well as a pretty complete keyboard navigation.
83
1845cc02
JR
84%description -l pl.UTF-8
85Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na
86gstreamer. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę
87położenia w pliku i głośności, a także w miarę kompletną obsługę z
40003b25 88klawiatury.
46bd5504 89
3d991a2d 90%else
46bd5504 91%description
92Totem is simple movie player for the GNOME desktop based on xine-libs.
93It features a simple playlist, a full-screen mode, seek and volume
94controls, as well as a pretty complete keyboard navigation.
95
1845cc02
JR
96%description -l pl.UTF-8
97Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na
98xine-libs. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę
99położenia w pliku i głośności, a także w miarę kompletną obsługę z
46bd5504 100klawiatury.
101%endif
896fc752 102
3bed0444 103%package libs
3d67a3e8 104Summary: Totem shared libraries
f224cb4e 105Summary(pl.UTF-8): Współdzielone biblioteki Totema
3d67a3e8 106Group: Libraries
5adc6be8
MB
107Requires: gnome-desktop-libs >= 2.20.0
108Requires: nautilus-libs >= 2.20.0
3bed0444 109
110%description libs
111Totem shared libraries.
112
1845cc02
JR
113%description libs -l pl.UTF-8
114Współdzielone biblioteki Totema.
3bed0444 115
116%package devel
3d67a3e8 117Summary: Totem include files
f224cb4e 118Summary(pl.UTF-8): Pliki nagłówkowe Totema
3d67a3e8
JB
119Group: Development/Libraries
120Requires: %{name}-libs = %{version}-%{release}
260efe50 121Requires: gtk+2-devel >= 2:2.12.1
3bed0444 122
123%description devel
124Totem headers files.
125
1845cc02
JR
126%description devel -l pl.UTF-8
127Pliki nagłówkowe Totema.
3bed0444 128
129%package static
3d67a3e8 130Summary: Static Totem libraries
f224cb4e 131Summary(pl.UTF-8): Statyczne biblioteki Totema
3d67a3e8
JB
132Group: Development/Libraries
133Requires: %{name}-devel = %{version}-%{release}
3bed0444 134
135%description static
136Static Totem libraries.
137
1845cc02 138%description static -l pl.UTF-8
3bed0444 139Statyczne biblioteki Totema.
140
3f5a8c60
PG
141%package -n browser-plugin-%{name}
142Summary: Totem's browser plugin
f224cb4e 143Summary(pl.UTF-8): Wtyczka Totema do przeglądarek WWW
3f5a8c60 144Group: X11/Libraries
c4f293fa 145Requires: %{name} = %{version}-%{release}
04c8048b 146Requires: browser-plugins >= 2.0
18fb4626 147Requires: browser-plugins(%{_target_base_arch})
3f5a8c60 148Provides: mozilla-firefox-plugin-totem
18fb4626 149Provides: mozilla-plugin-totem
3f5a8c60 150Obsoletes: mozilla-firefox-plugin-totem
18fb4626 151Obsoletes: mozilla-plugin-totem
c4f293fa 152
3f5a8c60
PG
153%description -n browser-plugin-%{name}
154Totem's plugin for browsers.
81f5aff6 155
1845cc02
JR
156%description -n browser-plugin-%{name} -l pl.UTF-8
157Wtyczka Totem do przeglądarek WWW.
81f5aff6 158
aabe26bc 159%prep
160%setup -q
40003b25 161%patch0 -p1
c4f293fa 162%patch1 -p1
81f5aff6 163%patch2 -p1
933b3b4d 164%patch3 -p1
aabe26bc 165
166%build
9e936464 167%{__intltoolize}
40003b25 168%{__libtoolize}
169%{__aclocal}
170%{__autoconf}
171%{__automake}
f11c0f42 172%configure \
22ee5cea 173 --disable-scrollkeeper \
347a1442 174 %{?with_lirc:--enable-lirc} \
c4f293fa 175 --enable-mozilla \
81f5aff6 176 --enable-nautilus \
b27a9cd2 177 --%{?with_nvtv:enable}%{!?with_nvtv:disable}-nvtv \
1df9a335 178 %{?with_gstreamer:--enable-gstreamer}
7f6f5be2 179
81f5aff6 180%{__make} \
04c8048b 181 MOZILLA_IDLDIR="%{_includedir}/xulrunner/idl"
182
aabe26bc 183
184%install
185rm -rf $RPM_BUILD_ROOT
186
187%{__make} install \
4e6e166b 188 DESTDIR=$RPM_BUILD_ROOT \
933b3b4d 189 MOZILLA_PLUGINDIR=%{_browserpluginsdir} \
04c8048b 190 typelibdir=%{_browserpluginsdir} \
191 xptdir=%{_browserpluginsdir} \
4e6e166b 192 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
aabe26bc 193
04c8048b 194rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a}
3d67a3e8 195rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.{la,a}
933b3b4d 196rm -f $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/*.{la,a}
aabe26bc 197
3d67a3e8 198%find_lang %{name} --all-name --with-gnome
3bed0444 199
aabe26bc 200%clean
201rm -rf $RPM_BUILD_ROOT
202
203%post
5c62b10f 204%gconf_schema_install totem-handlers.schemas
205%gconf_schema_install totem-video-thumbnail.schemas
206%gconf_schema_install totem.schemas
207%scrollkeeper_update_post
208%update_desktop_database_post
563070ba 209%update_icon_cache hicolor
5c62b10f 210
211%preun
212%gconf_schema_uninstall totem-handlers.schemas
213%gconf_schema_uninstall totem-video-thumbnail.schemas
214%gconf_schema_uninstall totem.schemas
40003b25 215
ee338152 216%postun
5c62b10f 217%scrollkeeper_update_postun
218%update_desktop_database_postun
563070ba 219%update_icon_cache hicolor
aabe26bc 220
3d67a3e8
JB
221%post libs -p /sbin/ldconfig
222%postun libs -p /sbin/ldconfig
223
04c8048b 224%post -n browser-plugin-%{name}
225%update_browser_plugins
3f5a8c60 226
04c8048b 227%postun -n browser-plugin-%{name}
228if [ "$1" = 0 ]; then
229 %update_browser_plugins
230fi
3f5a8c60 231
aabe26bc 232%files -f %{name}.lang
233%defattr(644,root,root,755)
bcea38bd 234%doc AUTHORS ChangeLog NEWS README TODO
b27a9cd2 235%attr(755,root,root) %{_bindir}/totem
22ee5cea 236%attr(755,root,root) %{_bindir}/totem-video-indexer
b27a9cd2
MB
237%attr(755,root,root) %{_bindir}/totem-video-thumbnailer
238%attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/libtotem-properties-page.so
281f7528 239%{_datadir}/%{name}
b27a9cd2
MB
240%{_desktopdir}/totem.desktop
241%{_mandir}/man1/totem.1*
242%{_mandir}/man1/totem-video-thumbnailer.1*
157c68a8 243%{_omf_dest_dir}/%{name}
7fcbe220 244%{_iconsdir}/hicolor/*/*/totem.*
933b3b4d 245#%{_pixmapsdir}/vanity.png
157c68a8 246%{_sysconfdir}/gconf/schemas/totem-handlers.schemas
247%{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas
248%{_sysconfdir}/gconf/schemas/totem.schemas
933b3b4d
MB
249%dir %{_libdir}/totem
250%dir %{_libdir}/totem/plugins
251%{?with_bemused:%dir %{_libdir}/totem/plugins/bemused}
252%dir %{_libdir}/totem/plugins/galago
253%dir %{_libdir}/totem/plugins/gromit
254%dir %{_libdir}/totem/plugins/lirc
255%dir %{_libdir}/totem/plugins/media-player-keys
256%dir %{_libdir}/totem/plugins/ontop
257%dir %{_libdir}/totem/plugins/properties
258%dir %{_libdir}/totem/plugins/screensaver
259%dir %{_libdir}/totem/plugins/skipto
260%attr(755,root,root) %{_libdir}/totem/plugins/*/*.so
261%{_libdir}/totem/plugins/*/*.totem-plugin
262%{_libdir}/totem/plugins/*/*.ui
3bed0444 263
264%files libs
265%defattr(644,root,root,755)
3bed0444 266%attr(755,root,root) %{_libdir}/libtotem-plparser.so.*.*.*
267
268%files devel
269%defattr(644,root,root,755)
270%attr(755,root,root) %{_libdir}/libtotem-plparser.so
271%{_libdir}/libtotem-plparser.la
272%{_includedir}/totem
b27a9cd2 273%{_pkgconfigdir}/totem-plparser.pc
3bed0444 274
275%files static
276%defattr(644,root,root,755)
277%{_libdir}/libtotem-plparser.a
c4f293fa 278
d0cd5a91
PG
279%files -n browser-plugin-%{name}
280%defattr(644,root,root,755)
22ee5cea 281%attr(755,root,root) %{_libdir}/totem-plugin-viewer
04c8048b 282%attr(755,root,root) %{_browserpluginsdir}/*.so
283%attr(755,root,root) %{_browserpluginsdir}/*.xpt
This page took 0.174811 seconds and 4 git commands to generate.