]>
Commit | Line | Data |
---|---|---|
d12b2a0d | 1 | Summary: libcanberra - the portable sound event library |
9f640b01 JB |
2 | Summary(pl.UTF-8): libcanberra - przenośna biblioteka zdarzeń dźwiękowych |
3 | Name: libcanberra | |
d3bb00e1 | 4 | Version: 0.22 |
80b0b6a0 | 5 | Release: 4 |
14347ec7 | 6 | License: LGPL v2+ |
d12b2a0d | 7 | Group: Libraries |
ed9f9954 | 8 | Source0: http://0pointer.de/lennart/projects/libcanberra/%{name}-%{version}.tar.gz |
d3bb00e1 | 9 | # Source0-md5: e24e2f956fedfbcc58edfa40471b18d8 |
ed9f9954 | 10 | URL: http://0pointer.de/lennart/projects/libcanberra/ |
f8880f49 | 11 | BuildRequires: GConf2-devel |
14347ec7 | 12 | BuildRequires: alsa-lib-devel >= 1.0.0 |
104ffcd1 MB |
13 | BuildRequires: autoconf >= 2.63 |
14 | BuildRequires: automake >= 1:1.10 | |
1e3789d8 | 15 | BuildRequires: gstreamer-devel >= 0.10.15 |
d3bb00e1 | 16 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
14347ec7 | 17 | BuildRequires: gtk-doc >= 1.9 |
d12b2a0d | 18 | BuildRequires: libltdl-devel |
104ffcd1 | 19 | BuildRequires: libtool >= 2:2.2.0 |
d12b2a0d | 20 | BuildRequires: libvorbis-devel |
14347ec7 | 21 | BuildRequires: pkgconfig |
d12b2a0d PZ |
22 | BuildRequires: pulseaudio-devel >= 0.9.11-1 |
23 | Requires: pulseaudio-libs >= 0.9.11-1 | |
24 | Requires: sound-theme-freedesktop | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
104ffcd1 MB |
27 | %define backenddir %{_libdir}/libcanberra-%{version} |
28 | ||
d12b2a0d PZ |
29 | %description |
30 | A small and lightweight implementation of the XDG Sound Theme | |
31 | Specification (http://0pointer.de/public/sound-theme-spec.html). | |
32 | ||
14347ec7 MB |
33 | %description -l pl.UTF-8 |
34 | Mała i lekka implementacja specyfikacji XDG Sound Theme | |
35 | (http://0pointer.de/public/sound-theme-spec.html). | |
d12b2a0d PZ |
36 | |
37 | %package devel | |
14347ec7 MB |
38 | Summary: Header files for libcanberra library |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcanberra | |
d12b2a0d PZ |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
d12b2a0d PZ |
42 | |
43 | %description devel | |
14347ec7 MB |
44 | Header files for libcanberra library. |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki libcanberra. | |
48 | ||
49 | %package static | |
50 | Summary: Static libcanberra library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka libcanberra | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static libcanberra library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka libcanberra. | |
60 | ||
61 | %package gtk | |
62 | Summary: GTK+ bindings for libcanberra library | |
63 | Summary(pl.UTF-8): Wiązania GTK+ do biblioteki libcanberra | |
64 | Group: X11/Libraries | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Provides: libcanberra-gtk2 | |
67 | Obsoletes: libcanberra-gtk2 | |
68 | ||
69 | %description gtk | |
70 | GTK+ bindings for libcanberra library. | |
71 | ||
72 | %description gtk -l pl.UTF-8 | |
73 | Wiązania GTK+ do biblioteki libcanberra. | |
74 | ||
75 | %package gtk-devel | |
76 | Summary: Header files for libcanberra-gtk library | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcanberra-gtk | |
78 | Group: X11/Development/Libraries | |
9f640b01 | 79 | Requires: %{name}-devel = %{version}-%{release} |
14347ec7 | 80 | Requires: %{name}-gtk = %{version}-%{release} |
d3bb00e1 | 81 | Requires: gtk+2-devel >= 2:2.14.0 |
14347ec7 MB |
82 | |
83 | %description gtk-devel | |
84 | Header files for libcanberra-gtk library. | |
85 | ||
86 | %description gtk-devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe biblioteki libcanberra-gtk. | |
88 | ||
89 | %package gtk-static | |
90 | Summary: Static libcanberra-gtk library | |
91 | Summary(pl.UTF-8): Statyczna biblioteka libcanberra-gtk | |
92 | Group: X11/Development/Libraries | |
93 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
94 | ||
95 | %description gtk-static | |
96 | Static libcanberra-gtk library. | |
97 | ||
98 | %description gtk-static -l pl.UTF-8 | |
99 | Statyczna biblioteka libcanberra-gtk. | |
d12b2a0d PZ |
100 | |
101 | %package apidocs | |
102 | Summary: libcanberra API documentation | |
103 | Summary(pl.UTF-8): Dokumentacja API libcanberra | |
104 | Group: Documentation | |
105 | Requires: gtk-doc-common | |
106 | ||
107 | %description apidocs | |
108 | libcanberra API documentation. | |
109 | ||
110 | %description apidocs -l pl.UTF-8 | |
111 | Dokumentacja API libcanberra. | |
112 | ||
b9f600fb MB |
113 | %package gnome |
114 | Summary: Files required to play login sound in GNOME | |
115 | Summary(pl.UTF-8): Pliki potrzebne do odtwarzania dźwięku logowania w GNOME | |
116 | Group: Applications | |
104ffcd1 | 117 | Requires(post,preun): GConf2 |
b9f600fb MB |
118 | Requires: %{name}-gtk = %{version}-%{release} |
119 | ||
120 | %description gnome | |
121 | Files required to play login sound in GNOME. | |
122 | ||
123 | %description gnome -l pl.UTF-8 | |
124 | Pliki potrzebne do odtwarzania dźwięku logowania w GNOME. | |
125 | ||
d12b2a0d PZ |
126 | %prep |
127 | %setup -q | |
128 | ||
129 | %build | |
80b0b6a0 | 130 | %{__gtkdocize} --docdir gtkdoc/ |
d12b2a0d | 131 | %{__libtoolize} |
ed9f9954 | 132 | %{__aclocal} -I m4 |
d12b2a0d | 133 | %{__autoconf} |
14347ec7 | 134 | %{__autoheader} |
d12b2a0d PZ |
135 | %{__automake} |
136 | %configure \ | |
104ffcd1 | 137 | --disable-schemas-install \ |
d12b2a0d | 138 | --enable-alsa \ |
1e3789d8 | 139 | --enable-gstreamer \ |
d12b2a0d | 140 | --enable-null \ |
1e3789d8 | 141 | --enable-oss \ |
9f640b01 | 142 | --enable-pulse \ |
104ffcd1 | 143 | --enable-static \ |
e1d2c227 | 144 | --enable-gtk-doc \ |
d12b2a0d PZ |
145 | --with-html-dir=%{_gtkdocdir} |
146 | %{__make} | |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
14347ec7 | 150 | |
1279b8de | 151 | %{__make} -j1 install \ |
d12b2a0d PZ |
152 | DESTDIR=$RPM_BUILD_ROOT |
153 | ||
14347ec7 | 154 | rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{a,la} |
104ffcd1 MB |
155 | rm $RPM_BUILD_ROOT%{backenddir}/*.{a,la} |
156 | rm $RPM_BUILD_ROOT%{_datadir}/doc/libcanberra/README | |
d12b2a0d PZ |
157 | |
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
9f640b01 JB |
161 | %post -p /sbin/ldconfig |
162 | %postun -p /sbin/ldconfig | |
14347ec7 | 163 | |
9f640b01 JB |
164 | %post gtk -p /sbin/ldconfig |
165 | %postun gtk -p /sbin/ldconfig | |
14347ec7 | 166 | |
104ffcd1 MB |
167 | %post gnome |
168 | %gconf_schema_install libcanberra.schemas | |
169 | ||
170 | %preun gnome | |
171 | %gconf_schema_uninstall libcanberra.schemas | |
172 | ||
d12b2a0d PZ |
173 | %files |
174 | %defattr(644,root,root,755) | |
14347ec7 | 175 | %doc README |
d12b2a0d PZ |
176 | %attr(755,root,root) %{_libdir}/libcanberra.so.*.*.* |
177 | %attr(755,root,root) %ghost %{_libdir}/libcanberra.so.0 | |
104ffcd1 MB |
178 | %dir %{backenddir} |
179 | %attr(755,root,root) %{backenddir}/libcanberra-alsa.so | |
180 | %attr(755,root,root) %{backenddir}/libcanberra-gstreamer.so | |
181 | %attr(755,root,root) %{backenddir}/libcanberra-oss.so | |
182 | %attr(755,root,root) %{backenddir}/libcanberra-pulse.so | |
183 | %attr(755,root,root) %{backenddir}/libcanberra-null.so | |
184 | %attr(755,root,root) %{backenddir}/libcanberra-multi.so | |
14347ec7 MB |
185 | |
186 | %files devel | |
187 | %defattr(644,root,root,755) | |
188 | %attr(755,root,root) %{_libdir}/libcanberra.so | |
189 | %{_libdir}/libcanberra.la | |
190 | %{_includedir}/canberra.h | |
191 | %{_pkgconfigdir}/libcanberra.pc | |
d3bb00e1 | 192 | %{_datadir}/vala/vapi/libcanberra.vapi |
14347ec7 MB |
193 | |
194 | %files static | |
195 | %defattr(644,root,root,755) | |
196 | %{_libdir}/libcanberra.a | |
d12b2a0d | 197 | |
14347ec7 | 198 | %files gtk |
d12b2a0d | 199 | %defattr(644,root,root,755) |
14347ec7 | 200 | %attr(755,root,root) %{_bindir}/canberra-gtk-play |
d12b2a0d PZ |
201 | %attr(755,root,root) %{_libdir}/libcanberra-gtk.so.*.*.* |
202 | %attr(755,root,root) %ghost %{_libdir}/libcanberra-gtk.so.0 | |
e25fd682 | 203 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so |
d12b2a0d | 204 | |
14347ec7 | 205 | %files gtk-devel |
d12b2a0d | 206 | %defattr(644,root,root,755) |
d12b2a0d | 207 | %attr(755,root,root) %{_libdir}/libcanberra-gtk.so |
d12b2a0d | 208 | %{_libdir}/libcanberra-gtk.la |
14347ec7 | 209 | %{_includedir}/canberra-gtk.h |
d12b2a0d | 210 | %{_pkgconfigdir}/libcanberra-gtk.pc |
d3bb00e1 | 211 | %{_datadir}/vala/vapi/libcanberra-gtk.vapi |
14347ec7 MB |
212 | |
213 | %files gtk-static | |
214 | %defattr(644,root,root,755) | |
215 | %{_libdir}/libcanberra-gtk.a | |
d12b2a0d PZ |
216 | |
217 | %files apidocs | |
218 | %defattr(644,root,root,755) | |
219 | %{_gtkdocdir}/%{name} | |
b9f600fb MB |
220 | |
221 | %files gnome | |
222 | %defattr(644,root,root,755) | |
104ffcd1 | 223 | %{_sysconfdir}/gconf/schemas/libcanberra.schemas |
d3bb00e1 | 224 | %{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop |
b9f600fb MB |
225 | %{_datadir}/gnome/autostart/libcanberra-login-sound.desktop |
226 | %attr(755,root,root) %{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh |