2 Summary: Project Connected Home over IP
5 Group: Network & Connectivity/Other
7 Source0: %{name}-%{version}.tar.gz
8 Source1: %{name}.manifest
11 BuildRequires: pkgconfig(dbus-1)
12 BuildRequires: pkgconfig(gio-2.0)
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: pkgconfig(gio-unix-2.0)
15 BuildRequires: pkgconfig(dns_sd)
17 BuildRequires: python3
20 Requires(post): /sbin/ldconfig
21 Requires(postun): /sbin/ldconfig
24 Project Connected Home over IP is a new Working Group within the Zigbee Alliance.
25 This Working Group plans to develop and promote the adoption of a new, royalty-free
26 connectivity standard to increase compatibility among smart home products, with security as a fundamental design tenet
29 Summary: Connected Home over IP for development
30 Requires: %{name} = %{version}-%{release}
33 This package is for CHIP development
36 Summary: Connected Home over IP Test applications
37 Requires: %{name} = %{version}-%{release}
40 This package is for CHIP test applications
45 cp %{SOURCE1} ./%{name}.manifest
46 cp %{SOURCE2} ./%{name}.pc
49 #gn gen out/host --args='is_debug=true target_os="linux" current_cpu="arm"'
56 mkdir -p %{buildroot}%{_libdir}/chip/
57 find ./out/host/lib -name "*.a" -exec cp '{}' %{buildroot}%{_libdir}/chip/ \;
60 find ./ -type d -exec mkdir -p %{buildroot}%{_libdir}/chip/{} \;
61 find ./ -name "*.a" -exec cp '{}' %{buildroot}%{_libdir}/chip/{} \;
64 # install header files
65 mkdir -p %{buildroot}%{_includedir}/chip/
66 find ./ -type d -exec mkdir -p %{buildroot}%{_includedir}/chip/{} \;
67 find ./ -name "*.h" -exec cp '{}' %{buildroot}%{_includedir}/chip/{} \;
68 find ./ -name "*.hpp" -exec cp '{}' %{buildroot}%{_includedir}/chip/{} \;
71 mkdir -p %{buildroot}%{_bindir}
73 cp out/host/chip-tool %{buildroot}%{_bindir}/
74 cp out/host/chip-lighting-app %{buildroot}%{_bindir}/
75 #cp out/host/chip-all-clusters-app %{buildroot}%{_bindir}/
76 cp out/host/chip-shell %{buildroot}%{_bindir}/
78 # install pkg-config file
79 mkdir -p %{buildroot}%{_libdir}/pkgconfig
80 cp %{name}.pc %{buildroot}%{_libdir}/pkgconfig
85 %manifest %{name}.manifest
89 %manifest %{name}.manifest
92 %{_libdir}/pkgconfig/*.pc
95 %manifest %{name}.manifest
97 %{_bindir}/chip-lighting-app
98 #%{_bindir}/chip-all-clusters-app