alsa-lib-vl.spec 13 KB

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