]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- release 4.
[packages/alsa-utils.git] / alsa-utils.spec
1 Summary:        Advanced Linux Sound Architecture (ALSA) - Utils
2 Summary(pl):    Advanced Linux Sound Architecture (ALSA) - Narzêdzia
3 Name:           alsa-utils
4 Version:        0.5.10
5 Release:        4
6 License:        GPL
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
11 Source1:        alsasound
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
19 BuildRequires:  flex
20 BuildRequires:  libtool
21 BuildRequires:  alsa-lib-devel >= 0.5.10
22 Prereq:         /sbin/depmod
23 Prereq:         /sbin/ldconfig
24 Prereq:         /sbin/chkconfig
25 ExcludeArch:    sparc
26 ExcludeArch:    sparc64
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _sysconfdir     /etc
30
31 %description
32 Advanced Linux Sound Architecture (ALSA) - Utils alsamixer, amixer,
33 aplay, arecord.
34
35 %description -l pl
36 Advanced Linux Sound Architecture (ALSA) - Narzêdzia alsamixer,
37 amixer, aplay, arecord.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42 %patch1 -p1
43
44 %build
45 aclocal
46 autoconf
47 automake -a -c
48 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
49 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
50 %configure
51
52 %{__make} 
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
57
58 %{__make} install DESTDIR=$RPM_BUILD_ROOT
59
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
61
62 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
63 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
64
65 touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
66
67 gzip -9nf README ChangeLog
68
69 %post
70 /sbin/chkconfig --add alsasound
71 if [ -f /var/lock/subsys/alsasound ]; then
72         /etc/rc.d/init.d/alsasound restart >&2
73 else
74         echo "Run \"/etc/rc.d/init.d/alsasound start\" to start ALSA %{version} services."
75 fi
76
77 %preun
78 if [ "$1" = "0" ]; then
79         if [ -f /var/lock/subsys/alsasound ]; then
80                 /etc/rc.d/init.d/alsasound stop >&2
81         fi
82         /sbin/chkconfig --del alsasound
83 fi
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc {README,ChangeLog}.gz
91 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/asound.conf
92
93 %attr(755,root,root) %{_bindir}/*
94 %attr(755,root,root) %{_sbindir}/*
95
96 %attr(754,root,root) /etc/rc.d/init.d/*
97
98 %{_mandir}/man1/alsactl.1*
99 %{_mandir}/man1/alsamixer.1*
100 %{_mandir}/man1/amixer.1*
101 %{_mandir}/man1/aplay.1*
102 %{_mandir}/man1/arecord.1*
This page took 0.124179 seconds and 4 git commands to generate.