]> git.pld-linux.org Git - packages/rhythmbox.git/blob - rhythmbox.spec
4076c60caa9140cd568b7d0c4933a33bbdc01f2e
[packages/rhythmbox.git] / rhythmbox.spec
1 #
2 # Conditional build:
3 %bcond_with     xine    # build with xine-lib instead of gstreamer
4 #
5 Summary:        Music Management Application
6 Summary(pl):    Aplikacja do zarz±dzania muzyk±
7 Name:           rhythmbox
8 Version:        0.8.8
9 Release:        4
10 License:        GPL v2+
11 Group:          Applications
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/rhythmbox/0.8/%{name}-%{version}.tar.bz2
13 # Source0-md5:  46cd84b3b67f85009aa48e0e301124fe
14 Patch0:         %{name}-vorbis.patch
15 Patch1:         %{name}-desktop.patch
16 URL:            http://www.rhythmbox.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 %if %{without xine}
20 BuildRequires:  gstreamer-GConf-devel >= 0.8.8
21 BuildRequires:  gstreamer-devel >= 0.8.9
22 BuildRequires:  gstreamer-plugins-devel >= 0.8.8
23 %else
24 BuildRequires:  flac-devel
25 BuildRequires:  libid3tag-devel >= 0.15.0b
26 BuildRequires:  libmad-devel
27 BuildRequires:  libogg-devel
28 BuildRequires:  libvorbis-devel
29 BuildRequires:  xine-lib-devel >= 1.0.0
30 %endif
31 BuildRequires:  gnome-vfs2-devel >= 2.10.0-2
32 BuildRequires:  gtk+2-devel >= 2:2.6.4
33 BuildRequires:  libbonobo-devel >= 2.8.0
34 BuildRequires:  libglade2-devel >= 1:2.5.1
35 BuildRequires:  libgnomeui-devel >= 2.10.0-2
36 BuildRequires:  libmusicbrainz-devel >= 2.0.1
37 BuildRequires:  libtool
38 BuildRequires:  pkgconfig
39 BuildRequires:  rpmbuild(macros) >= 1.197
40 BuildRequires:  zlib-devel
41 Requires(post,postun):  /sbin/ldconfig
42 Requires(post,preun):   GConf2
43 Requires(post,postun):  desktop-file-utils
44 Requires(post,postun):  scrollkeeper
45 %if %{without xine}
46 Requires:       gstreamer-audio-effects >= 0.8.8
47 Requires:       gstreamer-audio-formats >= 0.8.8
48 Requires:       gstreamer-audiosink
49 Requires:       gstreamer-gnomevfs >= 0.8.8
50 %else
51 Requires:       xine-plugin-audio
52 %endif
53 Requires:       gtk+2 >= 2:2.6.4
54 Obsoletes:      net-rhythmbox
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 Rhythmbox is your one-stop multimedia application, supporting a music
59 library, multiple "music groups", internet radio, and more.
60
61 %description -l pl
62 Rhythmbox to kompletna aplikacja multimedialna, obs³uguj±ca bibliotekê
63 muzyczn±, wiele "grup muzyki", radio internetowe itp.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68 %patch1 -p1
69
70 %build
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %{__automake}
75 %configure \
76         --disable-schemas-install \
77         --enable-ipod \
78         --enable-nautilus-menu \
79         %{?_with_xine:--with-player=xine}
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT \
87         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
88
89 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
90 rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
91
92 %find_lang %{name} --with-gnome --all-name
93
94 rm -f $RPM_BUILD_ROOT%{_libdir}/bonobo/lib*.{la,a}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post
100 %gconf_schema_install rhythmbox.schemas
101 %ldconfig_post
102 %scrollkeeper_update_post
103 %update_desktop_database_post
104 %if %{without xine}
105 %banner %{name} -e << EOF
106 Remember to install appropriate GStreamer plugins for files
107 you want to play:
108 - gstreamer-flac (for FLAC)
109 - gstreamer-mad (for MP3s)
110 - gstreamer-vorbis (for Ogg Vorbis)
111 EOF
112 %else
113 %banner %{name} -e << EOF
114 Remember to install appropriate xine-decode plugins for files
115 you want to play:
116 - xine-decode-flac (for FLAC)
117 - xine-decode-ogg (for Ogg Vorbis)
118 EOF
119 %endif
120
121 %preun
122 %gconf_schema_uninstall rhythmbox.schemas
123
124 %postun 
125 %ldconfig_postun
126 %scrollkeeper_update_postun
127 %update_desktop_database_postun
128
129 %files -f rhythmbox.lang
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog README NEWS
132 %attr(755,root,root) %{_bindir}/*
133 %{_datadir}/gnome-2.0/ui/*.xml
134 %{_datadir}/idl/*
135 %{_datadir}/%{name}
136 %{_desktopdir}/*
137 %{_libdir}/bonobo/servers/*
138 %attr(755,root,root) %{_libdir}/bonobo/*.so
139 %{_omf_dest_dir}/%{name}
140 %{_pixmapsdir}/*
141 %{_pkgconfigdir}/*
142 %{_sysconfdir}/gconf/schemas/*
This page took 0.024927 seconds and 2 git commands to generate.