/[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 66685 - (hide annotations) (download)
Tue Mar 8 21:52:29 2011 UTC (13 years, 1 month ago) by ahmad
File size: 2824 byte(s)
- add one more _with_system switch to fix build
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 66652 Requires: %{_lib}alsa2 >= 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 ahmad 66685 %configure2_5x \
69     %if !%{_with_systemd}
70     --without-systemdsystemunitdir
71     %endif
72    
73 ahmad 1619 make all
74    
75     %install
76     rm -rf $RPM_BUILD_ROOT
77     %makeinstall_std mkdir_p="mkdir -p"
78    
79     # move alsactl in /sbin in order to reload mixer settings on bootstrapping:
80     mkdir $RPM_BUILD_ROOT/sbin
81     mv $RPM_BUILD_ROOT/{%_sbindir,sbin}/alsactl
82     ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%_sbindir
83    
84     %find_lang alsaconf
85     %find_lang alsa-utils
86     cat alsa-utils.lang >> alsaconf.lang
87    
88     %clean
89     rm -rf $RPM_BUILD_ROOT
90    
91     %files
92     %defattr(-,root,root)
93     %doc [A-Z][A-Z]*
94     %_bindir/[a-i]*
95     %_sbindir/alsactl
96     /sbin/alsactl
97     %_mandir/man1/[a-i]*
98     %_mandir/man7/alsactl_init.7*
99     %_datadir/alsa/
100 dmorgan 39185 %if %{_with_systemd}
101     /lib/systemd/system/*.service
102     /lib/systemd/system/*/*.service
103     /lib/udev/rules.d/*.rules
104 ahmad 66343 %else
105     %exclude /lib/udev/rules.d/*.rules
106 dmorgan 39185 %endif
107 ahmad 1619
108     %files -n speaker-test
109     %_bindir/speaker-test
110     %_mandir/man1/speaker-test.*
111     %_datadir/sounds/alsa/
112    
113     %files -n alsaconf -f alsaconf.lang
114     %_sbindir/alsaconf
115     %_mandir/man8/alsaconf.*
116     %lang(fr) %_mandir/fr/man8/alsaconf.*

  ViewVC Help
Powered by ViewVC 1.1.30