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