545be5354ed76976ca8a19c07f4056b8ae47d15f
[apps/core/preloaded/quickpanel.git] / packaging / org.tizen.quickpanel.spec
1 %bcond_with wayland
2 %define __usrdir /usr/lib/systemd/user
3
4 Name: org.tizen.quickpanel
5 Summary: Quick access panel for the notifications and various kinds of services.
6 Version: 0.8.0
7 Release: 1
8 Group: Applications/Core Applications
9 License: Apache-2.0
10 Source0: %{name}-%{version}.tar.gz
11 Source102: quickpanel-system.service
12 Source104: quickpanel-system.path
13
14 %if %{with wayland}
15 Source103: org.tizen.quickpanel.manifest.3.0
16 %else
17 Source103: org.tizen.quickpanel.manifest.2.4
18 %endif
19
20 %if "%{?profile}" == "wearable"
21 ExcludeArch: %{arm} %ix86 x86_64
22 %endif
23
24 %if "%{?profile}"=="tv"
25 ExcludeArch: %{arm} %ix86 x86_64
26 %endif
27
28 BuildRequires: pkgconfig(capi-appfw-application)
29 BuildRequires: pkgconfig(capi-system-runtime-info)
30 BuildRequires: pkgconfig(capi-system-info)
31 BuildRequires: pkgconfig(capi-system-device)
32 BuildRequires: pkgconfig(capi-location-manager)
33 BuildRequires: pkgconfig(capi-network-wifi)
34 BuildRequires: pkgconfig(capi-network-bluetooth)
35 BuildRequires: pkgconfig(capi-network-tethering)
36 BuildRequires: pkgconfig(capi-network-connection)
37 BuildRequires: pkgconfig(capi-media-player)
38 BuildRequires: pkgconfig(capi-media-sound-manager)
39 BuildRequires: pkgconfig(capi-media-metadata-extractor)
40 BuildRequires: pkgconfig(capi-system-system-settings)
41 BuildRequires: pkgconfig(capi-base-utils-i18n)
42 BuildRequires: pkgconfig(capi-ui-efl-util)
43 BuildRequires: pkgconfig(tapi)
44 BuildRequires: pkgconfig(feedback)
45 BuildRequires: pkgconfig(appcore-common)
46 BuildRequires: pkgconfig(notification)
47 BuildRequires: pkgconfig(badge)
48 BuildRequires: pkgconfig(vconf)
49 BuildRequires: pkgconfig(edbus)
50 BuildRequires: pkgconfig(evas)
51 BuildRequires: pkgconfig(ecore)
52 BuildRequires: pkgconfig(edje)
53 BuildRequires: pkgconfig(icu-i18n)
54 BuildRequires: pkgconfig(dlog)
55 BuildRequires: pkgconfig(syspopup-caller)
56 BuildRequires: pkgconfig(bundle)
57 BuildRequires: pkgconfig(elementary)
58 BuildRequires: pkgconfig(syspopup-caller)
59 BuildRequires: pkgconfig(minicontrol-viewer)
60 BuildRequires: pkgconfig(minicontrol-monitor)
61 BuildRequires: pkgconfig(iniparser)
62 BuildRequires: pkgconfig(capi-appfw-package-manager)
63 BuildRequires: pkgconfig(alarm-service)
64 %if %{with wayland}
65 BuildRequires: pkgconfig(ecore-wayland)
66 %else
67 BuildRequires: pkgconfig(inputproto)
68 BuildRequires: pkgconfig(xi)
69 BuildRequires: pkgconfig(utilX)
70 BuildRequires: pkgconfig(ecore-x)
71 BuildRequires: pkgconfig(libprivilege-control)
72 %endif
73 BuildRequires: pkgconfig(voice-control-setting)
74 BuildRequires: pkgconfig(tzsh-quickpanel-service)
75 BuildRequires: gettext-tools
76 BuildRequires: cmake
77 BuildRequires: edje-tools
78 Requires(post): /usr/bin/vconftool
79
80 %description
81 Quick Panel
82
83 %prep
84 %setup -q
85
86 cp %SOURCE103 %{name}.manifest
87
88 %build
89 %if 0%{?tizen_build_binary_release_type_eng}
90 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
91 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
92 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
93 %endif
94 %if 0%{?sec_build_binary_debug_enable}
95 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
96 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
97 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
98 %endif
99
100 LDFLAGS+="-Wl,--rpath=%{name}/lib -Wl,--as-needed";
101 export LDFLAGS
102
103 %if %{with wayland}
104 export WINSYS="wayland"
105 export WAYLAND_SUPPORT=On
106 export X11_SUPPORT=Off
107 %else
108 export WAYLAND_SUPPORT=Off
109 export X11_SUPPORT=On
110 export WINSYS="x11"
111 %endif
112 %cmake . -DPKGNAME=%{name} -DWINSYS=${WINSYS}
113
114 make %{?jobs:-j%jobs}
115
116 %install
117 rm -rf %{buildroot}
118 %make_install
119
120 mkdir -p %{buildroot}%{__usrdir}/default.target.wants
121 install -m 0644 %SOURCE102 %{buildroot}%{__usrdir}/quickpanel.service
122 install -m 0644 %SOURCE104 %{buildroot}%{__usrdir}/quickpanel.path
123 ln -s ../quickpanel.path %{buildroot}%{__usrdir}/default.target.wants/
124 %post
125
126
127 %files
128 %manifest %{name}.manifest
129 %defattr(-,root,root,-)
130 %attr(755,-,-) %{_sysconfdir}/init.d/quickpanel
131 %attr(775,app,app) /opt/%{_prefix}/apps/%{name}/
132 %attr(775,app,app) /opt/%{_prefix}/apps/%{name}/data
133 /opt/%{_prefix}/apps/%{name}/data
134 %{_prefix}/apps/%{name}
135 %{_prefix}/share/packages/%{name}.xml
136 %{__usrdir}/default.target.wants/quickpanel.path
137 %{__usrdir}/quickpanel.service
138 %{__usrdir}/quickpanel.path
139 %{_prefix}/share/license/%{name}
140 %if %{with wayland}
141 # Do not install the SMACK Rule file for Tizen 3.x
142 %else
143 %{_sysconfdir}/smack/accesses.d/%{name}.efl
144 %endif