1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: Portable Sound Event Library |
---|
4 | Summary(ja): ポータブルサウンドイベントライブラリ |
---|
5 | Name: libcanberra |
---|
6 | Version: 0.22 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: System Environment/Libraries |
---|
9 | Source0: http://0pointer.de/lennart/projects/libcanberra/libcanberra-%{version}.tar.gz |
---|
10 | Source1: libcanberra-gtk-module.sh |
---|
11 | License: LGPLv2+ |
---|
12 | Url: http://git.0pointer.de/?p=libcanberra.git;a=summary |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: gtk2-devel |
---|
16 | BuildRequires: alsa-lib-devel |
---|
17 | BuildRequires: libvorbis-devel |
---|
18 | BuildRequires: libtool-ltdl-devel |
---|
19 | BuildRequires: gtk-doc |
---|
20 | BuildRequires: pulseaudio-libs-devel >= 0.9.12 |
---|
21 | BuildRequires: gstreamer-devel |
---|
22 | Requires: sound-theme-freedesktop |
---|
23 | Requires: pulseaudio-libs |
---|
24 | |
---|
25 | %description |
---|
26 | A small and lightweight implementation of the XDG Sound Theme Specification |
---|
27 | (http://0pointer.de/public/sound-theme-spec.html). |
---|
28 | |
---|
29 | %description -l ja |
---|
30 | libcanberra は XDG サウンドテーマ仕様にしたがった小型かつ軽量な実装です。 |
---|
31 | |
---|
32 | %package gtk2 |
---|
33 | Summary: Gtk+ Bindings for libcanberra |
---|
34 | Summary(ja): libcanberra の gtk+ バインディング |
---|
35 | Group: System Environment/Libraries |
---|
36 | Requires: %{name} = %{version}-%{release} |
---|
37 | |
---|
38 | %description gtk2 |
---|
39 | Gtk+ bindings for libcanberra |
---|
40 | |
---|
41 | %package devel |
---|
42 | Summary: Development Files for libcanberra Client Development |
---|
43 | Summary(ja): libcanberra クライアントのための開発ファイル |
---|
44 | Group: Development/Libraries |
---|
45 | Requires: %{name} = %{version}-%{release} |
---|
46 | Requires: %{name}-gtk2 = %{version}-%{release} |
---|
47 | Requires: pkgconfig |
---|
48 | Requires: gtk-doc |
---|
49 | Requires: gtk2-devel |
---|
50 | |
---|
51 | %description devel |
---|
52 | Development Files for libcanberra Client Development |
---|
53 | |
---|
54 | # compat32 |
---|
55 | %package -n compat32-%{name} |
---|
56 | Summary: Portable Sound Event Library |
---|
57 | Summary(ja): ポータブルサウンドイベントライブラリ |
---|
58 | Group: System Environment/Libraries |
---|
59 | Requires: compat32-pulseaudio-libs |
---|
60 | |
---|
61 | %description -n compat32-%{name} |
---|
62 | A small and lightweight implementation of the XDG Sound Theme Specification |
---|
63 | (http://0pointer.de/public/sound-theme-spec.html). |
---|
64 | |
---|
65 | %description -n compat32-%{name} -l ja |
---|
66 | libcanberra は XDG サウンドテーマ仕様にしたがった小型かつ軽量な実装です。 |
---|
67 | |
---|
68 | %package -n compat32-%{name}-gtk2 |
---|
69 | Summary: Gtk+ Bindings for libcanberra |
---|
70 | Summary(ja): libcanberra の gtk+ バインディング |
---|
71 | Group: System Environment/Libraries |
---|
72 | Requires: compat32-%{name} = %{version}-%{release} |
---|
73 | |
---|
74 | %description -n compat32-%{name}-gtk2 |
---|
75 | Gtk+ bindings for libcanberra |
---|
76 | |
---|
77 | %package -n compat32-%{name}-devel |
---|
78 | Summary: Development Files for libcanberra Client Development |
---|
79 | Summary(ja): libcanberra クライアントのための開発ファイル |
---|
80 | Group: Development/Libraries |
---|
81 | Requires: compat32-%{name} = %{version}-%{release} |
---|
82 | Requires: compat32-%{name}-gtk2 = %{version}-%{release} |
---|
83 | Requires: %{name}-devel = %{version}-%{release} |
---|
84 | Requires: gtk-doc |
---|
85 | Requires: compat32-gtk2-devel |
---|
86 | |
---|
87 | %description -n compat32-%{name}-devel |
---|
88 | Development Files for libcanberra Client Development |
---|
89 | |
---|
90 | %prep |
---|
91 | %setup -q |
---|
92 | |
---|
93 | %build |
---|
94 | %configure --disable-static --disable-rpath --enable-pulse \ |
---|
95 | --enable-alsa --enable-null --disable-oss --with-builtin=dso |
---|
96 | make %{?_smp_mflags} |
---|
97 | |
---|
98 | %install |
---|
99 | rm -rf $RPM_BUILD_ROOT |
---|
100 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
101 | find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \; |
---|
102 | install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh |
---|
103 | rm $RPM_BUILD_ROOT%{_docdir}/libcanberra/README |
---|
104 | |
---|
105 | %post -p /sbin/ldconfig |
---|
106 | %postun -p /sbin/ldconfig |
---|
107 | |
---|
108 | %post gtk2 |
---|
109 | /sbin/ldconfig |
---|
110 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
111 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/libcanberra.schemas > /dev/null || : |
---|
112 | |
---|
113 | %postun gtk2 -p /sbin/ldconfig |
---|
114 | |
---|
115 | %pre gtk2 |
---|
116 | if [ "$1" -gt 1 ]; then |
---|
117 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
118 | gconftool-2 --makefile-install-rule \ |
---|
119 | %{_sysconfdir}/gconf/schemas/libcanberra.schemas >& /dev/null || : |
---|
120 | fi |
---|
121 | |
---|
122 | %preun gtk2 |
---|
123 | if [ "$1" -eq 0 ]; then |
---|
124 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
125 | gconftool-2 --makefile-uninstall-rule \ |
---|
126 | %{_sysconfdir}/gconf/schemas/libcanberra.schemas >& /dev/null || : |
---|
127 | fi |
---|
128 | |
---|
129 | %clean |
---|
130 | rm -rf $RPM_BUILD_ROOT |
---|
131 | |
---|
132 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
133 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
134 | |
---|
135 | %post -n compat32-%{name}-gtk2 -p /sbin/ldconfig |
---|
136 | %postun -n compat32-%{name}-gtk2 -p /sbin/ldconfig |
---|
137 | |
---|
138 | %files |
---|
139 | %defattr(-,root,root) |
---|
140 | %doc README LGPL |
---|
141 | %{_libdir}/libcanberra.so.* |
---|
142 | %dir %{_libdir}/libcanberra-%{version} |
---|
143 | %{_libdir}/libcanberra-%{version}/libcanberra-alsa.so |
---|
144 | %{_libdir}/libcanberra-%{version}/libcanberra-pulse.so |
---|
145 | %{_libdir}/libcanberra-%{version}/libcanberra-null.so |
---|
146 | %{_libdir}/libcanberra-%{version}/libcanberra-multi.so |
---|
147 | %{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so |
---|
148 | |
---|
149 | %files gtk2 |
---|
150 | %defattr(-,root,root) |
---|
151 | %{_sysconfdir}/gconf/schemas/libcanberra.schemas |
---|
152 | %{_libdir}/libcanberra-gtk.so.* |
---|
153 | %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so |
---|
154 | %{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh |
---|
155 | %{_bindir}/canberra-gtk-play |
---|
156 | %{_datadir}/gnome/autostart/libcanberra-login-sound.desktop |
---|
157 | %{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh |
---|
158 | |
---|
159 | %files devel |
---|
160 | %defattr(-,root,root) |
---|
161 | %doc %{_datadir}/gtk-doc/html/libcanberra |
---|
162 | %{_includedir}/canberra-gtk.h |
---|
163 | %{_includedir}/canberra.h |
---|
164 | %{_libdir}/libcanberra-gtk.so |
---|
165 | %{_libdir}/libcanberra.so |
---|
166 | %{_libdir}/pkgconfig/libcanberra-gtk.pc |
---|
167 | %{_libdir}/pkgconfig/libcanberra.pc |
---|
168 | |
---|
169 | # compat32 |
---|
170 | %if %{build_compat32} |
---|
171 | %files -n compat32-%{name} |
---|
172 | %defattr(-,root,root) |
---|
173 | %{_libdir}/libcanberra.so.* |
---|
174 | %dir %{_libdir}/libcanberra-%{version} |
---|
175 | %{_libdir}/libcanberra-%{version}/libcanberra-alsa.so |
---|
176 | %{_libdir}/libcanberra-%{version}/libcanberra-pulse.so |
---|
177 | %{_libdir}/libcanberra-%{version}/libcanberra-null.so |
---|
178 | %{_libdir}/libcanberra-%{version}/libcanberra-multi.so |
---|
179 | %{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so |
---|
180 | |
---|
181 | %files -n compat32-%{name}-gtk2 |
---|
182 | %defattr(-,root,root) |
---|
183 | %{_libdir}/libcanberra-gtk.so.* |
---|
184 | %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so |
---|
185 | |
---|
186 | %files -n compat32-%{name}-devel |
---|
187 | %defattr(-,root,root) |
---|
188 | %{_libdir}/libcanberra-gtk.so |
---|
189 | %{_libdir}/libcanberra.so |
---|
190 | %{_libdir}/pkgconfig/libcanberra-gtk.pc |
---|
191 | %{_libdir}/pkgconfig/libcanberra.pc |
---|
192 | %endif |
---|
193 | |
---|
194 | %changelog |
---|
195 | * Sat Jan 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.22-1 |
---|
196 | - new upstream release |
---|
197 | - fixed BuildRoot |
---|
198 | |
---|
199 | * Sun Sep 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-1 |
---|
200 | - new upstream release |
---|
201 | |
---|
202 | * Sat May 09 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.12-2 |
---|
203 | - added compat32 package for x86_64 arch support |
---|
204 | |
---|
205 | * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-1 |
---|
206 | - new upstream release |
---|
207 | - disable oss plugin |
---|
208 | |
---|
209 | * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9-1 |
---|
210 | - initial build for Vine Linux |
---|
211 | |
---|
212 | * Thu Sep 9 2008 Lennart Poettering <lpoetter@redhat.com> 0.9-1 |
---|
213 | - New version |
---|
214 | |
---|
215 | * Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-2 |
---|
216 | - Fix build-time dep on Gstreamer |
---|
217 | |
---|
218 | * Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-1 |
---|
219 | - New version |
---|
220 | |
---|
221 | * Thu Aug 14 2008 Lennart Poettering <lpoetter@redhat.com> 0.7-1 |
---|
222 | - New version |
---|
223 | |
---|
224 | * Mon Aug 4 2008 Lennart Poettering <lpoetter@redhat.com> 0.6-1 |
---|
225 | - New version |
---|
226 | |
---|
227 | * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-4 |
---|
228 | - Really add versioned dependency on libpulse |
---|
229 | |
---|
230 | * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-3 |
---|
231 | - Ship libcanberra-gtk-module.sh directly in CVS |
---|
232 | |
---|
233 | * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-2 |
---|
234 | - Fix build |
---|
235 | |
---|
236 | * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-1 |
---|
237 | - New version |
---|
238 | |
---|
239 | * Mon Jul 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-3 |
---|
240 | - Add versioned dependency on libpulse |
---|
241 | |
---|
242 | * Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-2 |
---|
243 | - Fix module name in libcanberra-gtk-module.sh |
---|
244 | |
---|
245 | * Fri Jul 25 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1 |
---|
246 | - New version |
---|
247 | - Install libcanberra-gtk-module.sh |
---|
248 | |
---|
249 | * Mon Jun 16 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-2 |
---|
250 | - Add dependency on sound-theme-freedesktop |
---|
251 | |
---|
252 | * Fri Jun 13 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-1 |
---|
253 | - Initial package, based on Colin Guthrie's Mandriva package |
---|
254 | |
---|