alsa-utils-vl.spec 7.0 KB

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