2 Summary: A System Information library in Core API
5 Group: System/Libraries
6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(capi-base-common)
12 BuildRequires: pkgconfig(iniparser)
13 BuildRequires: pkgconfig(libxml-2.0)
15 Requires(post): /sbin/ldconfig
16 Requires(postun): /sbin/ldconfig
22 Summary: A System Information library in Core API (Development)
23 Group: Development/System
24 Requires: %{name} = %{version}-%{release}
34 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
35 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
43 mkdir -p %{buildroot}/usr/share/license
44 cp -f LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
46 mkdir -p %{buildroot}/etc
47 cp -f script/make_info_file.sh %{buildroot}/etc/make_info_file.sh
49 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
55 %manifest %{name}.manifest
56 /usr/share/license/%{name}
57 %{_libdir}/libcapi-system-info.so.*
58 %attr(0744,root,-) /etc/make_info_file.sh
61 %manifest %{name}.manifest
62 %{_includedir}/system/system_info.h
63 %{_libdir}/pkgconfig/*.pc
64 %{_libdir}/libcapi-system-info.so