4 %define CHECK_ZIGBEE_PRIVILEGE False
7 Version: %{major}.%{minor}.%{patchlevel}
10 Summary: ZigBee Daemon
12 Source0: %{name}-%{version}.tar.gz
13 Source1: org.tizen.zigbee.service
16 BuildRequires: pkgconfig(dlog)
17 BuildRequires: pkgconfig(gio-2.0)
18 BuildRequires: pkgconfig(gio-unix-2.0)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: pkgconfig(vconf)
23 Description: ZigBee Daemon
25 %package -n zigbee-lib
26 Summary: ZigBee library
27 Group: System/Libraries
28 BuildRequires: pkgconfig(glib-2.0)
29 BuildRequires: pkgconfig(dlog)
31 %description -n zigbee-lib
34 %package -n zigbee-lib-devel
35 Summary: ZigBee library (devel)
36 Group: System/Libraries
37 Requires: %{name} = %{version}
39 %description -n zigbee-lib-devel
40 ZigBee library (devel)
47 %if %{CHECK_ZIGBEE_PRIVILEGE} == "True"
53 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
54 -DVERSION=%{version} \
55 -DLIB_INSTALL_DIR=%{_libdir} \
56 -DUNIT_INSTALL_DIR=%{_unitdir} \
63 # Do not execute daemon on boot time
64 #mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
65 #ln -s %{_unitdir}/zigbee-daemon.service %{buildroot}%{_unitdir}/multi-user.target.wants/zigbee-daemon.service
67 mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/
68 mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d/
69 cp %{SOURCE1} %{buildroot}%{_datadir}/dbus-1/system-services/org.tizen.zigbee.service
70 %if %{CHECK_ZIGBEE_PRIVILEGE} == "True"
71 cp %{SOURCE2} %{buildroot}%{_datadir}/dbus-1/system.d/zigbee.conf
74 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %manifest zigbee-daemon.manifest
80 %defattr(644,system,system,-)
81 %attr(755,system,system) %{_bindir}/zigbee-daemon
82 %{_unitdir}/zigbee-daemon.service
83 #%{_unitdir}/multi-user.target.wants/zigbee-daemon.service
84 %{_datadir}/license/zigbee-daemon
85 %attr(644,root,root) %{_datadir}/dbus-1/system-services/*
86 %if %{CHECK_ZIGBEE_PRIVILEGE} == "True"
87 %{_datadir}/dbus-1/system.d/zigbee.conf
92 %defattr(644,system,system,-)
93 %{_libdir}/libzigbee-lib.so*
94 %{_datadir}/license/zigbee-lib
97 %files -n zigbee-lib-devel
98 %defattr(644,system,system,-)
99 %{_includedir}/zigbee/lib/*.h
100 %{_includedir}/zigbee/common/*.h
101 %{_libdir}/pkgconfig/zigbee-lib.pc
102 %{_libdir}/libzigbee-lib.so