libcanberra-vl.spec 11 KB

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