6 Version: %{major}.%{minor}.%{patchlevel}
11 Source0: %{name}-%{version}.tar.gz
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(gio-2.0)
15 BuildRequires: pkgconfig(gio-unix-2.0)
16 BuildRequires: pkgconfig(glib-2.0)
17 BuildRequires: pkgconfig(vconf)
20 Description: ZigBee Daemon
22 %package -n zigbee-lib
23 Summary: ZigBee library
24 Group: System/Libraries
25 BuildRequires: pkgconfig(glib-2.0)
26 BuildRequires: pkgconfig(dlog)
28 %description -n zigbee-lib
31 %package -n zigbee-lib-devel
32 Summary: ZigBee library (devel)
33 Group: System/Libraries
34 Requires: %{name} = %{version}
36 %description -n zigbee-lib-devel
37 ZigBee library (devel)
43 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DVERSION=%{version} \
51 # For debug, do not execute zigbee daemon automatically.
52 #mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
53 #ln -s %{_libdir}/systemd/system/zigbee-daemon.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/zigbee-daemon.service
55 %post -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
60 %manifest zigbee-daemon.manifest
61 %defattr(644,system,system,-)
62 %attr(755,system,system) %{_bindir}/zigbee-daemon
63 # For debug, do not execute zigbee daemon automatically.
64 #%{_libdir}/systemd/system/zigbee-daemon.service
65 #%{_libdir}/systemd/system/multi-user.target.wants/zigbee-daemon.service
66 %{_datadir}/license/zigbee-daemon
69 #%manifest lib-zigbee/lib-zigbee.manifest
70 %defattr(644,system,system,-)
71 %{_libdir}/libzigbee-lib.so*
72 %{_datadir}/license/zigbee-lib
74 %files -n zigbee-lib-devel
75 %defattr(644,system,system,-)
76 %{_includedir}/zigbee/lib/*.h
77 %{_includedir}/zigbee/common/*.h
78 %{_libdir}/pkgconfig/zigbee-lib.pc
79 %{_libdir}/libzigbee-lib.so