%bcond_with wayland
%define __usrdir /usr/lib/systemd/user
+%define alias org.tizen.quickpanel
-Name: org.tizen.quickpanel
+Name: org.tizen.quickpanel-profile_mobile
Summary: Quick access panel for the notifications and various kinds of services.
Version: 0.8.0
Release: 1
Group: Applications/Core Applications
License: Flora-1.1
+Provides: org.tizen.quickpanel = %{version}-%{release}
Source0: %{name}-%{version}.tar.gz
Source103: org.tizen.quickpanel.manifest
-%if "%{?profile}" == "wearable"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
-%if "%{?profile}"=="tv"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-system-runtime-info)
BuildRequires: pkgconfig(capi-system-info)
%prep
%setup -q
-cp %SOURCE103 %{name}.manifest
+cp %SOURCE103 %{alias}.manifest
%build
%if 0%{?sec_build_binary_debug_enable}
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
%endif
-LDFLAGS+="-Wl,--rpath=%{name}/lib -Wl,--as-needed";
+LDFLAGS+="-Wl,--rpath=%{alias}/lib -Wl,--as-needed";
export LDFLAGS
export WINSYS="wayland"
export WAYLAND_SUPPORT=On
export X11_SUPPORT=Off
-%cmake . -DPKGNAME=%{name} -DWINSYS=${WINSYS}
+%cmake . -DPKGNAME=%{alias} -DWINSYS=${WINSYS}
make %{?jobs:-j%jobs}
%make_install
%define tizen_sign 1
-%define tizen_sign_base /usr/apps/%{name}
+%define tizen_sign_base /usr/apps/%{alias}
%define tizen_sign_level platform
%define tizen_author_sign 1
%define tizen_dist_sign 1
%post
%files
-%manifest %{name}.manifest
+%manifest %{alias}.manifest
%defattr(-,root,root,-)
#%attr(755,-,-) %{_sysconfdir}/init.d/quickpanel
-%{_prefix}/apps/%{name}
-%{_prefix}/share/packages/%{name}.xml
-%{_prefix}/share/license/%{name}
-/usr/apps/%{name}/author-signature.xml
-/usr/apps/%{name}/signature1.xml
+%{_prefix}/apps/%{alias}
+%{_prefix}/share/packages/%{alias}.xml
+%{_prefix}/share/license/%{alias}
+/usr/apps/%{alias}/author-signature.xml
+/usr/apps/%{alias}/signature1.xml