]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- updated to 0.5.9b,
[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.9b
5 Release:        1
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.5
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 %define         _kernel_ver     %(grep UTS_RELEASE /usr/src/linux/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
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 -p2
43 %patch1 -p1
44
45 %build
46 cp aclocal.m4 acinclude.m4
47 aclocal
48 automake -c || :
49 autoconf
50 CPPFLAGS="-I/usr/include/ncurses"
51 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
52 %configure
53
54 %{__make} 
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/rc.d/init.d}
59
60 %{__make} install DESTDIR=$RPM_BUILD_ROOT
61
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
63
64 touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
65
66 gzip -9nf README ChangeLog
67
68 %post
69 /sbin/chkconfig --add alsasound
70 if [ -f /var/lock/subsys/alsasound ]; then
71         /etc/rc.d/init.d/alsasound restart >&2
72 else
73         echo "Run \"/etc/rc.d/init.d/alsasound start\" to start ALSA %{version} services."
74 fi
75
76 %preun
77 if [ "$1" = "0" ]; then
78         if [ -f /var/lock/subsys/alsasound ]; then
79                 /etc/rc.d/init.d/alsasound stop >&2
80         fi
81         /sbin/chkconfig --del alsasound
82 fi
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files
88 %defattr(644,root,root,755)
89 %doc {README,ChangeLog}.gz
90 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/asound.conf
91
92 %attr(755,root,root) %{_bindir}/*
93 %attr(755,root,root) %{_sbindir}/*
94
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.059369 seconds and 4 git commands to generate.