libcanberra-vl.spec 11 KB

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