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