/[packages]/cauldron/alsa-utils/current/SPECS/alsa-utils.spec
ViewVC logotype

Annotation of /cauldron/alsa-utils/current/SPECS/alsa-utils.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 66343 - (hide annotations) (download)
Tue Mar 8 02:20:18 2011 UTC (13 years, 1 month ago) by ahmad
File size: 2760 byte(s)
- update to 1.0.24.2 (couldn't find a 1.0.24.1 tarball in upstream ftp)
- alibversion is 1.0.24.1
- fix license
- require '%{_lib}alsa >= 2:%alibversion'; the alsa-lib provides from libalsa2
  isn't versionated
- fix the file list

1 ahmad 66343 %define version 1.0.24.2
2     %define alibversion 1.0.24.1
3 ahmad 1619 %define beta 0
4     %if %beta
5     %define fname %name-%{version}%beta
6     %else
7     %define fname %name-%{version}
8     %endif
9    
10 dmorgan 39185 %define _with_systemd 0
11    
12 ahmad 1619 Summary: Advanced Linux Sound Architecture (ALSA) utilities
13     Name: alsa-utils
14     Version: %version
15     %if %beta
16     Release: %mkrel 0.%{beta}.2
17     %else
18 ahmad 66343 Release: %mkrel 1
19 ahmad 1619 %endif
20     Source: ftp://ftp.alsa-project.org/pub/utils/%fname.tar.bz2
21 dmorgan 39185 Patch0001: 0001-alsactl-systemd-and-udev-hookup.patch
22     Patch0002: 0002-alsactl-Move-asound.state-location-to-var-lib-alsa.patch
23     Patch0003: 0003-configure.in-Fix-variable-name.patch
24     Patch0004: 0004-alsactl-Add-a-with-udev-rules-dir-configure-option.patch
25 ahmad 66343 License: GPLv2
26 ahmad 1619 Group: Sound
27     Url: http://www.alsa-project.org
28    
29     BuildRequires: kernel-headers >= 2.4.0
30     BuildRequires: libalsa-devel >= %alibversion
31     BuildRequires: ncurses-devel ncursesw-devel
32     BuildRequires: xmlto
33 ahmad 66343 Requires: %{_lib}alsa >= 2:%alibversion
34 ahmad 1619 # dependancies for alsaconf:
35     Requires: pciutils
36    
37     %description
38     Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
39     with support for a large range of ISA and PCI cards. Fully compatible with
40     OSS/Lite (kernel sound drivers), but contains many enhanced features.
41    
42     This is the utilities package, which allows you to manipulate ALSA settings.
43    
44     %package -n speaker-test
45     Summary: ALSA test tool
46     Group: Sound
47     Requires: alsa-utils
48    
49     %description -n speaker-test
50     speaker-test is a tool that enables one to test his head phones.
51    
52     %package -n alsaconf
53     Summary: ALSA configuration tool
54     Group: Sound
55     Requires: alsa-utils whiptail cdialog
56    
57     %description -n alsaconf
58     Alsaconf is a tool that enables one to configure his sound card with ALSA.
59     It's often not not needed as mandriva linux will autoconfigure sound cards.
60    
61     %prep
62     %setup -q -n %fname
63 dmorgan 39185 %if %{_with_systemd}
64     %apply_patches
65     %endif
66 ahmad 1619
67     %build
68     %configure2_5x
69     make all
70    
71     %install
72     rm -rf $RPM_BUILD_ROOT
73     %makeinstall_std mkdir_p="mkdir -p"
74    
75     # move alsactl in /sbin in order to reload mixer settings on bootstrapping:
76     mkdir $RPM_BUILD_ROOT/sbin
77     mv $RPM_BUILD_ROOT/{%_sbindir,sbin}/alsactl
78     ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%_sbindir
79    
80     %find_lang alsaconf
81     %find_lang alsa-utils
82     cat alsa-utils.lang >> alsaconf.lang
83    
84     %clean
85     rm -rf $RPM_BUILD_ROOT
86    
87     %files
88     %defattr(-,root,root)
89     %doc [A-Z][A-Z]*
90     %_bindir/[a-i]*
91     %_sbindir/alsactl
92     /sbin/alsactl
93     %_mandir/man1/[a-i]*
94     %_mandir/man7/alsactl_init.7*
95     %_datadir/alsa/
96 dmorgan 39185 %if %{_with_systemd}
97     /lib/systemd/system/*.service
98     /lib/systemd/system/*/*.service
99     /lib/udev/rules.d/*.rules
100 ahmad 66343 %else
101     %exclude /lib/udev/rules.d/*.rules
102 dmorgan 39185 %endif
103 ahmad 1619
104     %files -n speaker-test
105     %_bindir/speaker-test
106     %_mandir/man1/speaker-test.*
107     %_datadir/sounds/alsa/
108    
109     %files -n alsaconf -f alsaconf.lang
110     %_sbindir/alsaconf
111     %_mandir/man8/alsaconf.*
112     %lang(fr) %_mandir/fr/man8/alsaconf.*

  ViewVC Help
Powered by ViewVC 1.1.30