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