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