]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- Release 6.
[packages/alsa-utils.git] / alsa-utils.spec
1 Summary:        Advanced Linux Sound Architecture (ALSA) - Utils
2 Summary(es):    Utilitarios para ALSA (Advanced Linux Sound Architecture)
3 Summary(pl):    Advanced Linux Sound Architecture (ALSA) - Narzêdzia
4 Summary(pt_BR): Utilitários para o ALSA (Advanced Linux Sound Architecture)
5 Name:           alsa-utils
6 Version:        0.5.10
7 Release:        6
8 License:        GPL
9 Group:          Applications/Sound
10 Group(de):      Applikationen/Laut
11 Group(es):      Aplicaciones/Sonido
12 Group(pl):      Aplikacje/D¼wiêk
13 Group(pt_BR):   Aplicações/Som
14 Source0:        ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
15 Source1:        alsasound
16 Source2:        alsa-oss-pcm
17 Patch0:         %{name}-DESTDIR.patch
18 Patch1:         %{name}-LDFLAGS.patch
19 URL:            http://www.alsa-project.org/
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  ncurses-devel
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  flex
25 BuildRequires:  libtool
26 BuildRequires:  alsa-lib-devel >= 0.5.10
27 Prereq:         awk
28 Prereq:         /sbin/depmod
29 Prereq:         /sbin/ldconfig
30 Prereq:         /sbin/chkconfig
31 ExcludeArch:    sparc
32 ExcludeArch:    sparc64
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _sysconfdir     /etc
36
37 %description
38 Advanced Linux Sound Architecture (ALSA) - Utils alsamixer, amixer,
39 aplay, arecord.
40
41 %description -l es
42 Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
43 para Linux.
44
45 %description -l pl
46 Advanced Linux Sound Architecture (ALSA) - Narzêdzia alsamixer,
47 amixer, aplay, arecord.
48
49 %description -l pt_BR
50 Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56
57 %build
58 rm -f missing
59 aclocal
60 autoconf
61 automake -a -c
62 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
63 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
64 %configure
65
66 %{__make} 
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
71
72 %{__make} install DESTDIR=$RPM_BUILD_ROOT
73
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
75 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig
76
77 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
78 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
79
80 touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
81
82 gzip -9nf README ChangeLog
83
84 %post
85 /sbin/chkconfig --add alsasound
86 if [ -f /var/lock/subsys/alsasound ]; then
87         /etc/rc.d/init.d/alsasound restart >&2
88 else
89         echo "Run \"/etc/rc.d/init.d/alsasound start\" to start ALSA %{version} services."
90 fi
91
92 %preun
93 if [ "$1" = "0" ]; then
94         if [ -f /var/lock/subsys/alsasound ]; then
95                 /etc/rc.d/init.d/alsasound stop >&2
96         fi
97         /sbin/chkconfig --del alsasound
98 fi
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files
104 %defattr(644,root,root,755)
105 %doc *.gz
106 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/asound.conf
107 %attr(755,root,root) %{_bindir}/*
108 %attr(755,root,root) %{_sbindir}/*
109 %attr(754,root,root) /etc/rc.d/init.d/*
110 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
111
112 %{_mandir}/man1/alsactl.1*
113 %{_mandir}/man1/alsamixer.1*
114 %{_mandir}/man1/amixer.1*
115 %{_mandir}/man1/aplay.1*
116 %{_mandir}/man1/arecord.1*
This page took 0.274089 seconds and 4 git commands to generate.