libcanberra-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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.30
  6. Release: 2%{?_dist_release}
  7. Group: System Environment/Libraries
  8. Source0: http://0pointer.de/lennart/projects/libcanberra/libcanberra-%{version}.tar.xz
  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: gstreamer1-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. %postun gtk3 -p /sbin/ldconfig
  132. %clean
  133. rm -rf $RPM_BUILD_ROOT
  134. %post -n compat32-%{name} -p /sbin/ldconfig
  135. %postun -n compat32-%{name} -p /sbin/ldconfig
  136. %post -n compat32-%{name}-gtk2 -p /sbin/ldconfig
  137. %postun -n compat32-%{name}-gtk2 -p /sbin/ldconfig
  138. %files
  139. %defattr(-,root,root)
  140. %doc README LGPL
  141. %{_libdir}/libcanberra.so.*
  142. %dir %{_libdir}/libcanberra-%{version}
  143. %{_libdir}/libcanberra-%{version}/libcanberra-alsa.so
  144. %{_libdir}/libcanberra-%{version}/libcanberra-pulse.so
  145. %{_libdir}/libcanberra-%{version}/libcanberra-null.so
  146. %{_libdir}/libcanberra-%{version}/libcanberra-multi.so
  147. %{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so
  148. %files gtk2
  149. %defattr(-,root,root)
  150. %{_libdir}/libcanberra-gtk.so.*
  151. %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so
  152. %files gtk3
  153. %defattr(-,root,root)
  154. %{_libdir}/libcanberra-gtk3.so.*
  155. %{_libdir}/gtk-3.0/modules/libcanberra-gtk3-module.so
  156. %{_libdir}/gtk-3.0/modules/libcanberra-gtk-module.so
  157. %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop
  158. %{_bindir}/canberra-gtk-play
  159. %{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
  160. %{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh
  161. %{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
  162. %files devel
  163. %defattr(-,root,root)
  164. %doc %{_datadir}/gtk-doc/html/libcanberra
  165. %{_includedir}/canberra-gtk.h
  166. %{_includedir}/canberra.h
  167. %{_libdir}/libcanberra-gtk.so
  168. %{_libdir}/libcanberra.so
  169. %{_libdir}/pkgconfig/libcanberra-gtk.pc
  170. %{_libdir}/pkgconfig/libcanberra.pc
  171. %{_datadir}/vala/vapi/libcanberra-gtk.vapi
  172. %{_datadir}/vala/vapi/libcanberra.vapi
  173. %files gtk3-devel
  174. %defattr(-,root,root)
  175. %{_libdir}/libcanberra-gtk3.so
  176. %{_libdir}/pkgconfig/libcanberra-gtk3.pc
  177. # compat32
  178. %if %{build_compat32}
  179. %files -n compat32-%{name}
  180. %defattr(-,root,root)
  181. %{_libdir}/libcanberra.so.*
  182. %dir %{_libdir}/libcanberra-%{version}
  183. %{_libdir}/libcanberra-%{version}/libcanberra-alsa.so
  184. %{_libdir}/libcanberra-%{version}/libcanberra-pulse.so
  185. %{_libdir}/libcanberra-%{version}/libcanberra-null.so
  186. %{_libdir}/libcanberra-%{version}/libcanberra-multi.so
  187. %{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so
  188. %files -n compat32-%{name}-gtk2
  189. %defattr(-,root,root)
  190. %{_libdir}/libcanberra-gtk.so.*
  191. %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so
  192. %files -n compat32-%{name}-gtk3
  193. %defattr(-,root,root)
  194. %{_libdir}/libcanberra-gtk3.so.*
  195. %{_libdir}/gtk-3.0/modules/libcanberra-gtk3-module.so
  196. %{_libdir}/gtk-3.0/modules/libcanberra-gtk-module.so
  197. %files -n compat32-%{name}-devel
  198. %defattr(-,root,root)
  199. %{_libdir}/libcanberra-gtk.so
  200. %{_libdir}/libcanberra.so
  201. %files -n compat32-%{name}-gtk3-devel
  202. %defattr(-,root,root)
  203. %{_libdir}/libcanberra-gtk3.so
  204. %endif
  205. %changelog
  206. * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.30-2
  207. - rebuild with VineSeed environment
  208. * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.30-1
  209. - new upstream release
  210. - change BuildRequires; gstreamer1-devel instead of gstreamer-devel
  211. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.28-1
  212. - new upstream release
  213. - drop Patch1
  214. * Tue Apr 12 2011 IWAI, Masaharu <iwai@alib.jp> 0.26-2
  215. - split -devel sub package
  216. - create -gtk3-devel sub package
  217. - drop Requires: gtk3-devel for -devel sub package
  218. * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.26-1
  219. - new upstream release
  220. - add BuildRequires: gtk3-devel
  221. - add -gtk3 sub package
  222. - add Patch1 (libcanberra-quit-add.patch)
  223. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.25-2
  224. - rebuild with rpm-4.8.1 for pkg-config file
  225. * Fri Jul 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.25-1
  226. - new upstream release
  227. * Sat Jan 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.22-1
  228. - new upstream release
  229. - fixed BuildRoot
  230. * Sun Sep 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-1
  231. - new upstream release
  232. * Sat May 09 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.12-2
  233. - added compat32 package for x86_64 arch support
  234. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-1
  235. - new upstream release
  236. - disable oss plugin
  237. * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9-1
  238. - initial build for Vine Linux
  239. * Tue Sep 9 2008 Lennart Poettering <lpoetter@redhat.com> 0.9-1
  240. - New version
  241. * Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-2
  242. - Fix build-time dep on Gstreamer
  243. * Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-1
  244. - New version
  245. * Thu Aug 14 2008 Lennart Poettering <lpoetter@redhat.com> 0.7-1
  246. - New version
  247. * Mon Aug 4 2008 Lennart Poettering <lpoetter@redhat.com> 0.6-1
  248. - New version
  249. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-4
  250. - Really add versioned dependency on libpulse
  251. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-3
  252. - Ship libcanberra-gtk-module.sh directly in CVS
  253. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-2
  254. - Fix build
  255. * Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-1
  256. - New version
  257. * Mon Jul 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-3
  258. - Add versioned dependency on libpulse
  259. * Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-2
  260. - Fix module name in libcanberra-gtk-module.sh
  261. * Fri Jul 25 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1
  262. - New version
  263. - Install libcanberra-gtk-module.sh
  264. * Mon Jun 16 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-2
  265. - Add dependency on sound-theme-freedesktop
  266. * Fri Jun 13 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-1
  267. - Initial package, based on Colin Guthrie's Mandriva package