]>
Commit | Line | Data |
---|---|---|
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 | 13 | Summary: Movie player for GNOME 2 based on the gstreamer engine |
f224cb4e | 14 | Summary(pl.UTF-8): Odtwarzacz filmów dla GNOME 2 oparty na silniku gstreamer |
aabe26bc | 15 | Name: totem |
302f6377 | 16 | Version: 2.22.2 |
08a4181a | 17 | Release: 3.1 |
a14505d8 MB |
18 | License: GPL v2 |
19 | Group: X11/Applications/Multimedia | |
20 | Source0: http://ftp.gnome.org/pub/GNOME/sources/totem/2.22/%{name}-%{version}.tar.bz2 | |
302f6377 | 21 | # Source0-md5: 6062080e81b4859f87fee8a592b92489 |
0edeae30 | 22 | Patch0: %{name}-desktop.patch |
d1100939 MB |
23 | Patch1: %{name}-configure.patch |
24 | Patch2: %{name}-codegen.patch | |
08a4181a | 25 | Patch3: %{name}-libxul.patch |
22ee5cea | 26 | URL: http://www.gnome.org/projects/totem/ |
a14505d8 MB |
27 | BuildRequires: GConf2-devel >= 2.22.0 |
28 | BuildRequires: autoconf >= 2.52 | |
29 | BuildRequires: automake >= 1:1.9 | |
933b3b4d | 30 | %{?with_bemused:BuildRequires: bluez-libs-devel} |
a14505d8 MB |
31 | BuildRequires: dbus-glib-devel >= 0.74 |
32 | BuildRequires: gettext-devel | |
33 | BuildRequires: glib2-devel >= 1:2.16.1 | |
34 | BuildRequires: gmyth-devel | |
35 | BuildRequires: gnome-common >= 2.20.0 | |
36 | BuildRequires: gnome-doc-utils >= 0.12.0 | |
37 | BuildRequires: gnome-vfs2-devel >= 2.22.0 | |
38 | %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10.12} | |
39 | BuildRequires: gtk+2-devel >= 2:2.12.8 | |
933b3b4d | 40 | BuildRequires: intltool >= 0.36.2 |
157c68a8 | 41 | BuildRequires: iso-codes |
a14505d8 | 42 | BuildRequires: libepc-ui-devel |
933b3b4d | 43 | BuildRequires: libgalago-devel >= 0.5.2 |
a14505d8 | 44 | BuildRequires: libgnomeui-devel >= 2.22.01 |
18fb4626 | 45 | %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.5} |
40003b25 | 46 | BuildRequires: libtool |
a14505d8 | 47 | BuildRequires: libtracker-devel |
347a1442 | 48 | %{?with_lirc:BuildRequires: lirc-devel} |
a14505d8 | 49 | BuildRequires: nautilus-devel >= 2.22.0 |
896fc752 | 50 | BuildRequires: pkgconfig |
a14505d8 | 51 | BuildRequires: python-pygtk-devel >= 2:2.12.0 |
8f8f42c8 | 52 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
04c8048b | 53 | BuildRequires: rpmbuild(macros) >= 1.357 |
157c68a8 | 54 | BuildRequires: scrollkeeper |
8f8f42c8 | 55 | BuildRequires: sed >= 4.0 |
7c690edb | 56 | BuildRequires: shared-mime-info >= 0.22 |
a14505d8 MB |
57 | BuildRequires: startup-notification-devel >= 0.8 |
58 | BuildRequires: totem-pl-parser-devel >= 2.22.1 | |
157c68a8 | 59 | %{!?with_gstreamer:BuildRequires: xine-lib-devel >= 2:1.0.2-1} |
b7200538 | 60 | BuildRequires: xorg-lib-libXv-devel |
22ee5cea | 61 | BuildRequires: xorg-lib-libXxf86vm-devel >= 1.0.1 |
01440da2 | 62 | BuildRequires: xulrunner-devel >= 1.8.1.12-1.20080208.3 |
b27a9cd2 MB |
63 | Requires(post,postun): gtk+2 |
64 | Requires(post,postun): hicolor-icon-theme | |
ee338152 | 65 | Requires(post,postun): scrollkeeper |
22ee5cea | 66 | Requires(post,preun): GConf2 |
46bd5504 | 67 | %if %{with gstreamer} |
1df9a335 | 68 | Requires: gstreamer-GConf >= 0.10.3 |
b7200538 | 69 | Requires: gstreamer-audiosink >= 0.10 |
70 | Requires: gstreamer-videosink >= 0.10 | |
48ea9bd4 MK |
71 | %else |
72 | Requires: xine-plugin-video | |
44b879a5 JB |
73 | # unusable |
74 | Conflicts: xine-input-gnome-vfs | |
46bd5504 | 75 | %endif |
a14505d8 MB |
76 | Requires: gtk+2 >= 2:2.12.8 |
77 | Requires: nautilus >= 2.22.0 | |
16bc9448 | 78 | Suggests: galago-daemon |
933b3b4d MB |
79 | Suggests: gstreamer-ffmpeg |
80 | Suggests: gstreamer-mpeg | |
81 | Suggests: gstreamer-pango | |
e33bc84e | 82 | # youtube plugin |
e4f72f95 | 83 | Suggests: gstreamer-plugins-bad |
e33bc84e | 84 | Suggests: gstreamer-soup |
a14505d8 | 85 | Suggests: python-gdata |
73764677 MB |
86 | # sr@Latn vs. sr@latin |
87 | Conflicts: glibc-misc < 6:2.7 | |
896fc752 | 88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aabe26bc | 89 | |
46bd5504 | 90 | %if %{with gstreamer} |
aabe26bc | 91 | %description |
40003b25 | 92 | Totem is simple movie player for the GNOME desktop based on gstreamer. |
93 | It features a simple playlist, a full-screen mode, seek and volume | |
aabe26bc | 94 | controls, as well as a pretty complete keyboard navigation. |
95 | ||
1845cc02 JR |
96 | %description -l pl.UTF-8 |
97 | Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na | |
98 | gstreamer. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę | |
99 | położenia w pliku i głośności, a także w miarę kompletną obsługę z | |
40003b25 | 100 | klawiatury. |
46bd5504 | 101 | |
3d991a2d | 102 | %else |
46bd5504 | 103 | %description |
104 | Totem is simple movie player for the GNOME desktop based on xine-libs. | |
105 | It features a simple playlist, a full-screen mode, seek and volume | |
106 | controls, as well as a pretty complete keyboard navigation. | |
107 | ||
1845cc02 JR |
108 | %description -l pl.UTF-8 |
109 | Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na | |
110 | xine-libs. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę | |
111 | położenia w pliku i głośności, a także w miarę kompletną obsługę z | |
46bd5504 | 112 | klawiatury. |
113 | %endif | |
896fc752 | 114 | |
3f5a8c60 PG |
115 | %package -n browser-plugin-%{name} |
116 | Summary: Totem's browser plugin | |
f224cb4e | 117 | Summary(pl.UTF-8): Wtyczka Totema do przeglądarek WWW |
3f5a8c60 | 118 | Group: X11/Libraries |
c4f293fa | 119 | Requires: %{name} = %{version}-%{release} |
04c8048b | 120 | Requires: browser-plugins >= 2.0 |
18fb4626 | 121 | Requires: browser-plugins(%{_target_base_arch}) |
3f5a8c60 | 122 | Provides: mozilla-firefox-plugin-totem |
18fb4626 | 123 | Provides: mozilla-plugin-totem |
3f5a8c60 | 124 | Obsoletes: mozilla-firefox-plugin-totem |
18fb4626 | 125 | Obsoletes: mozilla-plugin-totem |
c4f293fa | 126 | |
3f5a8c60 PG |
127 | %description -n browser-plugin-%{name} |
128 | Totem's plugin for browsers. | |
81f5aff6 | 129 | |
1845cc02 JR |
130 | %description -n browser-plugin-%{name} -l pl.UTF-8 |
131 | Wtyczka Totem do przeglądarek WWW. | |
81f5aff6 | 132 | |
aabe26bc | 133 | %prep |
134 | %setup -q | |
40003b25 | 135 | %patch0 -p1 |
c4f293fa | 136 | %patch1 -p1 |
81f5aff6 | 137 | %patch2 -p1 |
08a4181a | 138 | %patch3 -p0 |
aabe26bc | 139 | |
a14505d8 MB |
140 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
141 | mv po/sr@{Latn,latin}.po | |
73764677 | 142 | |
aabe26bc | 143 | %build |
9e936464 | 144 | %{__intltoolize} |
40003b25 | 145 | %{__libtoolize} |
146 | %{__aclocal} | |
147 | %{__autoconf} | |
a14505d8 | 148 | %{__autoheader} |
40003b25 | 149 | %{__automake} |
f11c0f42 | 150 | %configure \ |
22ee5cea | 151 | --disable-scrollkeeper \ |
347a1442 | 152 | %{?with_lirc:--enable-lirc} \ |
c4f293fa | 153 | --enable-mozilla \ |
81f5aff6 | 154 | --enable-nautilus \ |
b27a9cd2 | 155 | --%{?with_nvtv:enable}%{!?with_nvtv:disable}-nvtv \ |
d1100939 MB |
156 | %{?with_gstreamer:--enable-gstreamer} \ |
157 | --with-gecko=xulrunner | |
04c8048b | 158 | |
d1100939 | 159 | %{__make} |
aabe26bc | 160 | |
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %{__make} install \ | |
4e6e166b | 165 | DESTDIR=$RPM_BUILD_ROOT \ |
933b3b4d | 166 | MOZILLA_PLUGINDIR=%{_browserpluginsdir} \ |
04c8048b | 167 | typelibdir=%{_browserpluginsdir} \ |
168 | xptdir=%{_browserpluginsdir} \ | |
4e6e166b | 169 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
aabe26bc | 170 | |
04c8048b | 171 | rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a} |
a14505d8 | 172 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.{la,a} |
933b3b4d | 173 | rm -f $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/*.{la,a} |
aabe26bc | 174 | |
73764677 | 175 | %find_lang %{name} --with-gnome --with-omf --all-name |
3bed0444 | 176 | |
aabe26bc | 177 | %clean |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %post | |
5c62b10f | 181 | %gconf_schema_install totem-handlers.schemas |
a14505d8 | 182 | %gconf_schema_install totem-mythtv.schemas |
5c62b10f | 183 | %gconf_schema_install totem-video-thumbnail.schemas |
184 | %gconf_schema_install totem.schemas | |
185 | %scrollkeeper_update_post | |
186 | %update_desktop_database_post | |
563070ba | 187 | %update_icon_cache hicolor |
5c62b10f | 188 | |
189 | %preun | |
190 | %gconf_schema_uninstall totem-handlers.schemas | |
a14505d8 | 191 | %gconf_schema_uninstall totem-mythtv.schemas |
5c62b10f | 192 | %gconf_schema_uninstall totem-video-thumbnail.schemas |
193 | %gconf_schema_uninstall totem.schemas | |
40003b25 | 194 | |
ee338152 | 195 | %postun |
5c62b10f | 196 | %scrollkeeper_update_postun |
197 | %update_desktop_database_postun | |
563070ba | 198 | %update_icon_cache hicolor |
aabe26bc | 199 | |
04c8048b | 200 | %post -n browser-plugin-%{name} |
201 | %update_browser_plugins | |
3f5a8c60 | 202 | |
04c8048b | 203 | %postun -n browser-plugin-%{name} |
204 | if [ "$1" = 0 ]; then | |
205 | %update_browser_plugins | |
206 | fi | |
3f5a8c60 | 207 | |
aabe26bc | 208 | %files -f %{name}.lang |
209 | %defattr(644,root,root,755) | |
bcea38bd | 210 | %doc AUTHORS ChangeLog NEWS README TODO |
b27a9cd2 | 211 | %attr(755,root,root) %{_bindir}/totem |
a14505d8 | 212 | %attr(755,root,root) %{_bindir}/totem-audio-preview |
22ee5cea | 213 | %attr(755,root,root) %{_bindir}/totem-video-indexer |
b27a9cd2 | 214 | %attr(755,root,root) %{_bindir}/totem-video-thumbnailer |
a14505d8 MB |
215 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libtotem-properties-page.so |
216 | %attr(755,root,root) %{_libdir}/totem/totem-bugreport.py | |
281f7528 | 217 | %{_datadir}/%{name} |
b27a9cd2 MB |
218 | %{_desktopdir}/totem.desktop |
219 | %{_mandir}/man1/totem.1* | |
220 | %{_mandir}/man1/totem-video-thumbnailer.1* | |
7fcbe220 | 221 | %{_iconsdir}/hicolor/*/*/totem.* |
157c68a8 | 222 | %{_sysconfdir}/gconf/schemas/totem-handlers.schemas |
a14505d8 | 223 | %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas |
157c68a8 | 224 | %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas |
225 | %{_sysconfdir}/gconf/schemas/totem.schemas | |
933b3b4d MB |
226 | %dir %{_libdir}/totem |
227 | %dir %{_libdir}/totem/plugins | |
a14505d8 MB |
228 | %if %{with bemused} |
229 | %dir %{_libdir}/totem/plugins/bemused | |
230 | %attr(755,root,root) %{_libdir}/totem/plugins/bemused/libbemused.so | |
231 | %endif | |
933b3b4d | 232 | %dir %{_libdir}/totem/plugins/galago |
a14505d8 MB |
233 | %attr(755,root,root) %{_libdir}/totem/plugins/galago/libtgp.so |
234 | %{_libdir}/totem/plugins/galago/galago.totem-plugin | |
933b3b4d | 235 | %dir %{_libdir}/totem/plugins/gromit |
a14505d8 MB |
236 | %attr(755,root,root) %{_libdir}/totem/plugins/gromit/libgromit.so |
237 | %{_libdir}/totem/plugins/gromit/gromit.totem-plugin | |
933b3b4d | 238 | %dir %{_libdir}/totem/plugins/lirc |
a14505d8 MB |
239 | %attr(755,root,root) %{_libdir}/totem/plugins/lirc/liblirc.so |
240 | %{_libdir}/totem/plugins/lirc/lirc.totem-plugin | |
933b3b4d | 241 | %dir %{_libdir}/totem/plugins/media-player-keys |
a14505d8 MB |
242 | %attr(755,root,root) %{_libdir}/totem/plugins/media-player-keys/libmedia_player_keys.so |
243 | %{_libdir}/totem/plugins/media-player-keys/media-player-keys.totem-plugin | |
244 | %dir %{_libdir}/totem/plugins/mythtv | |
245 | %attr(755,root,root) %{_libdir}/totem/plugins/mythtv/libtotem_mythtv.so | |
246 | %{_libdir}/totem/plugins/mythtv/mythtv.totem-plugin | |
933b3b4d | 247 | %dir %{_libdir}/totem/plugins/ontop |
a14505d8 MB |
248 | %attr(755,root,root) %{_libdir}/totem/plugins/ontop/libontop.so |
249 | %{_libdir}/totem/plugins/ontop/ontop.totem-plugin | |
933b3b4d | 250 | %dir %{_libdir}/totem/plugins/properties |
a14505d8 MB |
251 | %attr(755,root,root) %{_libdir}/totem/plugins/properties/libmovie-properties.so |
252 | %{_libdir}/totem/plugins/properties/movie-properties.totem-plugin | |
253 | %dir %{_libdir}/totem/plugins/publish | |
254 | %attr(755,root,root) %{_libdir}/totem/plugins/publish/libpublish.so | |
255 | %{_libdir}/totem/plugins/publish/publish-plugin.ui | |
256 | %{_libdir}/totem/plugins/publish/publish.totem-plugin | |
933b3b4d | 257 | %dir %{_libdir}/totem/plugins/screensaver |
a14505d8 MB |
258 | %attr(755,root,root) %{_libdir}/totem/plugins/screensaver/libscreensaver.so |
259 | %{_libdir}/totem/plugins/screensaver/screensaver.totem-plugin | |
933b3b4d | 260 | %dir %{_libdir}/totem/plugins/skipto |
a14505d8 MB |
261 | %attr(755,root,root) %{_libdir}/totem/plugins/skipto/libskipto.so |
262 | %{_libdir}/totem/plugins/skipto/skipto.totem-plugin | |
263 | %{_libdir}/totem/plugins/skipto/skipto.ui | |
264 | %dir %{_libdir}/totem/plugins/thumbnail | |
265 | %attr(755,root,root) %{_libdir}/totem/plugins/thumbnail/libthumbnail.so | |
266 | %{_libdir}/totem/plugins/thumbnail/thumbnail.totem-plugin | |
267 | %dir %{_libdir}/totem/plugins/totem | |
268 | %{_libdir}/totem/plugins/totem/*.py[co] | |
269 | %dir %{_libdir}/totem/plugins/tracker | |
270 | %attr(755,root,root) %{_libdir}/totem/plugins/tracker/libtracker.so | |
271 | %{_libdir}/totem/plugins/tracker/tracker.totem-plugin | |
272 | %dir %{_libdir}/totem/plugins/youtube | |
273 | %{_libdir}/totem/plugins/youtube/youtube.py[co] | |
274 | %{_libdir}/totem/plugins/youtube/youtube.totem-plugin | |
275 | %{_libdir}/totem/plugins/youtube/youtube.ui | |
c4f293fa | 276 | |
d0cd5a91 PG |
277 | %files -n browser-plugin-%{name} |
278 | %defattr(644,root,root,755) | |
22ee5cea | 279 | %attr(755,root,root) %{_libdir}/totem-plugin-viewer |
04c8048b | 280 | %attr(755,root,root) %{_browserpluginsdir}/*.so |
281 | %attr(755,root,root) %{_browserpluginsdir}/*.xpt |