alsa-lib-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. # --define nosrc:1 ... to make nosrc package
  2. Summary: Advanced Linux Sound Architecture (ALSA) Library
  3. Summary(ja): Advanced Linux Sound Architecture (ALSA) ライブラリ
  4. Name: alsa-lib
  5. Version: 1.1.5
  6. Release: 1%{?_dist_release}
  7. License: LGPLv2+
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{version}.tar.bz2
  10. Source10: asound.conf
  11. Source11: modprobe-dist-alsa.conf
  12. Source12: modprobe-dist-oss.conf
  13. Patch0: alsa-lib-1.0.24-config.patch
  14. Patch1: alsa-lib-1.0.14-glibc-open.patch
  15. %{?nosrc:NoSource: 0}
  16. URL: http://www.alsa-project.org/
  17. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: doxygen
  20. #BuildRequires: python-devel
  21. %define make_doc %(which doxygen &> /dev/null && echo 1 || echo 0)
  22. #BuildRequires: alsa-driver >= 0.9
  23. #Requires: alsa-driver >= 0.9
  24. #Provides: libasound-%{version}.so
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. Packager: shaolin
  28. %description
  29. Advanced Linux Sound Architecture (ALSA) - Library
  30. Features
  31. ========
  32. * general
  33. - modularized architecture with support for 2.0 and latest 2.1 kernels
  34. - support for versioned and exported symbols
  35. - full proc filesystem support - /proc/sound
  36. * ISA soundcards
  37. - support for 128k ISA DMA buffer
  38. * mixer
  39. - new enhanced API for applications
  40. - support for unlimited number of channels
  41. - volume can be set in three ways (percentual (0-100), exact and decibel)
  42. - support for mute (and hardware mute if hardware supports it)
  43. - support for mixer events
  44. - this allows two or more applications to be synchronized
  45. * digital audio (PCM)
  46. - new enhanced API for applications
  47. - full real duplex support
  48. - full duplex support for SoundBlaster 16/AWE soundcards
  49. - digital audio data for playback and record should be read back using
  50. proc filesystem
  51. * OSS/Lite compatibility
  52. - full mixer compatibity
  53. - full PCM (/dev/dsp) compatibility
  54. %description -l ja
  55. Advanced Linux Sound Architecture (ALSA) - ライブラリ
  56. 仕様
  57. ========
  58. * 総合
  59. - 2.0以降のカーネル用にモジュール化された構造
  60. - バージョンとシンボル群の出力をサポート
  61. - procファイルシステムの完全なサポート - /proc/sound
  62. * ISAサウンドカード
  63. - 128K ISA DMAバッファのサポート
  64. * ミキサー
  65. - アプリケーション用に拡張された新しいAPI
  66. - 無制限のチャンネル数をサポート
  67. - 3通りの音量調整 (パーセント (0-100)、厳密 そして デシベル)
  68. - 消音時のサポート (及び、ハードウェアが対応していればハードウェアによる消音のサポート)
  69. - ミキサーによる制御をサポート
  70. - this allows two or more applications to be synchronized
  71. * デジタルオーディオ (PCM)
  72. - アプリケーション用に拡張された新しいAPI
  73. - 完全な二重化通信をサポート
  74. - SoundBlaster 16/AWE用の完全な二重化通信をサポート
  75. - proc filesystemを用いたデジタル音声の再生と録音
  76. * OSS/Lite互換性
  77. - ミキサーとの完全互換
  78. - PCMとの完全互換 (/dev/dsp)
  79. %package -n compat32-%{name}
  80. Summary: Advanced Linux Sound Architecture (ALSA) Library
  81. Summary(ja): Advanced Linux Sound Architecture (ALSA) ライブラリ
  82. Group: System Environment/Libraries
  83. Requires: alsa-lib = %{version}
  84. %description -n compat32-%{name}
  85. Advanced Linux Sound Architecture (ALSA) - Library
  86. Features
  87. ========
  88. * general
  89. - modularized architecture with support for 2.0 and latest 2.1 kernels
  90. - support for versioned and exported symbols
  91. - full proc filesystem support - /proc/sound
  92. * ISA soundcards
  93. - support for 128k ISA DMA buffer
  94. * mixer
  95. - new enhanced API for applications
  96. - support for unlimited number of channels
  97. - volume can be set in three ways (percentual (0-100), exact and decibel)
  98. - support for mute (and hardware mute if hardware supports it)
  99. - support for mixer events
  100. - this allows two or more applications to be synchronized
  101. * digital audio (PCM)
  102. - new enhanced API for applications
  103. - full real duplex support
  104. - full duplex support for SoundBlaster 16/AWE soundcards
  105. - digital audio data for playback and record should be read back using
  106. proc filesystem
  107. * OSS/Lite compatibility
  108. - full mixer compatibity
  109. - full PCM (/dev/dsp) compatibility
  110. %description -n compat32-%{name} -l ja
  111. Advanced Linux Sound Architecture (ALSA) - ライブラリ
  112. 仕様
  113. ========
  114. * 総合
  115. - 2.0以降のカーネル用にモジュール化された構造
  116. - バージョンとシンボル群の出力をサポート
  117. - procファイルシステムの完全なサポート - /proc/sound
  118. * ISAサウンドカード
  119. - 128K ISA DMAバッファのサポート
  120. * ミキサー
  121. - アプリケーション用に拡張された新しいAPI
  122. - 無制限のチャンネル数をサポート
  123. - 3通りの音量調整 (パーセント (0-100)、厳密 そして デシベル)
  124. - 消音時のサポート (及び、ハードウェアが対応していればハードウェアによる消音のサポート)
  125. - ミキサーによる制御をサポート
  126. - this allows two or more applications to be synchronized
  127. * デジタルオーディオ (PCM)
  128. - アプリケーション用に拡張された新しいAPI
  129. - 完全な二重化通信をサポート
  130. - SoundBlaster 16/AWE用の完全な二重化通信をサポート
  131. - proc filesystemを用いたデジタル音声の再生と録音
  132. * OSS/Lite互換性
  133. - ミキサーとの完全互換
  134. - PCMとの完全互換 (/dev/dsp)
  135. %package devel
  136. Summary: Development files for alsa-lib
  137. Summary(ja): alsa-lib の開発用ファイル
  138. Group: Development/Libraries
  139. Requires: alsa-lib = %{version}
  140. %description devel
  141. alsa-lib-devel package includes thje static libraries and header files.
  142. %description -l ja devel
  143. alsa-lib-develパッケージは静的ライブラリとヘッダファイルを含んでいます。
  144. %package -n compat32-%{name}-devel
  145. Summary: Development files for alsa-lib
  146. Summary(ja): alsa-lib の開発用ファイル
  147. Group: Development/Libraries
  148. Requires: %{name}-devel = %{version}
  149. Requires: compat32-%{name} = %{version}
  150. %description -n compat32-%{name}-devel
  151. alsa-lib-devel package includes thje static libraries and header files.
  152. %description -n compat32-%{name}-devel -l ja
  153. alsa-lib-develパッケージは静的ライブラリとヘッダファイルを含んでいます。
  154. %prep
  155. %setup -q
  156. %patch0 -p1 -b .config
  157. %patch1 -p1 -b .glibc-open
  158. %build
  159. autoreconf -vif
  160. %configure \
  161. --disable-python \
  162. --disable-aload \
  163. --with-plugindir=%{_libdir}/alsa-lib \
  164. --disable-alisp
  165. # Remove useless /usr/lib64 rpath on 64bit archs
  166. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  167. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  168. make %{?_smp_mflags} V=1
  169. %if %make_doc
  170. make doc
  171. %endif
  172. %install
  173. rm -rf %{buildroot}
  174. make install DESTDIR=$RPM_BUILD_ROOT
  175. # We need the library to be available even before /usr might be mounted
  176. mkdir -p %{buildroot}/%{_lib}
  177. mv %{buildroot}%{_libdir}/libasound.so.* %{buildroot}/%{_lib}
  178. ln -snf ../../%{_lib}/libasound.so.2 %{buildroot}%{_libdir}/libasound.so
  179. # Install global configuration files
  180. mkdir -p -m 755 %{buildroot}/etc
  181. install -p -m 644 %{SOURCE10} %{buildroot}/etc
  182. # Install the modprobe files for ALSA
  183. mkdir -p -m 755 %{buildroot}/lib/modprobe.d/
  184. install -p -m 644 %{SOURCE11} %{buildroot}/lib/modprobe.d/dist-alsa.conf
  185. # bug#926973, place this file to the doc directory
  186. install -p -m 644 %{SOURCE12} .
  187. # Create UCM directory
  188. mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
  189. # Remove libtool archives.
  190. find %{buildroot} -name '*.la' -delete
  191. %clean
  192. rm -rf %{buildroot}
  193. %post -p /sbin/ldconfig
  194. %postun -p /sbin/ldconfig
  195. %files
  196. %defattr(-, root, root)
  197. %{!?_licensedir:%global license %%doc}
  198. %license COPYING
  199. %doc doc/asoundrc.txt modprobe-dist-oss.conf
  200. %config %{_sysconfdir}/asound.conf
  201. /%{_lib}/lib*.so.*
  202. %{_bindir}/aserver
  203. #dir %{_libdir}/alsa-lib
  204. #{_libdir}/alsa-lib/smixer/*.so
  205. %{_datadir}/alsa/
  206. /lib/modprobe.d/dist-*
  207. %files devel
  208. %defattr(-, root, root)
  209. %doc TODO
  210. %if %make_doc
  211. %doc doc/doxygen/html
  212. %endif
  213. %{_includedir}/alsa/
  214. %{_includedir}/sys/asoundlib.h
  215. %{_libdir}/libasound.so
  216. %{_libdir}/pkgconfig/alsa.pc
  217. %{_datadir}/aclocal/alsa.m4
  218. %if %{build_compat32}
  219. %files -n compat32-%{name}
  220. %defattr(-, root, root)
  221. /%{_lib}/lib*.so.*
  222. #dir %{_libdir}/alsa-lib
  223. #{_libdir}/alsa-lib/smixer/*.so
  224. %files -n compat32-%{name}-devel
  225. %defattr(-, root, root)
  226. %{_libdir}/lib*.so
  227. %endif
  228. %changelog
  229. * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.5-1
  230. - new upstream release.
  231. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-1
  232. - new upstream release
  233. * Sat Jul 11 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.29-1
  234. - new upstream release
  235. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.28-1
  236. - new upstream release
  237. * Fri Jul 12 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.27.2-1
  238. - new upstream release
  239. * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.26-1
  240. - new upstream release
  241. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.25-1
  242. - new upstream release
  243. - remove Patch3 (alsa-lib-pulse-default.patch)
  244. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.23-2
  245. - rebuild with rpm-4.8.1 for pkg-config file
  246. * Fri May 28 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.23-1
  247. - new upstream release
  248. * Tue Jan 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.22-2
  249. - added --disable-python
  250. - added %%post and %%postun section
  251. * Wed Dec 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.22-1
  252. - new upstream release
  253. - added BR: python-devel
  254. * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21a-1
  255. - new upstream release
  256. * Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.20-1
  257. - new upstream release
  258. * Wed Feb 18 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.19-1
  259. - new upstream release
  260. - drop Patch5/6/7/8 since they are already merged into upstream
  261. * Mon Sep 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.17-1
  262. - new upstream release
  263. - add patches from upstream to better support pulseaudio
  264. - add hook to /etc/alsa/default-pluse.conf
  265. - disable static libs
  266. * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.16-1vl5
  267. - new upstream release
  268. * Sun Oct 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl1
  269. - new upstream release
  270. - updated Patch10
  271. * Sat Sep 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.12-0vl2
  272. - add Patch10 (not to use audio group for dmix)
  273. * Thu Aug 31 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.12-0vl1
  274. - new upstream release
  275. * Sat Aug 05 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.10-0vl5
  276. - removed unnecessary branch statement
  277. * Tue Jun 27 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.10-0vl4
  278. - add BuildRequires: doxygen again
  279. * Mon Mar 13 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 1.0.10-0vl3
  280. - added compat32-* packages for x86_64 architecture support
  281. * Sat Mar 11 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.10-0vl2
  282. - unused libtool at make
  283. - rebuilt for x86_64 architecture
  284. * Sat Dec 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.10-0vl1
  285. - new upstream release
  286. * Sat Jun 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.9-0vl2
  287. - add Japanese summary and description (thanks to Masa Takahashi)
  288. * Fri Jun 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.9-0vl1
  289. - new upstream release
  290. * Mon Apr 11 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.8-0vl1
  291. - new upstream version
  292. - remove Requires: alsa-driver
  293. - split development files to alsa-lib-devel
  294. * Wed Aug 04 2004 Satoshi MACHINO <machino@vinelinux.org> 1.0.5-0vl1
  295. - New upstream version alsa-lib-1.0.5)
  296. * Sat May 29 2004 IWAI, Masaharu <iwai@alib.jp> 1.0.4-0vl2
  297. - rebuild for VineSeed
  298. - merged spec file from 1.0.4-0vl2.13
  299. * Mon Apr 26 2004 Masaki Shinomiya <shino@pos.to> 1.0.4-0vl1
  300. - new upstream release
  301. * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-0vl2
  302. - rebuild for VineSeed
  303. * Thu Feb 12 2004 Masaki Shinomiya <shino@pos.to> 1.0.2-0vl1
  304. - new upstream release
  305. - not buildrequire alsa-driver
  306. - make doc if doxygen installed
  307. * Fri Feb 15 2002 Toru Sagami <sagami@vinelinux.org> 0.5.10b-0vl2
  308. - rebuilt on current environment
  309. * Tue Mar 27 2001 Satoshi MACHINO <machino@vinelinux.org> 0.5.10b-0vl1
  310. - updated 0.5.10b and build kernel-2.2.18-0vl13
  311. * Sun Jan 14 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  312. - 0.5.10-0vl2
  313. - use better macros and makeinstall
  314. * Thu Dec 07 2000 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  315. - 0.5.10
  316. - removed Provides: libasound-0.5.5.so
  317. * Tue Jun 20 2000 Toru Sagami <czs14350@nifty.ne.jp>
  318. - import to Vine 0.5.8-0vl1 from 0.5.8-0k1
  319. - BuildRequires: alsa-driver >= 0.5.5
  320. * Mon Jun 5 2000 AYUHANA Tomonori <l@kondara.org>
  321. - Version up 0.5.7 -> 0.5.8
  322. - add -q at %setup
  323. - use %%configure
  324. * Sun Apr 9 2000 Toru Hoshina <t@kondara.org>
  325. - Version up 0.5.6 -> 0.5.7
  326. * Wed Mar 15 2000 Daiki Matsuda <dyky@kondara.org>
  327. - Version up 0.5.5 -> 0.5.6
  328. - Provides libasound-0.5.5.so for compatiblity
  329. * Thu Mar 2 2000 Toru Hoshina <t@kondara.org>
  330. - Version up 0.5.4 -> 0.5.5
  331. * Mon Feb 28 2000 Toru Hoshina <t@kondara.org>
  332. - Version up 0.4.1e -> 0.5.4
  333. * Mon Nov 8 1999 Toru Hoshina <t@kondara.org>
  334. - be a NoSrc :-P
  335. * Thu May 28 1998 Helge Jensen <slog@slog.dk>
  336. - Made SPEC file