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