libcanberra-vl.spec 8.0 KB

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