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