alsa-utils-vl.spec 7.2 KB

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