]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
typo
[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.8
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:         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 BuildRequires:  alsa-lib >= 0.5.5
20 Prereq:         /sbin/depmod
21 Prereq:         /sbin/ldconfig
22 Prereq:         /sbin/chkconfig
23 ExcludeArch:    sparc
24 ExcludeArch:    sparc64
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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,
32 aplay, arecord.
33
34 %description -l pl
35 Advanced Linux Sound Architecture (ALSA) - Narzêdzia alsamixer,
36 amixer, 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 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/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 touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
64
65 gzip -9nf README ChangeLog \
66         $RPM_BUILD_ROOT%{_mandir}/man1/*
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.073074 seconds and 3 git commands to generate.