1 |
%define major 6 |
2 |
%define gir_major 3.0 |
3 |
%define libname %mklibname %{name} %{major} |
4 |
%define girname %mklibname %{name}-gir %{gir_major} |
5 |
|
6 |
Name: rhythmbox |
7 |
Summary: Music Management Application |
8 |
Version: 2.97 |
9 |
Release: %mkrel 5 |
10 |
License: GPLv2+ with exception |
11 |
Group: Sound |
12 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/rhythmbox/%{version}/%{name}-%{version}.tar.xz |
13 |
URL: http://www.gnome.org/projects/rhythmbox/ |
14 |
BuildRequires: pkgconfig(avahi-client) >= 0.6 |
15 |
BuildRequires: pkgconfig(avahi-glib) >= 0.6 |
16 |
BuildRequires: pkgconfig(clutter-1.0) >= 1.8 |
17 |
BuildRequires: pkgconfig(clutter-gst-1.0) >= 1.4 |
18 |
BuildRequires: pkgconfig(clutter-gtk-1.0) >= 1.0 |
19 |
BuildRequires: pkgconfig(clutter-x11-1.0) >= 1.8 |
20 |
BuildRequires: pkgconfig(gconf-2.0) |
21 |
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.18.0 |
22 |
BuildRequires: pkgconfig(gio-2.0) >= 2.26.0 |
23 |
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.26.0 |
24 |
BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 |
25 |
BuildRequires: pkgconfig(gnome-keyring-1) |
26 |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.0 |
27 |
BuildRequires: pkgconfig(grilo-0.2) >= 0.2.0 |
28 |
BuildRequires: pkgconfig(gstreamer-0.10) >= 0.10.32 |
29 |
BuildRequires: pkgconfig(gstreamer-base-0.10) >= 0.10.32 |
30 |
BuildRequires: pkgconfig(gstreamer-cdda-0.10) |
31 |
BuildRequires: pkgconfig(gstreamer-interfaces-0.10) >= 0.10.32 |
32 |
BuildRequires: pkgconfig(gstreamer-pbutils-0.10) >= 0.10.32 |
33 |
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.32 |
34 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.4.0 |
35 |
BuildRequires: pkgconfig(gudev-1.0) >= 143 |
36 |
BuildRequires: pkgconfig(json-glib-1.0) |
37 |
BuildRequires: pkgconfig(libbrasero-media3) >= 2.31.5 |
38 |
BuildRequires: pkgconfig(libdiscid) |
39 |
BuildRequires: pkgconfig(libdmapsharing-3.0) >= 2.9.11 |
40 |
BuildRequires: pkgconfig(libgnome-media-profiles-3.0) |
41 |
BuildRequires: pkgconfig(libgpod-1.0) >= 0.6 |
42 |
BuildRequires: pkgconfig(libmtp) >= 0.3.0 |
43 |
BuildRequires: pkgconfig(libnotify) >= 0.7.0 |
44 |
BuildRequires: pkgconfig(libpeas-1.0) >= 0.7.3 |
45 |
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 0.7.3 |
46 |
BuildRequires: pkgconfig(libsoup-2.4) >= 2.26.0 |
47 |
BuildRequires: pkgconfig(libsoup-gnome-2.4) >= 2.26.0 |
48 |
BuildRequires: pkgconfig(mx-1.0) >= 1.0.1 |
49 |
BuildRequires: pkgconfig(pygobject-3.0) >= 3.0.0 |
50 |
BuildRequires: pkgconfig(tdb) >= 1.2.6 |
51 |
BuildRequires: pkgconfig(totem-plparser) >= 3.2.0 |
52 |
BuildRequires: pkgconfig(webkitgtk-3.0) >= 1.3.9 |
53 |
BuildRequires: vala >= 0.9.4 |
54 |
BuildRequires: gtk-doc |
55 |
BuildRequires: gnome-common |
56 |
BuildRequires: intltool |
57 |
BuildRequires: gettext-devel |
58 |
BuildRequires: gnome-doc-utils |
59 |
BuildRequires: desktop-file-utils |
60 |
|
61 |
Requires: gstreamer0.10-plugins-base |
62 |
Requires: gstreamer0.10-plugins-good |
63 |
RequireS: gstreamer0.10-plugins-ugly |
64 |
Requires: gstreamer0.10-soup |
65 |
Requires: gstreamer0.10-flac >= 0.10.0 |
66 |
Requires: dbus-x11 |
67 |
Suggests: media-player-info |
68 |
Suggests: grilo-plugins |
69 |
Requires(post): scrollkeeper |
70 |
Requires(postun): scrollkeeper |
71 |
|
72 |
%description |
73 |
Music Management application with support for ripping audio-cd's, |
74 |
playback of Ogg Vorbis and Mp3 and burning of CD-Rs. |
75 |
|
76 |
%package -n %{libname} |
77 |
Group: System/Libraries |
78 |
Summary: Shared library part of %{name} |
79 |
|
80 |
%description -n %{libname} |
81 |
Music Management application with support for ripping audio-cd's, |
82 |
playback of Ogg Vorbis and Mp3 and burning of CD-Rs. |
83 |
|
84 |
This is the shared library part of %{name}. |
85 |
|
86 |
%package mozilla |
87 |
Group: Sound |
88 |
Summary: Rhythmbox integration for Mozilla Firefox |
89 |
Requires: %{name} = %{version}-%{release} |
90 |
|
91 |
%description mozilla |
92 |
This plugin integates Rhythmbox with Mozilla and compatible |
93 |
browsers. It provides a handler for itms:// Links to Apples iTunes |
94 |
Music Store. |
95 |
|
96 |
%package devel |
97 |
Group: Development/C |
98 |
Summary: Rhythmbox plugin development files |
99 |
Requires: %{libname} = %{version}-%{release} |
100 |
|
101 |
%description devel |
102 |
Install this if you want to build Rhythmbox plugins. |
103 |
|
104 |
%package -n %{girname} |
105 |
Summary: GObject Introspection interface description for %{name} |
106 |
Group: System/Libraries |
107 |
Requires: %{libname} = %{version}-%{release} |
108 |
|
109 |
%description -n %{girname} |
110 |
GObject Introspection interface description for %{name}. |
111 |
|
112 |
%prep |
113 |
%setup -q |
114 |
|
115 |
%build |
116 |
NOCONFIGURE=yes gnome-autogen.sh |
117 |
%configure2_5x \ |
118 |
--with-mdns=avahi \ |
119 |
--with-gnome-keyring \ |
120 |
--enable-daap \ |
121 |
--enable-gtk-doc \ |
122 |
--disable-vala \ |
123 |
--disable-static |
124 |
|
125 |
%make |
126 |
|
127 |
%install |
128 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=false |
129 |
|
130 |
%find_lang %{name} --with-gnome |
131 |
for omf in %{buildroot}%{_datadir}/omf/*/*{-??.omf,-??_??.omf};do |
132 |
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed s!%{buildroot}!!)" >> %{name}.lang |
133 |
done |
134 |
|
135 |
desktop-file-install --vendor="" \ |
136 |
--remove-category="Application" \ |
137 |
--add-category="Audio;Player" \ |
138 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* |
139 |
|
140 |
find %{buildroot} -name "*.la" -exec rm -rf {} \; |
141 |
|
142 |
# save space by linking identical images in translated docs |
143 |
helpdir=%{buildroot}%{_datadir}/gnome/help/%{name} |
144 |
for f in $helpdir/C/figures/*.png; do |
145 |
b="$(basename $f)" |
146 |
for d in $helpdir/*; do |
147 |
if [ -d "$d" -a "$d" != "$helpdir/C" ]; then |
148 |
g="$d/figures/$b" |
149 |
if [ -f "$g" ]; then |
150 |
if cmp -s $f $g; then |
151 |
rm "$g"; ln -s "../../C/figures/$b" "$g" |
152 |
fi |
153 |
fi |
154 |
fi |
155 |
done |
156 |
done |
157 |
|
158 |
%files -f %{name}.lang |
159 |
%doc AUTHORS COPYING README NEWS |
160 |
%doc %{_datadir}/gtk-doc/html/%{name} |
161 |
%{_bindir}/rhythmbox |
162 |
%{_bindir}/rhythmbox-client |
163 |
%{_mandir}/man1/*.1* |
164 |
%{_datadir}/applications/*.desktop |
165 |
%{_datadir}/icons/hicolor/*/*/* |
166 |
%{_datadir}/rhythmbox |
167 |
%{_datadir}/dbus-1/services/org.gnome.Rhythmbox3.service |
168 |
%{_datadir}/glib-2.0/schemas/*.xml |
169 |
%dir %_datadir/omf/rhythmbox/ |
170 |
%{_datadir}/omf/rhythmbox/rhythmbox-C.omf |
171 |
%{_libexecdir}/rhythmbox-metadata |
172 |
%dir %{_libdir}/%{name}/ |
173 |
%dir %{_libdir}/%{name}/plugins |
174 |
%{_libdir}/%{name}/plugins/artsearch |
175 |
%{_libdir}/%{name}/plugins/audiocd |
176 |
%{_libdir}/%{name}/plugins/audioscrobbler |
177 |
%{_libdir}/%{name}/plugins/cd-recorder |
178 |
%{_libdir}/%{name}/plugins/context |
179 |
%{_libdir}/%{name}/plugins/daap |
180 |
%{_libdir}/%{name}/plugins/dbus-media-server |
181 |
%{_libdir}/%{name}/plugins/fmradio |
182 |
%{_libdir}/%{name}/plugins/generic-player |
183 |
%{_libdir}/%{name}/plugins/grilo |
184 |
%{_libdir}/%{name}/plugins/im-status |
185 |
%{_libdir}/%{name}/plugins/ipod |
186 |
%{_libdir}/%{name}/plugins/iradio |
187 |
%{_libdir}/%{name}/plugins/lyrics |
188 |
%{_libdir}/%{name}/plugins/magnatune |
189 |
%{_libdir}/%{name}/plugins/mmkeys |
190 |
%{_libdir}/%{name}/plugins/mpris |
191 |
%{_libdir}/%{name}/plugins/mtpdevice |
192 |
%{_libdir}/%{name}/plugins/notification |
193 |
%{_libdir}/%{name}/plugins/power-manager |
194 |
%{_libdir}/%{name}/plugins/python-console |
195 |
%{_libdir}/%{name}/plugins/rb |
196 |
%{_libdir}/%{name}/plugins/rbzeitgeist |
197 |
%{_libdir}/%{name}/plugins/replaygain |
198 |
%{_libdir}/%{name}/plugins/sendto |
199 |
%{_libdir}/%{name}/plugins/visualizer |
200 |
%{_libdir}/%{name}/sample-plugins |
201 |
|
202 |
%files -n %{libname} |
203 |
%{_libdir}/librhythmbox-core.so.%{major}* |
204 |
|
205 |
%files -n %{girname} |
206 |
%{_libdir}/girepository-1.0/MPID-%{gir_major}.typelib |
207 |
%{_libdir}/girepository-1.0/RB-%{gir_major}.typelib |
208 |
|
209 |
%files mozilla |
210 |
%{_libdir}/mozilla/plugins/librhythmbox-itms-detection-plugin.so |
211 |
|
212 |
%files devel |
213 |
%{_includedir}/%{name} |
214 |
%{_libdir}/*.so |
215 |
%{_libdir}/pkgconfig/%{name}.pc |
216 |
%{_datadir}/gir-1.0/MPID-%{gir_major}.gir |
217 |
%{_datadir}/gir-1.0/RB-%{gir_major}.gir |