/[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 195141 - (hide annotations) (download)
Thu Jan 12 01:32:44 2012 UTC (12 years, 3 months ago) by dmorgan
File size: 3367 byte(s)
SILENT: Cosmetics
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     Summary: Advanced Linux Sound Architecture (ALSA) utilities
11     Name: alsa-utils
12     Version: %version
13     %if %beta
14     Release: %mkrel 0.%{beta}.2
15     %else
16 colin 144549 Release: %mkrel 5
17 ahmad 1619 %endif
18     Source: ftp://ftp.alsa-project.org/pub/utils/%fname.tar.bz2
19 ahmad 66343 License: GPLv2
20 ahmad 1619 Group: Sound
21     Url: http://www.alsa-project.org
22    
23     BuildRequires: kernel-headers >= 2.4.0
24     BuildRequires: libalsa-devel >= %alibversion
25     BuildRequires: ncurses-devel ncursesw-devel
26     BuildRequires: xmlto
27 colin 144549 BuildRequires: systemd-units
28 ahmad 66652 Requires: %{_lib}alsa2 >= 2:%alibversion
29 ahmad 1619 # dependancies for alsaconf:
30     Requires: pciutils
31 colin 144549 Conflicts: sound-scripts < 0.61-2
32 ahmad 1619
33     %description
34     Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
35     with support for a large range of ISA and PCI cards. Fully compatible with
36     OSS/Lite (kernel sound drivers), but contains many enhanced features.
37    
38     This is the utilities package, which allows you to manipulate ALSA settings.
39    
40     %package -n speaker-test
41     Summary: ALSA test tool
42     Group: Sound
43     Requires: alsa-utils
44    
45     %description -n speaker-test
46     speaker-test is a tool that enables one to test his head phones.
47    
48     %package -n alsaconf
49     Summary: ALSA configuration tool
50     Group: Sound
51     Requires: alsa-utils whiptail cdialog
52    
53     %description -n alsaconf
54     Alsaconf is a tool that enables one to configure his sound card with ALSA.
55 ahmad 99993 It's often not not needed as %{_vendor} will autoconfigure sound cards.
56 ahmad 1619
57     %prep
58     %setup -q -n %fname
59    
60     %build
61 colin 144549 %configure2_5x
62 ahmad 66685
63 ahmad 1619 make all
64    
65     %install
66     %makeinstall_std mkdir_p="mkdir -p"
67    
68     # move alsactl in /sbin in order to reload mixer settings on bootstrapping:
69 colin 144549 mkdir %{buildroot}/sbin
70     mv %{buildroot}/{%_sbindir,sbin}/alsactl
71     ln -s ../../sbin/alsactl %{buildroot}/%_sbindir
72 ahmad 1619
73     %find_lang alsaconf
74     %find_lang alsa-utils
75     cat alsa-utils.lang >> alsaconf.lang
76    
77 ahmad 80892 install -d %{buildroot}%{_localstatedir}/lib/alsa/
78     touch %{buildroot}%{_localstatedir}/lib/alsa/asound.state
79    
80 colin 144549 # (cg) Create a couple dummy systemd units to override the sound-scripts sysvinit scripts.
81     cat >%{buildroot}/lib/systemd/system/sound.service <<EOF
82     [Unit]
83     Description=Dummy service to override sysvinit version.
84     DefaultDependencies=no
85     After=sysinit.target
86     Before=multi-user.target
87 ahmad 80923
88 colin 144549 [Service]
89     Type=oneshot
90     ExecStart=/bin/true
91     StandardOutput=syslog
92    
93     [Install]
94     WantedBy=multi-user.target
95     EOF
96     cp %{buildroot}/lib/systemd/system/sound.service %{buildroot}/lib/systemd/system/alsa.service
97    
98    
99    
100 ahmad 80892 %post
101     if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
102     mv /etc/asound.state /var/lib/alsa/asound.state
103     fi
104    
105 ahmad 1619 %files
106     %doc [A-Z][A-Z]*
107 dmorgan 125307 /lib/udev/rules.d/90-alsa-restore.rules
108 colin 144549 /lib/systemd/system/sound.service
109     /lib/systemd/system/alsa.service
110     /lib/systemd/system/alsa-restore.service
111     /lib/systemd/system/alsa-store.service
112     /lib/systemd/system/basic.target.wants/alsa-restore.service
113     /lib/systemd/system/shutdown.target.wants/alsa-store.service
114 ahmad 1619 %_bindir/[a-i]*
115     %_sbindir/alsactl
116     /sbin/alsactl
117     %_mandir/man1/[a-i]*
118     %_mandir/man7/alsactl_init.7*
119     %_datadir/alsa/
120 ahmad 80892 %{_localstatedir}/lib/alsa/
121     %ghost %{_localstatedir}/lib/alsa/asound.state
122 ahmad 1619
123     %files -n speaker-test
124     %_bindir/speaker-test
125     %_mandir/man1/speaker-test.*
126     %_datadir/sounds/alsa/
127    
128     %files -n alsaconf -f alsaconf.lang
129     %_sbindir/alsaconf
130     %_mandir/man8/alsaconf.*
131     %lang(fr) %_mandir/fr/man8/alsaconf.*

  ViewVC Help
Powered by ViewVC 1.1.30