/[packages]/cauldron/banshee/current/SPECS/banshee.spec
ViewVC logotype

Contents of /cauldron/banshee/current/SPECS/banshee.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 567525 - (show annotations) (download)
Thu Jan 23 05:09:16 2014 UTC (10 years, 2 months ago) by tv
File size: 10781 byte(s)
- add missing requires on mono-addins instead of 'mono(Mono.Addins)' which
  monodevelop provides too (mga#12332)
1 %define build_appledevice 1
2 %define build_njb 0
3 %define build_mtp 1
4 %define build_karma 1
5 %define build_boo 0
6 #gw does not build with clutter 1.1.12:
7 #https://bugzilla.gnome.org/show_bug.cgi?id=611153
8 %define build_clutter 0
9 %define build_webkit 1
10
11 %{?_without_njb: %{expand: %%global build_njb 0}}
12 %{?_with_njb: %{expand: %%global build_njb 1}}
13 %{?_without_mtp: %{expand: %%global build_mtp 0}}
14 %{?_with_mtp: %{expand: %%global build_mtp 1}}
15 %{?_without_karma: %{expand: %%global build_karma 0}}
16 %{?_with_karma: %{expand: %%global build_karma 1}}
17 %{?_without_boo: %{expand: %%global build_boo 0}}
18 %{?_with_boo: %{expand: %%global build_boo 1}}
19 %{?_without_clutter: %{expand: %%global build_clutter 0}}
20 %{?_with_clutter: %{expand: %%global build_clutter 1}}
21
22 %define url_ver %(echo %{version}|cut -d. -f1,2)
23
24 Summary: Music player with mobile player support
25 Name: banshee
26 Epoch: 1
27 Version: 2.6.1
28 Release: %mkrel 4
29 Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
30 #(nl) KDE Solid integration : from mdv svn soft/mandriva-kde-translation/trunk/solid/
31 Source1: banshee-play-audiocd.desktop
32 Patch0: banshee-2.6.1-mono4.patch
33 License: MIT
34 Group: Sound/Players
35 Url: http://banshee.fm
36
37 BuildRequires: intltool
38 BuildRequires: pkgconfig(dbus-sharp-glib-1.0) >= 0.5
39 BuildRequires: pkgconfig(gconf-2.0)
40 BuildRequires: pkgconfig(gconf-sharp-2.0) >= 2.8
41 BuildRequires: pkgconfig(gdata-sharp-youtube) >= 1.4
42 BuildRequires: pkgconfig(gio-sharp-2.0) >= 2.22.3
43 BuildRequires: pkgconfig(gkeyfile-sharp)
44 BuildRequires: pkgconfig(gnome-doc-utils)
45 BuildRequires: pkgconfig(gstreamer-0.10) >= 0.10.26
46 BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.26
47 BuildRequires: pkgconfig(gtk+-2.0) >= 2.8
48 BuildRequires: pkgconfig(gtk-sharp-beans-2.0)
49 BuildRequires: pkgconfig(gudev-sharp-3.0)
50 BuildRequires: pkgconfig(mono) >= 2.4.3
51 BuildRequires: pkgconfig(mono-addins) >= 0.3.1
52 BuildRequires: pkgconfig(mono-zeroconf)
53 BuildRequires: pkgconfig(notify-sharp)
54 BuildRequires: pkgconfig(sqlite3) >= 3.4
55 BuildRequires: pkgconfig(taglib-sharp) >= 2.0.3.7
56 BuildRequires: pkgconfig(xrandr)
57 BuildRequires: pkgconfig(xxf86vm)
58
59 %if %{build_mtp}
60 BuildRequires: pkgconfig(libmtp)
61 %endif
62
63 %if %{build_appledevice}
64 BuildRequires: pkgconfig(libgpod-sharp)
65 %endif
66
67 %if %{build_webkit}
68 BuildRequires: pkgconfig(webkit-1.0) >= 1.2.2
69 %endif
70
71 %if %{build_clutter}
72 BuildRequires: pkgconfig(clutter-1.0) >= 1.0.1
73 %endif
74
75 %if %{build_boo}
76 BuildRequires: pkgconfig(boo) >= 0.8.1
77 %endif
78
79 %if %{build_karma}
80 BuildRequires: pkgconfig(karma-sharp)
81 %endif
82
83 Requires: gstreamer0.10-plugins-base
84 Requires: gstreamer0.10-plugins-ugly
85 Requires: gstreamer0.10-cdparanoia
86 Requires: gstreamer0.10-gnomevfs
87 Suggests: gstreamer0.10-xing
88 Suggests: gstreamer0.10-lame
89 Suggests: gstreamer0.10-faac
90 Suggests: gstreamer0.10-faad
91 #gw for bpm detection:
92 Suggests: gstreamer0.10-soundtouch
93 Suggests: brasero
94 # (tv) not automatically found:
95 Requires: mono-addins
96
97 %description
98 With Banshee you can easily import, manage, and play selections from
99 your music collection. Banshee allows you to import CDs, sync your
100 music collection to an mobile device, play music directly from an
101 mobile player, create playlists with songs from your library, and
102 create audio and MP3 CDs from subsets of your library.
103
104 %if %{build_appledevice}
105 %package ipod
106 Group: Sound/Players
107 Summary: Ipod support for Banshee
108 Requires: %{name} = %{epoch}:%{version}-%{release}
109
110 %description ipod
111 With Banshee you can easily import, manage, and play selections from
112 your music collection. Banshee allows you to import CDs, sync your
113 music collection to an mobile device, play music directly from an
114 mobile player, create playlists with songs from your library, and
115 create audio and MP3 CDs from subsets of your library.
116
117 Install this package for iPod support in Banshee.
118 %endif
119
120 %if %{build_njb}
121 %package njb
122 Group: Sound/Players
123 Summary: Nomad jukebox support for Banshee
124 Requires: %{name} = %{epoch}:%{version}-%{release}
125 BuildRequires: njb-sharp >= 0.3.0
126
127 %description njb
128 With Banshee you can easily import, manage, and play selections from
129 your music collection. Banshee allows you to import CDs, sync your
130 music collection to an mobile device, play music directly from an
131 mobile player, create playlists with songs from your library, and
132 create audio and MP3 CDs from subsets of your library.
133
134 Install this package for Nomad jukebox support in Banshee.
135 %endif
136
137 %if %{build_mtp}
138 %package mtp
139 Group: Sound/Players
140 Summary: MTP audio player support for Banshee
141 Requires: %{name} = %{epoch}:%{version}-%{release}
142
143 %description mtp
144 With Banshee you can easily import, manage, and play selections from
145 your music collection. Banshee allows you to import CDs, sync your
146 music collection to an mobile device, play music directly from an
147 mobile player, create playlists with songs from your library, and
148 create audio and MP3 CDs from subsets of your library.
149
150 Install this package for MTP audio player support in Banshee.
151 %endif
152
153 %if %{build_karma}
154 %package karma
155 Group: Sound/Players
156 Summary: Rio Karma audio player support for Banshee
157 Requires: %{name} = %{epoch}:%{version}
158
159 %description karma
160 With Banshee you can easily import, manage, and play selections from
161 your music collection. Banshee allows you to import CDs, sync your
162 music collection to an mobile device, play music directly from an
163 mobile player, create playlists with songs from your library, and
164 create audio and MP3 CDs from subsets of your library.
165
166 Install this package for Rio Karma audio player support in Banshee.
167 %endif
168
169 %package doc
170 Summary: Development documentation for %{name}
171 Group: Development/Other
172 Requires(post): mono-tools >= 1.1.9
173 Requires(postun): mono-tools >= 1.1.9
174 BuildArch: noarch
175
176 %description doc
177 This package contains the API documentation for the %{name} in
178 Monodoc format.
179
180 %package devel
181 Group: Development/Other
182 Requires: %{name} = %{epoch}:%{version}-%{release}
183 Summary: Development parts of %{name}
184
185 %description devel
186 This package contains the pkg-config files needed for building Banshee
187 extensions.
188
189 %prep
190 %setup -q
191 %apply_patches
192
193 %build
194 %configure2_5x \
195 --with-vendor-build-id="%{_vendor} %{distro_release}" \
196 %if %{build_mtp}
197 --enable-mtp \
198 %endif
199 %if !%{build_appledevice}
200 --disable-appledevice \
201 %endif
202 %if %{build_karma}
203 --enable-karma \
204 %endif
205 %if %{build_clutter}
206 --enable-clutter \
207 %endif
208 %if %{build_boo}
209 --enable-boo \
210 %else
211 --disable-boo \
212 %endif
213 --disable-static \
214 --disable-scrollkeeper \
215 --disable-schemas-install
216 %make
217
218 %install
219 %makeinstall_std MONO=true
220
221 %find_lang %{name} --with-gnome
222
223 %if %{build_appledevice}
224 ln -sf %{_libdir}/libgpod/libgpod-sharp.dll* %{buildroot}%{_libdir}/%{name}/Extensions/
225 %endif
226
227 %if %{build_karma}
228 ln -sf %{_prefix}/lib/karma-sharp/karma-sharp.dll %{buildroot}%{_libdir}/%{name}/Extensions/
229 %endif
230
231 # we don't want these
232 find %{buildroot} -name "*.la" -delete
233
234 # gw fix paths in pkgconfig files
235 perl -pi -e "s^/lib$^/%{_lib}^" %{buildroot}%{_libdir}/pkgconfig/*.pc
236
237 #(nl) KDE Solid integration
238 mkdir -p %{buildroot}/%{_datadir}/apps/solid/actions/
239 install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/apps/solid/actions/
240
241 %post doc
242 %{_bindir}/monodoc --make-index > /dev/null
243
244 %postun doc
245 if [ "$1" = "0" -a -x %{_bindir}/monodoc ]; then %{_bindir}/monodoc --make-index > /dev/null
246 fi
247
248 %files -f %{name}.lang
249 %doc NEWS README AUTHORS
250 %{_bindir}/bamz
251 %{_bindir}/%{name}
252 %{_bindir}/muinshee
253 %dir %{_libdir}/%{name}/
254 %dir %{_libdir}/%{name}/Backends
255 %{_libdir}/%{name}/Backends/Banshee.GStreamer.*
256 %{_libdir}/%{name}/Backends/Banshee.Gio.*
257 %{_libdir}/%{name}/Backends/Banshee.Gnome.*
258 %{_libdir}/%{name}/Backends/Banshee.NowPlaying.X11.*
259 %{_libdir}/%{name}/Backends/Banshee.Unix.*
260 %{_libdir}/%{name}/Backends/gio-sharp.dll*
261 %{_libdir}/%{name}/Backends/libbnpx11.so
262 %dir %{_libdir}/%{name}/Extensions
263 %{_libdir}/%{name}/Extensions/Banshee.Audiobook.dll*
264
265 %if %build_boo
266 %{_libdir}/%{name}/Extensions/Banshee.BooScript.dll*
267 %endif
268
269 %{_libdir}/%{name}/Extensions/Banshee.AmazonMp3.exe*
270 %{_libdir}/%{name}/Extensions/Banshee.Bpm.dll*
271 %{_libdir}/%{name}/Extensions/Banshee.CoverArt.dll*
272 %{_libdir}/%{name}/Extensions/Banshee.Daap.dll*
273 %{_libdir}/%{name}/Extensions/Banshee.Dap.MassStorage.dll*
274 %{_libdir}/%{name}/Extensions/Banshee.Dap.dll*
275 %{_libdir}/%{name}/Extensions/Banshee.Emusic.dll*
276 %{_libdir}/%{name}/Extensions/Banshee.Emusic.Store*
277 %{_libdir}/%{name}/Extensions/Banshee.FileSystemQueue.dll*
278 %{_libdir}/%{name}/Extensions/Banshee.Fixup.dll*
279 %{_libdir}/%{name}/Extensions/Banshee.InternetArchive.dll*
280 %{_libdir}/%{name}/Extensions/Banshee.InternetRadio.dll*
281 %{_libdir}/%{name}/Extensions/Banshee.Lastfm.dll*
282 %{_libdir}/%{name}/Extensions/Banshee.LastfmStreaming.dll*
283 %{_libdir}/%{name}/Extensions/Banshee.LibraryWatcher.dll*
284 %{_libdir}/%{name}/Extensions/Banshee.MiniMode.dll*
285 %{_libdir}/%{name}/Extensions/Banshee.Mpris.dll*
286 %{_libdir}/%{name}/Extensions/Banshee.MultimediaKeys.dll*
287 %{_libdir}/%{name}/Extensions/Banshee.NotificationArea.dll*
288 %{_libdir}/%{name}/Extensions/Banshee.NowPlaying.dll*
289 %{_libdir}/%{name}/Extensions/Banshee.OpticalDisc.dll*
290 %{_libdir}/%{name}/Extensions/Banshee.PlayerMigration.dll*
291 %{_libdir}/%{name}/Extensions/Banshee.PlayQueue.dll*
292 %{_libdir}/%{name}/Extensions/Banshee.Podcasting.dll*
293 %{_libdir}/%{name}/Extensions/Banshee.YouTube.dll*
294
295 %if %build_webkit
296 %{_libdir}/%{name}/Extensions/Banshee.AmazonMp3.Store.dll*
297 %{_libdir}/%{name}/Extensions/Banshee.MiroGuide.dll*
298 %{_libdir}/%{name}/Extensions/Banshee.Wikipedia.dll*
299 %endif
300
301 %{_libdir}/%{name}/*.exe*
302 %{_libdir}/%{name}/Banshee*.dll*
303 %{_libdir}/%{name}/Hyena*.dll*
304 %{_libdir}/%{name}/Lastfm*.dll*
305 %{_libdir}/%{name}/Migo.dll*
306 %{_libdir}/%{name}/Mono*.dll*
307 %{_libdir}/%{name}/MusicBrainz.dll*
308 %{_libdir}/%{name}/*.so
309 %{_libdir}/%{name}/Banshee.Services.addins
310 %{_datadir}/%{name}/
311 %{_datadir}/dbus-1/services/*
312 %{_datadir}/applications/%{name}.desktop
313 %{_datadir}/applications/%{name}-audiocd.desktop
314 %{_datadir}/applications/%{name}-media-player.desktop
315 %{_datadir}/icons/hicolor/*/apps/*
316 %{_datadir}/apps/solid/actions/banshee-play-audiocd.desktop
317 %{_datadir}/mime/packages/banshee-amz.xml
318 %{_datadir}/mime/packages/banshee-emx.xml
319
320 %files devel
321 %{_libdir}/pkgconfig/%{name}*.pc
322
323 %files doc
324 %{_prefix}/lib/monodoc/sources/banshee-docs*
325 %{_prefix}/lib/monodoc/sources/hyena-docs*
326
327 %if %{build_appledevice}
328 %files ipod
329 %{_libdir}/%{name}/Extensions/Banshee.Dap.AppleDevice.dll*
330 %{_libdir}/%{name}/Extensions/libgpod-sharp.dll*
331 %endif
332
333 %if %{build_njb}
334 %files njb
335 %{_libdir}/%{name}/Extensions/Banshee.Dap/*jb*
336 %endif
337
338 %if %{build_mtp}
339 %files mtp
340 %{_libdir}/%{name}/Mtp.dll*
341 %{_libdir}/%{name}/Extensions/Banshee.Dap.Mtp.dll*
342 %endif
343
344 %if %{build_karma}
345 %files karma
346 %{_libdir}/%{name}/Extensions/Banshee.Dap.Karma.dll*
347 %{_libdir}/%{name}/Extensions/karma-sharp.dll*
348 %endif

  ViewVC Help
Powered by ViewVC 1.1.30