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