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