7 Summary: A System Information library in Core API
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: %{name}.manifest
11 Source2001: tizenid.service
13 BuildRequires: pkgconfig(capi-base-common)
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(iniparser)
16 BuildRequires: pkgconfig(libxml-2.0)
17 BuildRequires: pkgconfig(openssl)
18 BuildRequires: pkgconfig(cryptsvc)
20 BuildRequires: pkgconfig(ecore-wayland)
23 BuildRequires: pkgconfig(x11)
24 BuildRequires: pkgconfig(xi)
25 BuildRequires: pkgconfig(xrandr)
32 Summary: A System Information library in Core API (Development)
33 Group: Development/System
34 Requires: %{name} = %{version}-%{release}
43 %define config_file_path /etc/config/model-config.xml
44 %define info_file_path /etc/info.ini
45 %define os_release_file_path /etc/os-release
46 %define serial_path /csa/imei/serialno.dat
47 %define tizen_id_path /opt/home/root/tizenid
51 %if !%{with x} && %{with wayland}
52 -DENABLE_WAYLAND=TRUE \
54 -DCONFIG_FILE_PATH=%{config_file_path} \
55 -DINFO_FILE_PATH=%{info_file_path} \
56 -DOS_RELEASE_FILE_PATH=%{os_release_file_path} \
57 -DSERIAL_PATH=%{serial_path} \
58 -DTIZEN_ID_PATH=%{tizen_id_path}
60 %__make %{?_smp_mflags}
64 mkdir -p %{buildroot}/etc
65 cp -f script/make_info_file.sh %{buildroot}/etc/make_info_file.sh
67 mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
68 install -m 0644 %SOURCE2001 %{buildroot}%{_libdir}/systemd/system/tizenid.service
69 ln -s ../tizenid.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/tizenid.service
71 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
77 %manifest %{name}.manifest
78 %license LICENSE.APLv2
79 %{_libdir}/libcapi-system-info.so.*
80 %attr(0744,root,-) /etc/make_info_file.sh
82 %{_libdir}/systemd/system/tizenid.service
83 %{_libdir}/systemd/system/multi-user.target.wants/tizenid.service
86 %manifest %{name}.manifest
87 %{_includedir}/system/system_info.h
88 %{_includedir}/system/system_info_type.h
89 %{_libdir}/pkgconfig/*.pc
90 %{_libdir}/libcapi-system-info.so