alsa-utils-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. %define alsa_version 1.0.20
  2. Summary: Advanced Linux Sound Architecture (ALSA) Utils
  3. Summary(ja): Advanced Linux Sound Architecture (ALSA) ユーティリティ集
  4. Name: alsa-utils
  5. Version: 1.0.23
  6. Release: 1%{?_dist_release}
  7. License: GPL
  8. Group: Applications/Multimedia
  9. URL: http://www.alsa-project.org
  10. Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
  11. Source1: test.wav
  12. Source10: alsa.rules
  13. Source11: alsactl.conf
  14. Patch0: alsaconf-1.0.19.patch
  15. Patch1: alsa-utils-1.0.19-init.patch
  16. Patch2: alsactl-init-fix-headphone.patch
  17. BuildRequires: alsa-lib-devel >= %{alsa_version}
  18. BuildRequires: ncurses-devel
  19. BuildRequires: gettext
  20. BuildRequires: xmlto
  21. Requires: alsa-driver >= %{alsa_version}, alsa-lib >= %{alsa_version}
  22. Requires(pre): coreutils, bash
  23. Requires(post): coreutils, bash
  24. Provides: alsaconf
  25. Obsoletes: alsaconf
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. Vendor: Project Vine
  28. Distribution: Vine Linux
  29. Packager: shaolin
  30. %description
  31. Advanced Linux Sound Architecture (ALSA) - Utils
  32. %description -l ja
  33. Advanced Linux Sound Architecture (ALSA) - ユーティリティ集
  34. %prep
  35. %setup -q
  36. %patch0 -p1 -b .conf
  37. #%patch1 -p1 -b .init
  38. #%patch2 -p1 -b .headphone
  39. %build
  40. %configure --sbindir=/sbin
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf %{buildroot}
  44. make install DESTDIR=$RPM_BUILD_ROOT
  45. chmod -x config.status
  46. %{__install} -d -m 755 %{buildroot}%{_datadir}/sounds/alsa
  47. %{__install} -m 660 %{SOURCE1} %{buildroot}%{_datadir}/sounds/alsa/test.wav
  48. # Install ALSA udev rules
  49. mkdir -p -m 755 $RPM_BUILD_ROOT/etc/udev/rules.d
  50. install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT/etc/udev/rules.d/90-alsa.rules
  51. # Link alsactl to /usr/sbin
  52. mkdir -p %{buildroot}/%{_sbindir}/
  53. ln -sf ../../sbin/alsactl %{buildroot}/%{_sbindir}/
  54. # move alsaconf to /usr/sbin
  55. mv %{buildroot}/sbin/alsaconf %{buildroot}/%{_sbindir}/
  56. # move /usr/share/alsa/init to /lib/alsa/init
  57. mkdir -p -m 755 %{buildroot}/lib/alsa
  58. mv %{buildroot}%{_datadir}/alsa/init %{buildroot}/lib/alsa
  59. ln -sf /lib/alsa/init %{buildroot}%{_datadir}/alsa/
  60. # create /etc/alsa which should owned by this package.
  61. mkdir -p -m 755 %{buildroot}/etc/alsa
  62. install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa
  63. touch %{buildroot}/etc/asound.state
  64. %clean
  65. rm -rf %{buildroot}
  66. %pretrans
  67. if [ ! -h %{_datadir}/alsa/init ]; then
  68. mv %{_datadir}/alsa/init %{_datadir}/alsa/init.rpmsave > /dev/null 2>&1 ||:
  69. ln -sf init.rpmsave %{_datadir}/alsa/init > /dev/null 2>&1 ||:
  70. fi
  71. exit 0
  72. %posttrans
  73. rm -rf %{_datadir}/alsa/init.rpmsave > /dev/null 2>&1 ||:
  74. exit 0
  75. %files
  76. %defattr(-, root, root)
  77. %doc [A-Z][^a]*
  78. %dir /etc/alsa
  79. %dir /lib/alsa
  80. %dir /lib/alsa/init
  81. %config /etc/udev/rules.d/*
  82. %config /etc/alsa/*
  83. /sbin/*
  84. /lib/alsa/init/*
  85. %{_bindir}/*
  86. %{_sbindir}/*
  87. %{_datadir}/sounds/
  88. %{_datadir}/alsa/
  89. %{_datadir}/locale/*/LC_MESSAGES/*.mo
  90. %{_mandir}/man?/*
  91. %{_mandir}/*/man?/*
  92. %ghost /etc/asound.state
  93. %changelog
  94. * Fri May 28 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.23-1
  95. - new upstream release
  96. * Wed Dec 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.22-1
  97. - new upstream release
  98. - added BR: xmlto
  99. * Fri Oct 9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21-2
  100. - fix alsa_version
  101. * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21-1
  102. - new upstream release
  103. - drop Patch2 (already merged into upstream)
  104. * Thu Jul 2 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.20-1
  105. - new upstream release
  106. - drop Patch1 (already merged into upstream)
  107. - import Headphone Volume patch (Patch2) from Fedora
  108. * Mon Apr 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.19-4
  109. - add Requires(pre,post): coreutils, bash
  110. * Mon Mar 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.19-3
  111. - fix %%pretrans
  112. * Mon Mar 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.19-2
  113. - move alsactl to /sbin
  114. - move /usr/share/alsa to /lib/alsa/init
  115. - alsactl is used by udev
  116. - own /etc/alsa
  117. - add /etc/alsa/alsactrl.conf
  118. - add patch1 to fix volume initialization for some HDA codecs
  119. - add %%pretrans tweaks to upgrade from dir to symlink
  120. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.19-1
  121. - new upstream release
  122. * Mon Sep 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.17-1
  123. - new upstream release
  124. * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.16-1vl5
  125. - new upstream release
  126. * Sun Oct 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl1
  127. - new upstream release
  128. - updated Patch0
  129. * Thu Aug 31 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.12-0vl1
  130. - new upstream release
  131. * Sat Dec 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.10-0vl1
  132. - new upstream release
  133. - added man8 files
  134. * Sat Jun 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.9a-0vl2
  135. - add Japanese summary and description
  136. - add message catalog to %%files
  137. - use macros
  138. * Fri Jun 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.9a-0vl1
  139. - new upstream release
  140. * Wed Aug 04 2004 Satoshi MACHINO <machino@vinelinux.org> 1.0.5-0vl1
  141. - New upstream version (alsa-utils-1.0.5)
  142. - added ncurses-devel in BuildRequires
  143. * Sat May 29 2004 IWAI, Masaharu <iwai@alib.jp> 1.0.4-0vl2
  144. - build for VineSeed
  145. - merged spec file from 1.0.4-0vl2.13
  146. * Mon Apr 26 2004 Masaki Shinomiya <shino@pos.to> 1.0.4-0vl1
  147. - new upstream release
  148. * Sun Mar 21 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-0vl2
  149. - build for VineSeed
  150. * Thu Feb 12 2004 Masaki Shinomiya <shino@pos.to> 1.0.2-0vl1
  151. - new upstream release, alsaconf, test.wav
  152. - alsaconf.patch to do snddevices - thanks to Eitetsu Oomoto
  153. - omit config.status from doc
  154. * Fri Feb 15 2002 Toru Sagami <sagami@vinelinux.org> 0.5.10-0vl3
  155. - get rid of executable bit from files in %%doc
  156. * Sun Jan 14 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  157. - 0.5.10-0vl2
  158. - use better macros and makeinstall
  159. * Thu Dec 07 2000 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  160. - 0.5.10
  161. - FHS stuff: _mandir
  162. * Tue Jun 20 2000 Toru Sagami <czs14350@nifty.ne.jp>
  163. - import to Vine 0.5.8-0vl1 from 0.5.8-0k1
  164. - BuildRequires: alsa-lib >= 0.5.5
  165. * Tue Jun 6 2000 AYUHANA Tomonori <l@kondara.org>
  166. - Version up 0.5.7 -> 0.5.8
  167. - add -q at %setup
  168. - use %%configure
  169. * Thu Apr 9 2000 Toru Hoshina <t@kondara.org>
  170. - Version up 0.5.6 -> 0.5.7
  171. * Wed Mar 15 2000 Daiki Matsuda <dyky@kondara.org>
  172. - Version up 0.5.5 -> 0.5.6
  173. * Thu Mar 2 2000 Toru Hoshina <t@kondara.org>
  174. - Version up 0.5.4 -> 0.5.5
  175. * Sun Feb 27 2000 Toru Hoshina <t@kondara.org>
  176. - Version up 0.4.1e -> 0.5.4
  177. * Sat Jan 29 2000 Toru Hoshina <t@kondara.org>
  178. - stripped. (*^_^*)
  179. * Mon Nov 8 1999 Toru Hoshina <t@kondara.org>
  180. - be a NoSrc :-P
  181. * Mon May 28 1998 Helge Jensen <slog@slog.dk>
  182. - Made SPEC file