]>
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 |
260efe50 | 16 | Version: 2.20.1 |
555b89ca | 17 | Release: 2 |
aabe26bc | 18 | License: GPL |
19 | Group: Applications/Multimedia | |
0803bd61 | 20 | Source0: http://ftp.gnome.org/pub/GNOME/sources/totem/2.20/%{name}-%{version}.tar.bz2 |
260efe50 | 21 | # Source0-md5: 6627727e7abd7a7f95257be8df6359a6 |
0edeae30 | 22 | Patch0: %{name}-desktop.patch |
c4f293fa | 23 | Patch1: %{name}-idl.patch |
22ee5cea | 24 | Patch2: %{name}-configure.patch |
933b3b4d | 25 | Patch3: %{name}-codegen.patch |
22ee5cea | 26 | URL: http://www.gnome.org/projects/totem/ |
5adc6be8 | 27 | BuildRequires: GConf2-devel >= 2.20.0 |
40003b25 | 28 | BuildRequires: autoconf |
29 | BuildRequires: automake | |
933b3b4d | 30 | %{?with_bemused:BuildRequires: bluez-libs-devel} |
22ee5cea | 31 | BuildRequires: dbus-glib-devel >= 0.73 |
3ee49a6a | 32 | BuildRequires: gnome-control-center-devel |
5adc6be8 | 33 | BuildRequires: gnome-desktop-devel >= 2.20.0 |
933b3b4d MB |
34 | BuildRequires: gnome-vfs2-devel >= 2.20.0 |
35 | %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10.10} | |
260efe50 | 36 | BuildRequires: gtk+2-devel >= 2:2.12.1 |
933b3b4d | 37 | BuildRequires: intltool >= 0.36.2 |
157c68a8 | 38 | BuildRequires: iso-codes |
933b3b4d MB |
39 | BuildRequires: libgalago-devel >= 0.5.2 |
40 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
5adc6be8 | 41 | BuildRequires: libgnomeui-devel >= 2.20.0 |
157c68a8 | 42 | BuildRequires: libmusicbrainz-devel |
18fb4626 | 43 | %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.5} |
40003b25 | 44 | BuildRequires: libtool |
347a1442 | 45 | %{?with_lirc:BuildRequires: lirc-devel} |
5adc6be8 MB |
46 | BuildRequires: nautilus-cd-burner-devel >= 2.20.0 |
47 | BuildRequires: nautilus-devel >= 2.20.0 | |
896fc752 | 48 | BuildRequires: pkgconfig |
04c8048b | 49 | BuildRequires: rpmbuild(macros) >= 1.357 |
157c68a8 | 50 | BuildRequires: scrollkeeper |
7c690edb | 51 | BuildRequires: shared-mime-info >= 0.22 |
157c68a8 | 52 | %{!?with_gstreamer:BuildRequires: xine-lib-devel >= 2:1.0.2-1} |
b7200538 | 53 | BuildRequires: xorg-lib-libXv-devel |
22ee5cea | 54 | BuildRequires: xorg-lib-libXxf86vm-devel >= 1.0.1 |
b27a9cd2 MB |
55 | BuildRequires: xulrunner-devel |
56 | Requires(post,postun): gtk+2 | |
57 | Requires(post,postun): hicolor-icon-theme | |
ee338152 | 58 | Requires(post,postun): scrollkeeper |
22ee5cea | 59 | Requires(post,preun): GConf2 |
3d67a3e8 | 60 | Requires: %{name}-libs = %{version}-%{release} |
46bd5504 | 61 | %if %{with gstreamer} |
1df9a335 | 62 | Requires: gstreamer-GConf >= 0.10.3 |
b7200538 | 63 | Requires: gstreamer-audiosink >= 0.10 |
64 | Requires: gstreamer-videosink >= 0.10 | |
48ea9bd4 MK |
65 | %else |
66 | Requires: xine-plugin-video | |
44b879a5 JB |
67 | # unusable |
68 | Conflicts: xine-input-gnome-vfs | |
46bd5504 | 69 | %endif |
260efe50 | 70 | Requires: gtk+2 >= 2:2.12.1 |
5adc6be8 | 71 | Requires: nautilus >= 2.20.0 |
04c8048b | 72 | %requires_eq xulrunner-libs |
933b3b4d MB |
73 | Suggests: gstreamer-ffmpeg |
74 | Suggests: gstreamer-mpeg | |
75 | Suggests: gstreamer-pango | |
896fc752 | 76 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aabe26bc | 77 | |
46bd5504 | 78 | %if %{with gstreamer} |
aabe26bc | 79 | %description |
40003b25 | 80 | Totem is simple movie player for the GNOME desktop based on gstreamer. |
81 | It features a simple playlist, a full-screen mode, seek and volume | |
aabe26bc | 82 | controls, as well as a pretty complete keyboard navigation. |
83 | ||
1845cc02 JR |
84 | %description -l pl.UTF-8 |
85 | Totem to prosty odtwarzacz filmów dla środowiska GNOME oparty na | |
86 | gstreamer. Ma prostą listę odtwarzania, tryb pełnoekranowy, kontrolę | |
87 | położenia w pliku i głośności, a także w miarę kompletną obsługę z | |
40003b25 | 88 | klawiatury. |
46bd5504 | 89 | |
3d991a2d | 90 | %else |
46bd5504 | 91 | %description |
92 | Totem is simple movie player for the GNOME desktop based on xine-libs. | |
93 | It features a simple playlist, a full-screen mode, seek and volume | |
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 | xine-libs. 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 | |
46bd5504 | 100 | klawiatury. |
101 | %endif | |
896fc752 | 102 | |
3bed0444 | 103 | %package libs |
3d67a3e8 | 104 | Summary: Totem shared libraries |
f224cb4e | 105 | Summary(pl.UTF-8): Współdzielone biblioteki Totema |
3d67a3e8 | 106 | Group: Libraries |
5adc6be8 MB |
107 | Requires: gnome-desktop-libs >= 2.20.0 |
108 | Requires: nautilus-libs >= 2.20.0 | |
3bed0444 | 109 | |
110 | %description libs | |
111 | Totem shared libraries. | |
112 | ||
1845cc02 JR |
113 | %description libs -l pl.UTF-8 |
114 | Współdzielone biblioteki Totema. | |
3bed0444 | 115 | |
116 | %package devel | |
3d67a3e8 | 117 | Summary: Totem include files |
f224cb4e | 118 | Summary(pl.UTF-8): Pliki nagłówkowe Totema |
3d67a3e8 JB |
119 | Group: Development/Libraries |
120 | Requires: %{name}-libs = %{version}-%{release} | |
260efe50 | 121 | Requires: gtk+2-devel >= 2:2.12.1 |
3bed0444 | 122 | |
123 | %description devel | |
124 | Totem headers files. | |
125 | ||
1845cc02 JR |
126 | %description devel -l pl.UTF-8 |
127 | Pliki nagłówkowe Totema. | |
3bed0444 | 128 | |
129 | %package static | |
3d67a3e8 | 130 | Summary: Static Totem libraries |
f224cb4e | 131 | Summary(pl.UTF-8): Statyczne biblioteki Totema |
3d67a3e8 JB |
132 | Group: Development/Libraries |
133 | Requires: %{name}-devel = %{version}-%{release} | |
3bed0444 | 134 | |
135 | %description static | |
136 | Static Totem libraries. | |
137 | ||
1845cc02 | 138 | %description static -l pl.UTF-8 |
3bed0444 | 139 | Statyczne biblioteki Totema. |
140 | ||
3f5a8c60 PG |
141 | %package -n browser-plugin-%{name} |
142 | Summary: Totem's browser plugin | |
f224cb4e | 143 | Summary(pl.UTF-8): Wtyczka Totema do przeglądarek WWW |
3f5a8c60 | 144 | Group: X11/Libraries |
c4f293fa | 145 | Requires: %{name} = %{version}-%{release} |
04c8048b | 146 | Requires: browser-plugins >= 2.0 |
18fb4626 | 147 | Requires: browser-plugins(%{_target_base_arch}) |
3f5a8c60 | 148 | Provides: mozilla-firefox-plugin-totem |
18fb4626 | 149 | Provides: mozilla-plugin-totem |
3f5a8c60 | 150 | Obsoletes: mozilla-firefox-plugin-totem |
18fb4626 | 151 | Obsoletes: mozilla-plugin-totem |
c4f293fa | 152 | |
3f5a8c60 PG |
153 | %description -n browser-plugin-%{name} |
154 | Totem's plugin for browsers. | |
81f5aff6 | 155 | |
1845cc02 JR |
156 | %description -n browser-plugin-%{name} -l pl.UTF-8 |
157 | Wtyczka 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 | |
185 | rm -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 | 194 | rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a} |
3d67a3e8 | 195 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.{la,a} |
933b3b4d | 196 | rm -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 |
201 | rm -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} |
228 | if [ "$1" = 0 ]; then | |
229 | %update_browser_plugins | |
230 | fi | |
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 |