]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils.spec
- s-/usr/bin-%{_bindir}-
[packages/alsa-utils.git] / alsa-utils.spec
1 %define         ver      0.3.0
2 %define         patchlvl pre3
3
4 Summary:     Advanced Linux Sound Architecture (ALSA) - Utils
5 Name:        alsa-utils
6 Version:     %{ver}_%{patchlvl}
7 Release:     2d
8 Copyright:   GPL
9 Group:       Applications/Sound
10 Group(pl):   Aplikacje/D¼wiêk
11 Vendor:      Jaroslav Kysela <perex@jcu.cz>
12 Source0:     ftp://alsa.jcu.cz/pub/utils/%{name}-%{ver}-%{patchlvl}.tar.gz 
13 Source1:     alsasound
14 BuildRoot:   /var/tmp/buildroot-%{name}-%{version}
15 URL:         http://alsa.jcu.cz
16 Requires:    alsa-driver
17 Requires:    alsa-lib
18 Patch0:      %{name}-noroot.patch
19 Patch1:      %{name}-opt.patch
20 Summary(pl): Advanced Linux Sound Architecture (ALSA) - Narzêdzia
21
22 %description
23 Advanced Linux Sound Architecture (ALSA) - Utils
24 alsamixer, amixer, aplay, arecord
25
26 %description -l pl
27 Advanced Linux Sound Architecture (ALSA) - Narzêdzia
28 alsamixer, amixer, aplay, arecord
29
30 %prep
31 %setup  -q -n %{name}-%{ver}-%{patchlvl}
32 %patch  -p1
33 %patch1 -p1
34
35 %build
36 ./configure %{_target} --prefix=/usr
37 OPT="$RPM_OPT_FLAGS" make
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 install -d $RPM_BUILD_ROOT/{usr/{bin,man/man1},etc/rc.d/init.d}
43 make prefix=$RPM_BUILD_ROOT/usr install
44 rm $RPM_BUILD_ROOT%{_mandir}/man1/aplay.1
45 echo ".so arecord.1" > $RPM_BUILD_ROOT%{_mandir}/man1/aplay.1
46 strip $RPM_BUILD_ROOT/usr/{s,}bin/*
47
48 install %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/
49 touch $RPM_BUILD_ROOT/etc/asound.conf
50
51 gzip -9nf README ChangeLog amixer/README.first $RPM_BUILD_ROOT%{_mandir}/man1/*
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post
57 /sbin/chkconfig --add alsasound
58
59 %preun
60 if [ "$1" = 0 ] ; then
61     /sbin/chkconfig --del alsasound
62 fi
63     
64 %files
65 %defattr(644,root,root,755)
66 %doc README.gz ChangeLog.gz amixer/README.first.gz
67
68 %attr(755,root,root) %{_bindir}/*
69 %attr(755,root,root) /usr/sbin/*
70 %{_mandir}/man1/*
71 %attr(750,root,root) /etc/rc.d/init.d/*
72 %attr(600,root,root) %config(noreplace) /etc/asound.conf
73
74 %changelog
75 * Sat Feb 13 1999 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
76 [0.3.0-pre3-1d]
77 - /etc/rc.d/init.d/alsasound is now part of this package
78 - gzipping instead bzip2ing
79 - 755 instead 711 on binaries
80
81 * Wed Jan 27 1999 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
82 [0.3.0-pre3-1d]
83 - new upstream release
84
85 * Tue Jan 05 1999 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
86 - alsactl was missing !
87 - added optimalization
88
89 * Mon Sep 28 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
90 - changed "-" to "_" (rpm doesn't like "-" in Name: or Version:)
91
92 * Sun Sep 27 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
93 - rewrited spec file
94
95 * Mon May 28 1998 Helge Jensen <slog@slog.dk>
96 - Made SPEC file
This page took 0.042376 seconds and 4 git commands to generate.