alsa-driver-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. %define build_kmod 1
  2. %define kversion %(uname -r)
  3. %define kver %(uname -r | sed -e 's/-/_/g')
  4. %define kflavor %(uname -r | sed -e 's/.*vl.//')
  5. %if "%kflavor" == ""
  6. %undefine kflavor
  7. %endif
  8. %define kmod kernel-module%{?kflavor:-%{kflavor}}
  9. %define name alsa-driver
  10. %define ver 1.0.22.1
  11. %define rel 1%{?_dist_release}
  12. Summary: Advanced Linux Sound Archtecture (ALSA) Drivers
  13. Name: %{name}
  14. Version: %{ver}
  15. Release: %{rel}
  16. Source0: ftp://ftp.alsa-project.org/pub/driver/%{name}-%{version}.tar.bz2
  17. License: GPLv2
  18. Group: System Environment/Kernel
  19. URL: http://alsa-project.org/
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. BuildRequires: kernel-devel
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. %description
  25. This package contains the newest ALSA %{version} drivers.
  26. %description -l ja
  27. このパッケージには最新の ALSA ドライババージョン %{version} が
  28. 収録されています。
  29. %package -n %{kmod}-%{name}
  30. Summary: Collection of recent wireless drivers backported
  31. Version: %{ver}_%{kver}
  32. License: GPLv2
  33. Group: System Environment/Kernel
  34. Requires: kernel = %{kversion}
  35. PreReq: kernel = %{kversion}
  36. Provides: alsa-driver = %{ver}
  37. %description -n %{kmod}-%{name}
  38. This package contains the newest ALSA %{version} drivers
  39. explicitly built for kernel%{?kflavor:-%{kflavor}}-%{kversion}
  40. %description -l ja -n %{kmod}-%{name}
  41. このパッケージには、kernel%{?kflavor:-%{kflavor}}-%{kversion} 用にビルドされた
  42. 最新の ALSA ドライババージョン %{ver} が収録されています。
  43. %prep
  44. %setup -q
  45. %build
  46. %if %{build_kmod}
  47. %configure \
  48. --with-cards=all --with-redhat=auto \
  49. --with-moddir=/lib/modules/%{kversion}%{?kflavor:%{kflavor}}/updates/alsa
  50. %__make
  51. %endif
  52. %install
  53. %__rm -rf %{buildroot}
  54. %if %{build_kmod}
  55. %__make DESTDIR=%{buildroot} install-modules
  56. %endif
  57. %clean
  58. %__rm -rf %{buildroot}
  59. %post -n %{kmod}-%{name}
  60. /sbin/depmod -a -F /boot/System.map-%{kversion} %{kversion}
  61. %if %{build_kmod}
  62. %files -n %{kmod}-%{name}
  63. %defattr(-,root,root)
  64. %doc COPYING FAQ README TODO
  65. %doc CARDS-STATUS INSTALL SUPPORTED_KERNELS WARNING
  66. /lib/modules/%{kversion}%{?kflavor:%{kflavor}}/updates/alsa
  67. %endif
  68. %changelog
  69. * Wed Dec 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.22-1
  70. - new upstream release
  71. * Fri Oct 9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.21-2
  72. - kernel-module-alsa-driver now Provides: alsa-driver
  73. * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.21-1
  74. - new upstream release 1.0.21
  75. * Fri Jul 3 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.20-2
  76. - slight changes on Japanese description
  77. * Thu Jul 2 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.20-1
  78. - new upstream release 1.0.20
  79. - now alsa-driver is back as a kernel-module package
  80. (to make backporting much easier for maintenance)