Fix dependencies issue for 32 bits arch build
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Wed, 22 Jan 2014 11:29:41 +0000 (12:29 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Wed, 22 Jan 2014 11:32:13 +0000 (12:32 +0100)
Do not include alsamixer binaries for 32 Arch build.

This binaries are built for x86_64 arch

Change-Id: I04ae99269c311372f14ec4ba04b2e3f8c738cff1
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
packaging/desktop-skin.spec

index 5aa352b..44bc78c 100644 (file)
@@ -4,7 +4,7 @@ Name:           desktop-skin
 Summary:       Provides desktop-skin.
 Version:       2.0
 Group:                 Applications
-License:        GPL-2.0+
+License:    GPL-2.0+
 Release:       1
 
 
@@ -21,11 +21,13 @@ Provides desktop-skin.
 %build
 
 %install
-mkdir -p %{buildroot}%{_libdir}/alsa
-install -m 644 Sound/asound.state %{buildroot}%{_libdir}/alsa
 
 mkdir -p %{buildroot}%{_bindir}
+%ifarch == x86_64
+mkdir -p %{buildroot}%{_libdir}/alsa
+install -m 644 Sound/asound.state %{buildroot}%{_libdir}/alsa
 install -m 755 Sound/alsamixer %{buildroot}%{_bindir}
+%endif
 
 install -m 755 Script/launch_cam.sh %{buildroot}%{_bindir}
 install -m 755 Script/launch_video.sh %{buildroot}%{_bindir}
@@ -50,8 +52,10 @@ install -m 644 weston/weston.ini %{buildroot}%{_sysconfdir}/xdg/weston
 chown -R app:app %{USERHOME}
 
 %files
+%ifarch == x86_64
 %{_libdir}/alsa/asound.state
 %{_bindir}/alsamixer
+%endif
 
 %{_bindir}/launch_cam.sh
 %{_bindir}/launch_video.sh