]>
Commit | Line | Data |
---|---|---|
eff594b8 | 1 | Summary: udev rules and scripts for Advanced Linux Sound Architecture |
d452c441 | 2 | Summary(pl.UTF-8): Reguły i skrypty udev dla Advanced Linux Sound Architecture |
eff594b8 PZ |
3 | Name: alsa-udev |
4 | Version: 0.1 | |
5 | Release: 0.1 | |
6 | License: GPL | |
7 | Group: Applications/Sound | |
8 | Source0: %{name}.rules | |
9 | Source1: %{name}.sh | |
10 | Source2: %{name}.conf | |
11 | Source3: %{name}.init | |
12 | URL: http://www.alsa-project.org/ | |
13 | Requires(post,preun): /sbin/chkconfig | |
14 | Requires: awk | |
15 | Requires: udev >= 075 | |
16 | Obsoletes: alsaconf | |
17 | Obsoletes: alsa-init-tools | |
18 | Obsoletes: alsa-utils-init | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | udev rules and scripts for Advanced Linux Sound Architecture. | |
23 | ||
d452c441 JR |
24 | %description -l pl.UTF-8 |
25 | Reguły i skrypty udev dla Advanced Linux Sound Architecture. | |
eff594b8 PZ |
26 | |
27 | %prep | |
f9077ac1 | 28 | |
eff594b8 PZ |
29 | %install |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | ||
32 | install -D %{SOURCE0} $RPM_BUILD_ROOT/etc/udev/rules.d/alsa.rules | |
33 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/udev/scripts/alsa.sh | |
34 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa_udev | |
35 | install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsa-udev | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %post | |
41 | /sbin/chkconfig --add alsa-udev | |
42 | ||
43 | %preun | |
44 | if [ "$1" = "0" ]; then | |
45 | /sbin/chkconfig --del alsa-udev | |
46 | fi | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %attr(754,root,root) /etc/rc.d/init.d/* | |
51 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/* | |
52 | /etc/udev/rules.d/alsa.rules | |
53 | %attr(754,root,root) /etc/udev/scripts/alsa.sh |