CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(boot-animation C)
-IF("$ENV{CFLAGS}" MATCHES "-DMICRO_ANI")
- OPTION(USE_MICRO_ANI "Use Micro Ani" ON)
-ENDIF()
-
SET(SRCS
src/boot.c
src/animation.c
INSTALL(FILES ${CMAKE_BINARY_DIR}/480x800_PowerOff.edj DESTINATION share/edje)
INSTALL(FILES ${CMAKE_BINARY_DIR}/720x1280_PowerOn.edj DESTINATION share/edje)
INSTALL(FILES ${CMAKE_BINARY_DIR}/720x1280_PowerOff.edj DESTINATION share/edje)
-IF("${ARCH}" STREQUAL "emulator")
-ADD_DEFINITIONS("-DEMULATOR_TYPE")
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/sound/SDK_poweron/poweron.wav DESTINATION share/keysound)
-ELSEIF("${ARCH}" STREQUAL "arm")
-ADD_DEFINITIONS("-DARM_TYPE")
-IF("${USE_MICRO_ANI}" STREQUAL "ON")
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/sound/B2_poweron/poweron.ogg DESTINATION share/keysound)
-ELSEIF("${USE_MICRO_ANI}" STREQUAL "OFF")
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/sound/poweron.sdk.wav DESTINATION share/keysound)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/sound/poweron.wearable.ogg DESTINATION share/keysound)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/sound/poweron.ogg DESTINATION share/keysound)
-ENDIF()
-ENDIF()
#sbs-git:slp/pkgs/b/boot-animation boot-animation 0.2 d1bbca3948e4cdb6b2f9e75f176500f452fe6a33
-%if "%{?profile}" == "wearable"
- %define micro_ani ON
-%else
- %define micro_ani OFF
-%endif
-
Name: boot-animation
-Version: 0.3.7
-Release: 7
+Version: 0.3.8
+Release: 1
Summary: Boot animation
URL: http://slp-source.sec.samsung.net
Source: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(capi-ui-efl-util)
-
+Requires: boot-animation-sound-file
+Recommends: boot-animation-sound-file-profile_common
Requires(post): /usr/bin/vconftool
%description
Shows an animation and plays a sound when the device is booted or shutdown.
+%package sound-file-profile_common
+Summary: Default Boot Sound
+Provides: boot-animation-sound-file-profile_mobile = %{version}-%{release}
+Provides: boot-animation-sound-file-profile_tv = %{version}-%{release}
+Provides: boot-animation-sound-file-profile_ivi = %{version}-%{release}
+Provides: boot-animation-sound-file = %{version}-%{release}
+Conflicts: boot-animation-sound-file-profile_wearable
+Conflicts: boot-animation-extension_emulator
+
+%description sound-file-profile_common
+Provides the default boot-up sound file
+
+%package sound-file-profile_wearable
+Summary: Boot Sound for Wearable Profile
+Provides: boot-animation-sound-file = %{version}-%{release}
+Conflicts: boot-animation-sound-file-profile_common
+Conflicts: boot-animation-extension-emulator
+
+%description sound-file-profile_wearable
+Boot-up sound file from B2 device.
+
+%package extension_emulator
+Summary: Boot Sound for SDK Emulator
+Provides: boot-animation-sound-file = %{version}-%{release}
+Conflicts: boot-animation-sound-file-profile_wearable
+Conflicts: boot-animation-sound-file-profile_common
+
+%description extension_emulator
+Boot-up sound file for SDK emulator.
+
%prep
%setup -q
#%patch0 -p1
-%build
-%ifarch %{arm}
-%define ARCH arm
-%else
-%define ARCH emulator
-%endif
-
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DUSE_MICRO_ANI=%{micro_ani} -DARCH=%{ARCH}
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%post
+%post sound-file-profile_wearable
+mv /usr/share/keysound/poweron.wearable.ogg /usr/share/keysound/poweron.ogg
+
+%preun sound-file-profile_wearable
+mv /usr/share/keysound/poweron.ogg /usr/share/keysound/poweron.wearable.ogg
+
+%post extension_emulator
+mv /usr/share/keysound/poweron.sdk.wav /usr/share/keysound/poweron.wav
+
+%preun extension_emulator
+mv /usr/share/keysound/poweron.wav /usr/share/keysound/poweron.sdk.wav
%files
%manifest boot-animation.manifest
/usr/share/edje/480x800_PowerOff.edj
/usr/share/edje/720x1280_PowerOn.edj
/usr/share/edje/720x1280_PowerOff.edj
-%if %{?ARCH} == arm
-/usr/share/keysound/poweron.ogg
-%else
-/usr/share/keysound/poweron.wav
-%endif
-%if %{?ARCH} == emulator
-%endif
/usr/share/license/%{name}
%{_bindir}/boot-animation
/usr/lib/systemd/system/boot-animation.service
/usr/lib/systemd/system/shutdown-animation.service
/usr/lib/systemd/system/boot-animation.path
/usr/lib/systemd/system/multi-user.target.wants/boot-animation.path
+
+%files sound-file-profile_common
+/usr/share/keysound/poweron.ogg
+
+%files sound-file-profile_wearable
+/usr/share/keysound/poweron.wearable.ogg
+
+%files extension_emulator
+/usr/share/keysound/poweron.sdk.wav