Initial Import
[profile/ivi/alsa-utils.git] / packaging / alsa-utils.spec
1 Name:       alsa-utils
2 Summary:    Advanced Linux Sound Architecture (ALSA) utilities
3 Version:    1.0.25
4 Release:    1
5 Group:      Applications/Multimedia
6 License:    GPLv2+
7 URL:        http://www.alsa-project.org/
8 Source0:    ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
9 Source1:    ivi-soundcard
10 Source2:    alsa-init.service
11 Source3:    alsa-restore.service
12 Source4:    alsa-store.service
13 Source5:    soundcard-init
14 BuildRequires:  libasound-devel
15 BuildRequires:  pkgconfig(ncurses)
16
17
18 %description
19 This package contains command line utilities for the Advanced Linux Sound
20 Architecture (ALSA).
21
22
23
24 %package doc
25 Summary:    Man pages for alsa-utils
26 Group:      Documentation
27 Requires:   %{name} = %{version}-%{release}
28
29 %description doc
30 Man pages for alsa-utils
31
32
33 %package -n soundcard-ivi
34 Summary:    Initialize soundcard on IVI
35 Group:      Application/Multimedia
36 Requires:   alsa-utils
37
38 %description -n soundcard-ivi
39 Initialize soundcard on IVI
40
41 %prep
42 %setup -q -n %{name}-%{version}
43
44
45 %build
46
47 %configure --disable-static \
48     --disable-nls \
49     --disable-xmlto \
50     --disable-alsatest
51
52 make %{?jobs:-j%jobs}
53
54 exit
55
56 %install
57 rm -rf %{buildroot}
58 %make_install
59
60 install -m 644 %{SOURCE1}         %{buildroot}/usr/share/alsa/init/
61 install -m 755 %{SOURCE5}         %{buildroot}/usr/sbin
62
63 mkdir -p  %{buildroot}/%{_lib}/systemd/system
64 install -m 644 %{SOURCE2}         %{buildroot}/%{_lib}/systemd/system/alsa-init.service
65 mkdir -p  %{buildroot}/%{_lib}/systemd/system/multi-user.target.wants
66 ln -s  ../alsa-init.service  %{buildroot}/%{_lib}/systemd/system/multi-user.target.wants/alsa-init.service
67
68 install -m 644 %{SOURCE3}         %{buildroot}/%{_lib}/systemd/system/alsa-restore.service
69 mkdir -p  %{buildroot}/%{_lib}/systemd/system/basic.target.wants
70 ln -s  ../alsa-restore.service  %{buildroot}/%{_lib}/systemd/system/basic.target.wants/alsa-restore.service
71
72 install -m 644 %{SOURCE4}         %{buildroot}/%{_lib}/systemd/system/alsa-store.service
73 mkdir -p  %{buildroot}/%{_lib}/systemd/system/shutdown.target.wants
74 ln -s  ../alsa-store.service  %{buildroot}/%{_lib}/systemd/system/shutdown.target.wants/alsa-store.service
75
76 %remove_docs
77
78 %files
79 %{_bindir}/*
80 %{_sbindir}/*
81 %{_datadir}/alsa/*
82 %{_datadir}/sounds/*
83 /lib/udev/rules.d/90-alsa-restore.rules
84
85
86 %files -n soundcard-ivi
87 /usr/share/alsa/init/ivi-soundcard
88 /usr/sbin/soundcard-init
89 /lib/systemd/system/alsa-init.service
90 /lib/systemd/system/alsa-restore.service
91 /lib/systemd/system/alsa-store.service
92 /lib/systemd/system/multi-user.target.wants/alsa-init.service
93 /lib/systemd/system/basic.target.wants/alsa-restore.service
94 /lib/systemd/system/shutdown.target.wants/alsa-store.service