alsa-lib-vl.spec 14 KB

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