1 Summary: Advanced Linux Sound Architecture (ALSA) - Utils
2 Summary(pl): Advanced Linux Sound Architecture (ALSA) - Narzêdzia
7 Group: Applications/Sound
8 Group(de): Applikationen/Laut
9 Group(pl): Aplikacje/D¼wiêk
10 Source0: ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
12 Patch0: %{name}-DESTDIR.patch
13 Patch1: %{name}-LDFLAGS.patch
14 URL: http://www.alsa-project.org/
15 BuildRequires: libstdc++-devel
16 BuildRequires: ncurses-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRequires: alsa-lib-devel >= 0.5.10
23 Prereq: /sbin/ldconfig
24 Prereq: /sbin/chkconfig
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _sysconfdir /etc
32 Advanced Linux Sound Architecture (ALSA) - Utils alsamixer, amixer,
36 Advanced Linux Sound Architecture (ALSA) - Narzêdzia alsamixer,
37 amixer, aplay, arecord.
49 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
50 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
59 %{__make} install DESTDIR=$RPM_BUILD_ROOT
61 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
63 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
64 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
66 touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
68 gzip -9nf README ChangeLog
71 /sbin/chkconfig --add alsasound
72 if [ -f /var/lock/subsys/alsasound ]; then
73 /etc/rc.d/init.d/alsasound restart >&2
75 echo "Run \"/etc/rc.d/init.d/alsasound start\" to start ALSA %{version} services."
79 if [ "$1" = "0" ]; then
80 if [ -f /var/lock/subsys/alsasound ]; then
81 /etc/rc.d/init.d/alsasound stop >&2
83 /sbin/chkconfig --del alsasound
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/asound.conf
93 %attr(755,root,root) %{_bindir}/*
94 %attr(755,root,root) %{_sbindir}/*
95 %attr(754,root,root) /etc/rc.d/init.d/*
97 %{_mandir}/man1/alsactl.1*
98 %{_mandir}/man1/alsamixer.1*
99 %{_mandir}/man1/amixer.1*
100 %{_mandir}/man1/aplay.1*
101 %{_mandir}/man1/arecord.1*