]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- 0.5.3
[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.3
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/alsa-utils-%{version}.tar.bz2
10 Source1:        alsasound
11 Patch0:         alsa-utils-DESTDIR.patch
12 URL:            http://www.alsa-project.org/
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  ncurses-devel
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  flex
18 BuildRequires:  libtool
19 BuildConflicts: alsa-lib <= 0.4.0
20 Prereq:         /sbin/depmod
21 Prereq:         /sbin/ldconfig
22 Prereq:         /sbin/chkconfig
23 ExcludeArch:    sparc
24 ExcludeArch:    sparc64
25 BuildRoot:      /tmp/%{name}-%{version}-root
26
27 %define         _sysconfdir     /etc
28 %define         _kernel_ver     %(grep UTS_RELEASE /usr/src/linux/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
29
30 %description
31 Advanced Linux Sound Architecture (ALSA) - Utils alsamixer, amixer, aplay,
32 arecord.
33
34 %description -l pl
35 Advanced Linux Sound Architecture (ALSA) - Narzêdzia alsamixer, amixer,
36 aplay, arecord.
37
38 %prep
39 %setup -q
40 %patch0 -p2
41
42 %build
43 LDFLAGS="-s"; export LDFLAGS
44 cp aclocal.m4 acinclude.m4
45 aclocal
46 automake -c || :
47 autoconf
48 CPPFLAGS="-I/usr/include/ncurses" ; export CPPFLAGS
49 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
50 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions" ; export CXXFLAGS
51 %configure
52
53 make 
54
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 \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
64
65 touch $RPM_BUILD_ROOT/etc/asound.conf
66
67 #mv $RPM_BUILD_ROOT/usr/etc/xamixer.conf $RPM_BUILD_ROOT/etc
68
69 gzip -9nf README ChangeLog \
70         $RPM_BUILD_ROOT%{_mandir}/man1/*
71
72 %post
73 /sbin/chkconfig --add alsasound
74 if test -r /var/lock/subsys/alsasound; then
75         /etc/rc.d/init.d/alsasound restart >&2
76 else
77         echo "Run \"/etc/rc.d/init.d/alsasound start\" to start ALSA %{version} services."
78 fi
79
80 %preun
81 if [ "$1" = "0" ]; then
82         /sbin/chkconfig --del alsasound
83         /etc/rc.d/init.d/alsasound stop >&2
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) /etc/asound.conf
93 #%config(noreplace) %verify(not md5 size mtime) /etc/xamixer.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.093156 seconds and 4 git commands to generate.