libcanberra-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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.28
  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. # 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. %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop
  172. %{_bindir}/canberra-gtk-play
  173. %{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
  174. %{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh
  175. %{_sysconfdir}/gconf/schemas/libcanberra.schemas
  176. %{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
  177. %files devel
  178. %defattr(-,root,root)
  179. %doc %{_datadir}/gtk-doc/html/libcanberra
  180. %{_includedir}/canberra-gtk.h
  181. %{_includedir}/canberra.h
  182. %{_libdir}/libcanberra-gtk.so
  183. %{_libdir}/libcanberra.so
  184. %{_libdir}/pkgconfig/libcanberra-gtk.pc
  185. %{_libdir}/pkgconfig/libcanberra.pc
  186. %{_datadir}/vala/vapi/libcanberra-gtk.vapi
  187. %{_datadir}/vala/vapi/libcanberra.vapi
  188. %files gtk3-devel
  189. %defattr(-,root,root)
  190. %{_libdir}/libcanberra-gtk3.so
  191. %{_libdir}/pkgconfig/libcanberra-gtk3.pc
  192. # compat32
  193. %if %{build_compat32}
  194. %files -n compat32-%{name}
  195. %defattr(-,root,root)
  196. %{_libdir}/libcanberra.so.*
  197. %dir %{_libdir}/libcanberra-%{version}
  198. %{_libdir}/libcanberra-%{version}/libcanberra-alsa.so
  199. %{_libdir}/libcanberra-%{version}/libcanberra-pulse.so
  200. %{_libdir}/libcanberra-%{version}/libcanberra-null.so
  201. %{_libdir}/libcanberra-%{version}/libcanberra-multi.so
  202. %{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so
  203. %files -n compat32-%{name}-gtk2
  204. %defattr(-,root,root)
  205. %{_libdir}/libcanberra-gtk.so.*
  206. %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so
  207. %files -n compat32-%{name}-gtk3
  208. %defattr(-,root,root)
  209. %{_libdir}/libcanberra-gtk3.so.*
  210. %{_libdir}/gtk-3.0/modules/libcanberra-gtk3-module.so
  211. %{_libdir}/gtk-3.0/modules/libcanberra-gtk-module.so
  212. %files -n compat32-%{name}-devel
  213. %defattr(-,root,root)
  214. %{_libdir}/libcanberra-gtk.so
  215. %{_libdir}/libcanberra.so
  216. %{_libdir}/pkgconfig/libcanberra-gtk.pc
  217. %{_libdir}/pkgconfig/libcanberra.pc
  218. %files -n compat32-%{name}-gtk3-devel
  219. %defattr(-,root,root)
  220. %{_libdir}/libcanberra-gtk3.so
  221. %{_libdir}/pkgconfig/libcanberra-gtk3.pc
  222. %endif
  223. %changelog
  224. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.28-1
  225. - new upstream release
  226. - drop Patch1
  227. * Tue Apr 12 2011 IWAI, Masaharu <iwai@alib.jp> 0.26-2
  228. - split -devel sub package
  229. - create -gtk3-devel sub package
  230. - drop Requires: gtk3-devel for -devel sub package
  231. * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.26-1
  232. - new upstream release
  233. - add BuildRequires: gtk3-devel
  234. - add -gtk3 sub package
  235. - add Patch1 (libcanberra-quit-add.patch)
  236. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.25-2
  237. - rebuild with rpm-4.8.1 for pkg-config file
  238. * Fri Jul 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.25-1
  239. - new upstream release
  240. * Sat Jan 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.22-1
  241. - new upstream release
  242. - fixed BuildRoot
  243. * Sun Sep 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-1
  244. - new upstream release
  245. * Sat May 09 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.12-2
  246. - added compat32 package for x86_64 arch support
  247. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-1
  248. - new upstream release
  249. - disable oss plugin
  250. * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9-1
  251. - initial build for Vine Linux
  252. * Thu Sep 9 2008 Lennart Poettering <lpoetter@redhat.com> 0.9-1
  253. - New version
  254. * Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-2
  255. - Fix build-time dep on Gstreamer
  256. * Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-1
  257. - New version
  258. * Thu Aug 14 2008 Lennart Poettering <lpoetter@redhat.com> 0.7-1
  259. - New version
  260. * Mon Aug 4 2008 Lennart Poettering <lpoetter@redhat.com> 0.6-1
  261. - New version
  262. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-4
  263. - Really add versioned dependency on libpulse
  264. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-3
  265. - Ship libcanberra-gtk-module.sh directly in CVS
  266. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-2
  267. - Fix build
  268. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-1
  269. - New version
  270. * Mon Jul 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-3
  271. - Add versioned dependency on libpulse
  272. * Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-2
  273. - Fix module name in libcanberra-gtk-module.sh
  274. * Fri Jul 25 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1
  275. - New version
  276. - Install libcanberra-gtk-module.sh
  277. * Mon Jun 16 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-2
  278. - Add dependency on sound-theme-freedesktop
  279. * Fri Jun 13 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-1
  280. - Initial package, based on Colin Guthrie's Mandriva package