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