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