]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- updated to 0.5.9a.
[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.9a
5 Release:        1
6 License:        GPL
7 Group:          Applications/Sound
8 Group(pl):      Aplikacje/D¼wiêk
9 Source0:        ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
10 Source1:        alsasound
11 Patch0:         %{name}-DESTDIR.patch
12 Patch1:         %{name}-LDFLAGS.patch
13 URL:            http://www.alsa-project.org/
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  ncurses-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  flex
19 BuildRequires:  libtool
20 BuildRequires:  alsa-lib-devel >= 0.5.5
21 Prereq:         /sbin/depmod
22 Prereq:         /sbin/ldconfig
23 Prereq:         /sbin/chkconfig
24 ExcludeArch:    sparc
25 ExcludeArch:    sparc64
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _sysconfdir     /etc
29 %define         _kernel_ver     %(grep UTS_RELEASE /usr/src/linux/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
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 -p2
42 %patch1 -p1
43
44 %build
45 LDFLAGS="-s"; export LDFLAGS
46 cp aclocal.m4 acinclude.m4
47 aclocal
48 automake -c || :
49 autoconf
50 CPPFLAGS="-I/usr/include/ncurses" ; export CPPFLAGS
51 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
52 LDFLAGS="-s"
53 export CPPFLAGS CXXFLAGS LDFLAGS
54 %configure
55
56 %{__make} 
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/rc.d/init.d}
61
62 %{__make} install DESTDIR=$RPM_BUILD_ROOT
63
64 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
65
66 touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
67
68 gzip -9nf README ChangeLog \
69         $RPM_BUILD_ROOT%{_mandir}/man1/*
70
71 %post
72 /sbin/chkconfig --add alsasound
73 if [ -f /var/lock/subsys/alsasound ]; then
74         /etc/rc.d/init.d/alsasound restart >&2
75 else
76         echo "Run \"/etc/rc.d/init.d/alsasound start\" to start ALSA %{version} services."
77 fi
78
79 %preun
80 if [ "$1" = "0" ]; then
81         if [ -f /var/lock/subsys/alsasound ]; then
82                 /etc/rc.d/init.d/alsasound stop >&2
83         fi
84         /sbin/chkconfig --del alsasound
85 fi
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc {README,ChangeLog}.gz
93 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/asound.conf
94
95 %attr(755,root,root) %{_bindir}/*
96 %attr(755,root,root) %{_sbindir}/*
97
98 %attr(754,root,root) /etc/rc.d/init.d/*
99
100 %{_mandir}/man1/alsactl.1*
101 %{_mandir}/man1/alsamixer.1*
102 %{_mandir}/man1/amixer.1*
103 %{_mandir}/man1/aplay.1*
104 %{_mandir}/man1/arecord.1*
This page took 0.085603 seconds and 4 git commands to generate.