]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
ec6c418814ec88524117eb16c0250f7cd656768e
[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:        5
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 rm -f missing
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 *.gz
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/*
96
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*
This page took 0.158275 seconds and 3 git commands to generate.