source: projects/specs/branches/6/a/alsa-driver/alsa-driver-vl.spec @ 521

Revision 521, 2.8 KB checked in by daisuke, 13 years ago (diff)

import VineSeed package specs

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