summaryrefslogtreecommitdiff
path: root/packaging/mmfw-sysconf.spec
blob: 412a778c68939ea83efa02f6e4398b843a22bf45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name:       mmfw-sysconf
Summary:    Multimedia Framework system configuration package
Version:    0.1.22
Release:    3
Group:      TO_BE/FILLED_IN
License:    Apache-2.0
Source0:    %{name}-%{version}.tar.gz
Source1001: packaging/mmfw-sysconf.manifest 

%description
Multimedia Framework system configuration package

%ifarch %{arm}
%package -n mmfw-sysconf-cleansdk-target
Summary:    Multimedia Framework system configuration package for clean SDK target binary
Group:      TO_BE/FILLED_IN

%description -n mmfw-sysconf-cleansdk-target
Multimedia Framework system configuration package for clean SDK target binary

%else

%package -n mmfw-sysconf-simulator
Summary:    Multimedia Framework system configuration package for simulator
Group:      TO_BE/FILLED_IN

%description -n mmfw-sysconf-simulator
Multimedia Framework system configuration package for simulator
%endif



%prep
%setup -q 

%build
cp %{SOURCE1001} .

%install
rm -rf %{buildroot}

%ifarch %{arm}
	mkdir -p %{buildroot}/opt/etc/mmfw-sysconf
	cp -arf mmfw-sysconf-cleansdk-target/* %{buildroot}
%else
	mkdir -p %{buildroot}/opt/etc/mmfw-sysconf
	cp -arf mmfw-sysconf-simulator/* %{buildroot}
%endif

%post 

%postun 

%ifarch %{arm}
%files -n mmfw-sysconf-cleansdk-target
%manifest mmfw-sysconf.manifest
%defattr(-,root,root,-)
/etc/asound.conf
/etc/pulse/*
/usr/etc/*.ini
/usr/share/pulseaudio/alsa-mixer/paths/*.conf
/usr/share/pulseaudio/alsa-mixer/paths/*.common
/usr/share/pulseaudio/alsa-mixer/profile-sets/*.conf
%else

%files -n mmfw-sysconf-simulator
%manifest mmfw-sysconf.manifest
%defattr(-,root,root,-)
/etc/asound.conf
/etc/pulse/*
/usr/etc/*.ini
/usr/share/pulseaudio/alsa-mixer/paths/*.conf
/usr/share/pulseaudio/alsa-mixer/paths/*.common
/usr/share/pulseaudio/alsa-mixer/profile-sets/*.conf
%endif