]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
upgreaded to 0.3.1
[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.3.1
5 Release:        1
6 Copyright:      GPL
7 Group:          Applications/Sound
8 Group(pl):      Aplikacje/D¼wiêk
9 Source0:        ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.gz 
10 Source1:        alsasound
11 Patch0:         alsa-utils-DESTDIR.patch
12 Patch1:         alsa-utils-xamixer.patch
13 BuildPrereq:    alsa-driver-devel
14 BuildPrereq:    alsa-lib-devel
15 BuildPrereq:    libstdc++-devel
16 BuildPrereq:    ncurses-devel
17 BuildPrereq:    gtk+-devel
18 BuildPrereq:    XFree86-libs
19 BuildPrereq:    glib-devel
20 Requires:       alsa-driver
21 Prereq:         /sbin/chkconfig
22 BuildRoot:      /tmp/%{name}-%{version}-root
23
24 %description
25 Advanced Linux Sound Architecture (ALSA) - Utils
26 alsamixer, amixer, aplay, arecord
27
28 %description -l pl
29 Advanced Linux Sound Architecture (ALSA) - Narzêdzia
30 alsamixer, amixer, aplay, arecord
31
32 %prep
33 %setup  -q
34 %patch0 -p1
35 %patch1 -p1
36
37 %build
38 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses" ./configure %{_target_platform} \
39         --prefix=%{_prefix} \
40         --mandir=%{_mandir}
41
42 make 
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/rc.d/init.d}
47
48 make install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
52
53 touch $RPM_BUILD_ROOT/etc/asound.conf
54
55 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
56 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
57 mv $RPM_BUILD_ROOT/usr/etc/xamixer.conf $RPM_BUILD_ROOT/etc
58
59 gzip -9nf README ChangeLog \
60         $RPM_BUILD_ROOT%{_mandir}/man1/*
61
62 %post
63 /sbin/chkconfig --add alsasound
64 if test -r /var/run/alsasound.pid; then
65         /etc/rc.d/init.d/alsasound stop >&2
66         /etc/rc.d/init.d/alsasound start >&2
67 else
68         echo "Run \"/etc/rc.d/init.d/alsasound start\" to start alsasound daemon."
69 fi
70
71 %preun
72 if [ "$1" = "0" ]; then
73         /sbin/chkconfig --del alsasound
74         /etc/rc.d/init.d/alsasound stop >&2
75 fi
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc {README,ChangeLog}.gz
83 %attr(755,root,root) %{_bindir}/*
84 %attr(755,root,root) %{_sbindir}/*
85
86 %{_mandir}/man1/*
87
88 %attr(754,root,root) /etc/rc.d/init.d/*
89 %attr(644,root,root) %config /etc/asound.conf
90 %attr(644,root,root) %config /etc/xamixer.conf
91
92 %changelog
93 * Sat Jun 05 1999 Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
94 - upgreaded to 0.3.1
95 - few fixes
96
97 * Tue May 25 1999 Piotr Czerwiñski <pius@pld.org.pl> 
98   [0.3.0pre3-3]
99 - package is FHS 2.0 compliant,
100 - based on spec file made by Helge Jensen <slog@slog.dk>,
101 - rewritten for PLD use by me and Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>,
102 - pl translation by Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>.
This page took 0.1006 seconds and 4 git commands to generate.